#
✕ nick:marcan
#asahi · 2021-08-02 19:06
marcanalyssa: printRegs does... nothing
#asahi · 2021-08-02 19:04
marcansimilar to what we'll do
#asahi · 2021-08-02 19:04
marcanI'm pretty sure they have some generator thing for the IPC
#asahi · 2021-08-02 19:04
marcanand we will only support those
#asahi · 2021-08-02 19:04
marcanthis is why I'm going to declare certain macos versions (i.e. firmware bundles) golden for linux
#asahi · 2021-08-02 19:03
marcanyes
#asahi · 2021-08-02 19:01
marcanremember what I said about unstable ABI?
#asahi · 2021-08-02 19:01
marcanA443 = Call(int_, "do_create_default_frame_buffer")
#asahi · 2021-08-02 19:00
marcanI have not!
#asahi · 2021-08-02 18:54
marcanthat sounds about right
#asahi · 2021-08-02 18:39
marcanbut you probably mean this: https://github.com/AsahiLinux/m1n1/blob/63e8d0d48e5885c20e0a937546ea0af5b2083741/proxyclient/hv/trace_dcp.py#L219
#asahi · 2021-08-02 18:38
marcan(which is yet another reason why we won't and cannot dual-boot within a single OS container :p)
#asahi · 2021-08-02 18:38
marcanpipcet[m]: those magic numbers are for what DCP firmware version? because as I said, the ABI is not stable, not even the call numbers
#asahi · 2021-08-02 18:37
marcanalyssa: I literally looked at corellium code on my stream the other day, where did this myth come from? >_>
#asahi · 2021-08-01 11:24
marcanlet me guess: not handling syslog messages, which only happen on an unclean shutdown, making it wedge
#asahi · 2021-08-01 11:22
marcanlol
#asahi · 2021-08-01 10:37
marcanexactly
#asahi · 2021-08-01 10:08
marcanif you all want to take it completely off of my hands, I'll go look at the installer and GPU ASC instead :p
#asahi · 2021-08-01 10:08
marcansven/alyssa: I can take a look at the kernel side if you want, or leave it up to you, your choice ;)
#asahi · 2021-08-01 05:10
marcanyou could consider the non-nullable ones references instead of pointers, if you're playing the C++ game, and then my naming scheme almost makes sense :p
#asahi · 2021-08-01 05:10
marcanthe "ptr" was intended to mean pointer at the C++ prototype level, not the IPC level :)
#asahi · 2021-08-01 05:09
marcanalong with direct maps of some MMIO
#asahi · 2021-08-01 05:09
marcanactually I think I saw that mapping explicitly defined in the DAPF (the thing after the DART)
#asahi · 2021-08-01 05:09
marcandvas seem to all have that form, I presume that range is where the DART gets mapped from an ASC's perspective
#asahi · 2021-08-01 05:09
marcanwhich is 0xf_00000000 | the DART address
#asahi · 2021-08-01 05:08
marcanthe only dva is the shared memory base
#asahi · 2021-08-01 05:08
marcanI see kernel pointers sometimes, which I assume are just garbage/identifiers and not meaningful to DCP
#asahi · 2021-08-01 05:08
marcanalyssa: no, there are no meaningful pointers passed anywhere at the dcpep level
#asahi · 2021-08-01 01:11
marcanI assume much like us they have some kind of database with the ABI to generate these bindings and specify what's nullable and in/out beyond the C++ prototype
#asahi · 2021-08-01 01:11
marcanobviously for out args they'd still be a pointer at the prototype level
#asahi · 2021-08-01 01:11
marcanthen they just can't ever be null
#asahi · 2021-08-01 01:11
marcanthe python side defaults to in for those, but they can be inout or out too
#asahi · 2021-08-01 01:11
marcanby default structs/arrays can be passed without that, which just means no nullable flag
#asahi · 2021-08-01 01:10
marcanthe Ptr thing is a bit of a misnomer, it really should be called Nullable or something, but that's long
#asahi · 2021-08-01 01:08
marcan(equivalent to 4 discrete params, which is how I did it before I added support for this a couple streams ago)
#asahi · 2021-08-01 01:08
marcanso it's just an InPtr for each element of the array, with its own null flag
#asahi · 2021-08-01 01:08
marcanthere is also an array-of-inptrs in the swap struct, for the surfaces, which is encoded as 4 buffers and also adds 4 null flags
#asahi · 2021-08-01 01:07
marcanand the struct is static, so the space is always allocated regardless of whether the pointer is null
#asahi · 2021-08-01 01:07
marcanall arrays/etc are fixed length
#asahi · 2021-08-01 01:07
marcanInOut exists in both
#asahi · 2021-08-01 01:06
marcanInPtr only exists in inbuf, OutPtr only exists in outbuf (null flag only in inbuf)
#asahi · 2021-08-01 01:06
marcanthose just add a bool nullable flag
#asahi · 2021-08-01 01:05
marcan(if not void)
#asahi · 2021-08-01 01:04
marcanalso outbuf includes the retval from the call at the end
#asahi · 2021-08-01 01:03
marcanand then async are just notifications that come in from DCP at any time unsolicited
#asahi · 2021-08-01 01:03
marcanOOB commands are the same, but different pair of buffers and OOBCMD <OOBCB >OOBCB <OOBCB etc
#asahi · 2021-08-01 01:03
marcanplain commands chain like >CMD <CB >CB <CB >CB <CB (and use a pair of buffers, one for each direction)
#asahi · 2021-08-01 01:02
marcanplain commands, OOB commands (another thread), and async notifications
#asahi · 2021-08-01 01:02
marcanso there are, in effect, 3 contexts
#asahi · 2021-08-01 01:01
marcanAP->DCP commands issued during a callback use the CB channel in the mailbox, not CMD, even though the *buffer* is still the same as for CMD

plus ›