#asahi-dev · 2026-06-04 06:52
StanfordAppliedCyber[m]i think it's clear i'm going to have to settle for modifying the sigill handler#asahi-dev · 2026-06-04 06:51
StanfordAppliedCyber[m]okay well patching commpage fixed the first issue but new sysreg#asahi-dev · 2026-06-04 06:44
StanfordAppliedCyber[m]to put it mildly, yes, upstreaming that would be an utter nightmare#asahi-dev · 2026-06-04 06:41
StanfordAppliedCyber[m]yeah i realized that a second after i sent the message#asahi-dev · 2026-06-04 06:40
StanfordAppliedCyber[m]bare metal windows sounds horrifying for both apple and microsoft#asahi-dev · 2026-06-04 06:40
StanfordAppliedCyber[m]actually no because that'd just be a vm in macos#asahi-dev · 2026-06-04 06:40
StanfordAppliedCyber[m]..............................................................................................................................ironically microsoft could save us here, if they wanted windows to work on arm macs then apple would def work with them to make it happen#asahi-dev · 2026-06-04 06:39
StanfordAppliedCyber[m]TSO ISN'T AVAILABLE IN RAW BOOT?#asahi-dev · 2026-06-04 06:36
StanfordAppliedCyber[m]this is definitely a problem we can engineer a solution for#asahi-dev · 2026-06-04 06:36
StanfordAppliedCyber[m]may also be able to mess with commpage#asahi-dev · 2026-06-04 06:20
StanfordAppliedCyber[m]ofc not#asahi-dev · 2026-06-04 06:20
StanfordAppliedCyber[m]see if we can escalate some of the radars#asahi-dev · 2026-06-04 06:20
StanfordAppliedCyber[m]one of my friends is a very senior engineer who lead a lot of the sptm work and controls a lot of boot, may talk to him about it (obviously he hasn't told me anything that isn't public)#asahi-dev · 2026-06-04 06:18
StanfordAppliedCyber[m]oh, i hit that, we have some horrible fiq handling code in my branch currently#asahi-dev · 2026-06-04 06:18
StanfordAppliedCyber[m]what's "that aic one" btw? not familiar with that#asahi-dev · 2026-06-04 06:17
StanfordAppliedCyber[m]you may be able to patch all the register accesses to svc, add a new syscall to xnu that just calls hvc (or find some way of making a hypercall directly from el0) and then software emulate the access#asahi-dev · 2026-06-04 06:16
StanfordAppliedCyber[m]i think i'm going to do something horrible#asahi-dev · 2026-06-04 06:16
StanfordAppliedCyber[m]amazing, time to think of something interesting#asahi-dev · 2026-06-04 06:15
StanfordAppliedCyber[m]are there any known solutions for this other than waiting for apple to fix them?#asahi-dev · 2026-06-04 06:15
StanfordAppliedCyber[m]unfortunate#asahi-dev · 2026-06-04 06:15
StanfordAppliedCyber[m]oh so this is expected?#asahi-dev · 2026-06-04 06:14
StanfordAppliedCyber[m]actually yeah, does anyone know if there's a precedent for apple impdef registers behaving differently in macho boot vs raw boot? launchd is faulting trying to read ACNTVCT_EL0, the mrs x8 ACNTVCT_EL0 is being decoded as an illegal instruction and launchd is getting killed#asahi-dev · 2026-06-04 04:46
StanfordAppliedCyber[m]is there precedent for that?#asahi-dev · 2026-06-04 04:46
StanfordAppliedCyber[m]i find it hard to believe it's a raw vs macho boot difference#asahi-dev · 2026-06-04 04:46
StanfordAppliedCyber[m]...............but xnu writes them just fine?#asahi-dev · 2026-06-04 04:45
StanfordAppliedCyber[m]i'm not sure why but writing to some of the new timer registers in el2 fault, despite me doing exactly what xnu is doing#asahi-dev · 2026-06-04 04:38
StanfordAppliedCyber[m]are there any resources from the m3 learnings?#asahi-dev · 2026-06-04 04:26
StanfordAppliedCyber[m]launchd is now exiting for a different reason which i need to figure out#asahi-dev · 2026-06-04 04:26
StanfordAppliedCyber[m]fixed this particular error though#asahi-dev · 2026-06-04 04:26
StanfordAppliedCyber[m]yeah i found all of them in this hypervisor work#asahi-dev · 2026-06-04 04:15
StanfordAppliedCyber[m]AND IT'S TIMER BULLSHIT#asahi-dev · 2026-06-04 04:11
StanfordAppliedCyber[m]oh ffs i'm hitting SIGILL on a fucking sysreg#asahi-dev · 2026-06-04 04:11
StanfordAppliedCyber[m]if this is true that means if the kernel works fine there's a way of turning off all the apple bs in userspace#asahi-dev · 2026-06-04 04:10
StanfordAppliedCyber[m]ive heard from multiple people that the userspace in vm images and bare metal boot images is the same, the only difference is the kernel#asahi-dev · 2026-06-04 04:00
StanfordAppliedCyber[m]the kernel works fine and my emulation is good#asahi-dev · 2026-06-04 04:00
StanfordAppliedCyber[m]fwiw i'm not super worried about most of userspace#asahi-dev · 2026-06-04 03:59
StanfordAppliedCyber[m]launchd#asahi-dev · 2026-06-04 03:37
StanfordAppliedCyber[m]i'll figure out how the regular arm fallback paths work, hoping it's just some sysctls#asahi-dev · 2026-06-04 03:37
StanfordAppliedCyber[m]userspace is currently dying on SIGILL#asahi-dev · 2026-06-04 03:37
StanfordAppliedCyber[m]the kernel hasn't required any patching other than genter --> hvc#asahi-dev · 2026-06-04 03:37
StanfordAppliedCyber[m]i can confirm btw that there's some apple custom funkiness in userspace and is NOT in the kernel#asahi-dev · 2026-06-03 21:50
StanfordAppliedCyber[m]or is it still messed up#asahi-dev · 2026-06-03 21:50
StanfordAppliedCyber[m]also hows chainload on the neo working? does it work yet?#asahi-dev · 2026-06-03 21:42
StanfordAppliedCyber[m]like check the clockspeed?#asahi-dev · 2026-06-03 21:42
StanfordAppliedCyber[m]what do you mean "measure the first pcore"?#asahi-dev · 2026-06-03 21:23
StanfordAppliedCyber[m]i'll move over to the re channel as a precaution here though i think it's unnecessary#asahi-dev · 2026-06-03 21:22
StanfordAppliedCyber[m]"write your own struct based on apsl source", so there's a few things there, there's the data types which i can just use primitive types for instead of the apple named ones, but the names themselves mostly describe hardware facts#asahi-dev · 2026-06-03 21:19
StanfordAppliedCyber[m]from looking at the code, I think this is safe to include in clean room docs, but i wanted to ask your thoughts here to confirm, and if you think it's overly risky then to ask for alternative paths forward#asahi-dev · 2026-06-03 21:16
StanfordAppliedCyber[m]the fields of the struct are all in the public xnu source but the offsets need to be found either by REing apple's compiled kernel or from the kdk (how i found it)#asahi-dev · 2026-06-03 21:16
StanfordAppliedCyber[m]this struct is contained in the KDK and APSL2 licensed