#
✕ nick:hthh_
#asahi-re · 2021-01-23 05:27
hthh_sounds good, yeah - i won't be contributing code, and that's exactly what i've been doing for long-form names (mnemonics are also completely made up)
#asahi-re · 2021-01-23 05:15
hthh_sure, yeah, clean-room docs is my goal - i currently document what the compiler outputs in a few places, which isn't "just the instructions" but is what alyssa is looking at too - but yeah, i intend to clean it up a bit in that respect. (i'm also considering register names to be "facts" - lots of grey areas)
#asahi-re · 2021-01-23 04:48
hthh_(the hope is the operands stay pretty consistent and i can just write hardware tests to automate verification of my assumptions)
#asahi-re · 2021-01-23 04:44
hthh_oh so many - unfortunately llvm considers each combination of opcode and output sizes to be a distinct instruction, so the reversing process is still very manual, either getting the compiler to generate opcodes from known code, or constructing it myself to run on the gpu and check its behavior
#asahi-re · 2021-01-23 03:43
hthh_yeah, i think that's how it works - the SRx names are from mtl-gpu-asmcheck, and the other names are my attempt at mapping the attributes in the metal shading language back to them - not sure if it actually stands for "special register" though
#asahi-re · 2021-01-23 01:06
hthh_i started looking at documenting the GPU ISA (note this is based on mtl-gpu-asmcheck): https://hthh.github.io/m1-gpu-re/
#asahi-re · 2021-01-20 02:52
hthh_yeah - no idea - it's weird how much they can get away with when it's just their code on their hardware
#asahi-re · 2021-01-20 02:09
hthh_i assume xnu just maps memory nGnRnE not nGnRE?
#asahi-re · 2021-01-20 01:31
hthh_so i grab from the ipsw (from ipsw.me, which you can unzip), but that kernel loads in ida fine for me too (although it's just xnu, without the drivers)
#asahi-re · 2021-01-20 01:27
hthh_(probably not helpful, but i unpack with xerub/img4lib then just load into ida)
#asahi-re · 2021-01-14 10:11
hthh_that's physical addr, yeah
#asahi-re · 2021-01-14 10:07
hthh_(otherwise projectzero code seems to match AppleS5L8960XWatchDogTimer::disableWatchdog, so that's nice)
#asahi-re · 2021-01-14 09:57
hthh_huh - looks like you can use "ioreg -l" to dump the device tree, including MMIO addrs ("IODeviceMemory") - looks like watchdog may have moved to 0x23d2b0000?