#
✕ nick:davidrysk[m]
#asahi-re · 2021-04-03 16:32
davidrysk[m](looking at the output of `nm`)
#asahi-re · 2021-04-03 16:32
davidrysk[m]Yep, it seems like that's the driver that handles clock gating and manipulating frequencies in macOS
#asahi-re · 2021-04-03 16:29
davidrysk[m]sven: `clock-ids` and `clock-frequencies` seem to appear in AppleARMPlatform.kext
#asahi-re · 2021-03-04 20:29
davidrysk[m]https://github.com/FFRI/ProjectChampollion/tree/main/ghidra if anyone is using Ghidra and needs ARMv8.4 support
#asahi-re · 2021-02-19 22:55
davidrysk[m]I guess there isn't enough of a performance benefit to update the scheduler for newer uarches?
#asahi-re · 2021-02-19 22:53
davidrysk[m](https://github.com/llvm-mirror/llvm/blob/master/lib/Target/AArch64/AArch64SchedCyclone.td)
#asahi-re · 2021-02-19 22:53
davidrysk[m]dougall: from what I can tell, Apple is still using the Cyclone scheduler in LLVM, even for M1
#asahi-re · 2021-02-19 19:08
davidrysk[m]but where is this KDK? :)
#asahi-re · 2021-02-19 19:08
davidrysk[m]> The Kernel Debug Kit (KDK) now runs on Macs with Apple Silicon. (73848762)
#asahi-re · 2021-02-19 19:08
davidrysk[m]> Resolved in macOS Big Sur 11.3 Beta 2
#asahi-re · 2021-02-18 22:32
davidrysk[m]I think A13 has improved PAC?
#asahi-re · 2021-02-18 17:23
davidrysk[m]marcan: how about the memory decompression instruction? :p
#asahi-re · 2021-02-10 18:39
davidrysk[m]marcan: yeah, I believe it all traces back to the same code
#asahi-re · 2021-02-10 18:35
davidrysk[m]directhw is probably a good place to start, just rip out all the x86-specific code and use your own asm :)
#asahi-re · 2021-02-10 18:13
davidrysk[m]I think flashrom's version is the most current, but the closest thing to upstream is coreboot's repo
#asahi-re · 2021-02-10 18:11
davidrysk[m]lemme find upstream, it's kinda buried
#asahi-re · 2021-02-10 18:10
davidrysk[m]marcan: hm do you think DirectHW.kext would be of any use? :P
#asahi-re · 2021-02-10 15:16
davidrysk[m]if you're writing drivers that have to interact with userspace it's more work :p
#asahi-re · 2021-02-10 15:16
davidrysk[m]if all you're doing is logging crap to the kernel log, you don't need to do that much
#asahi-re · 2021-02-10 15:15
davidrysk[m]if you want to avoid xcode projects you can use https://github.com/droe/example.kext
#asahi-re · 2021-02-10 15:14
davidrysk[m]also I assume that iBoot uses some of the Apple features like PAC
#asahi-re · 2021-02-10 15:14
davidrysk[m]marcan: is it possible to dump them after macOS has booted, e.g. using a kext?
#asahi-re · 2021-02-08 20:38
davidrysk[m]heh I Think you're right
#asahi-re · 2021-02-08 20:30
davidrysk[m]marcan: some of the RE'd PAC code from the A12 iOS kernel seems to check HCR_EL2.E2H -- https://googleprojectzero.blogspot.com/2019/02/examining-pointer-authentication-on.html
#asahi-re · 2021-02-07 18:24
davidrysk[m]it also seems to have per-machine tunables
#asahi-re · 2021-02-07 18:24
davidrysk[m]huh AppleT8103PMGR.kext has functions that apply tunables...
#asahi-re · 2021-02-06 22:27
davidrysk[m]seems it might be an alternate debug uart?
#asahi-re · 2021-02-06 22:18
davidrysk[m]roxfan: xnu seems to do some stuff with the dockchannel-uart in pexpert/arm/pe_serial.c
#asahi-re · 2021-02-06 21:58
davidrysk[m]roxfan: a live ioreg dump from macOS?
#asahi-re · 2021-02-04 19:17
davidrysk[m]krbtgt: the Mac target isn't broken because people put a ton of work into it. It used to be completely broken
#asahi-re · 2021-02-02 01:24
davidrysk[m]the libT8101.os.DEVELOPMENT.a included with the 11.2 KDK is all machine code -- no more llvm-ir
#asahi-re · 2021-02-01 06:42
davidrysk[m](Or even just a disassembler)
#asahi-re · 2021-02-01 06:42
davidrysk[m]Hah, fair
#asahi-re · 2021-02-01 05:18
davidrysk[m]is there a way to make llvm-ir easier to read?
#asahi-re · 2021-02-01 05:00
davidrysk[m](meaning, instructions that are specific to Apple's chips)
#asahi-re · 2021-02-01 05:00
davidrysk[m]marcan: looking at this blob, I see undefined instructions.. I think never_released already established that they're using extended instructions here
#asahi-re · 2021-01-31 17:19
davidrysk[m]so it's likely that REing the blob will uncover what certain defines mean
#asahi-re · 2021-01-31 17:19
davidrysk[m]also they didn't redact everything from the source
#asahi-re · 2021-01-31 17:18
davidrysk[m]also huh. sicily and tonga. sicily is A14 and tonga is M1?
#asahi-re · 2021-01-31 16:14
davidrysk[m]someone should file a rdar
#asahi-re · 2021-01-31 16:13
davidrysk[m]what's in here: start.o, pinst.o, pmap.o, pcb.o, locore.o, gxf_exceptions.o, machine_routines_asm.o, machine_routines_apple.o, machine_routines_sprr.o, sart.o, t8020dart.o, nvmeppl.o, uat.o, uat_ppl_handoff.o, IOUnifiedAddressTranslator.cpo
#asahi-re · 2021-01-31 16:12
davidrysk[m]marcan: looking at the symbols in these binaries it boggles me that they're doing this
#asahi-re · 2021-01-31 05:11
davidrysk[m]`file` command says that the plain kernel file is intel
#asahi-re · 2021-01-31 05:11
davidrysk[m]that's probably intel
#asahi-re · 2021-01-31 05:07
davidrysk[m]t8020 is definitely not M1
#asahi-re · 2021-01-31 05:07
davidrysk[m]so they just call the kernel .t8101 for M1
#asahi-re · 2021-01-31 05:07
davidrysk[m]t8101 and t8103 are similar enough
#asahi-re · 2021-01-31 04:46
davidrysk[m](t8101 is A14, t8103 is M1)
#asahi-re · 2021-01-31 04:46
davidrysk[m](t8020 is A12)
#asahi-re · 2021-01-31 04:46
davidrysk[m]DTK does mean developer transition kit (since it's A12)

plus ›