<j`ey>
VinDuv: not sure, I just remember that patch
bgb has joined #asahi-dev
vimal has quit [Remote host closed the connection]
<VinDuv>
ok, arm64 defconfig seems to cross-compile fine with the sed patch in gen_vdso_offsets.sh, the uuid_t rename in file2alias.c, and homebrew’s openssl
<VinDuv>
and it boots in qemu
linuxgemini has joined #asahi-dev
bgb has quit [Ping timeout: 272 seconds]
Namidairo has quit [Read error: Connection reset by peer]
<modwizcode>
I thought I was making some progress on trying to determine how the SMMU thing works corellium has a blog post that is... almost helpful :p. I've shifted back to thinking it might be just the TLB we're looking at
<modwizcode>
The SMMU spec for ARM is difficult because it has a few different memory spaces not a single map, but the values that you see line up with "
<modwizcode>
"implementation defined space" which at first I thought was a deadend but actually that's where ARM encourages you to provide a view of the TLB
<modwizcode>
so that would line up.
<modwizcode>
Some of the zero registers also line up perfectly with "write only" registers. Although others... don't?
snalty has quit [Ping timeout: 256 seconds]
<modwizcode>
So that leads me to think it's completely unrelated again, especially because even if it does match up it's only "Global register space 0" not anything else, which would seem useless to a guest or anything.
<davidrysk[m]>
sven, modwizcode: DirectHW is basically a kext that allows for direct hardware access to I/O. It would need some adaptation for M1, but it should be a good example of how to get information between kernel and user space
<davidrysk[m]>
flashrom is able to use the existing DirectHW on a pre-T2 Intel Mac
<sven>
ah, nice
<sven>
would be useful to have that working on m1 Macs to see how Mac OS configured some MMIO ranges
<sven>
modwizcode: yeah, dunno. I'm probably not going to spend any more time on that SMMU for now since it's only used for three devices
<davidrysk[m]>
sven: do you have xcode?
snalty has joined #asahi-dev
<modwizcode>
sven: understandable, it doesn't seem important at the moment anyway.