#
✕ nick:marcan
#asahi · 2021-05-06 16:03
marcanworks fine here, in fact I get framebuffer *first* and it only switches to serial later
#asahi · 2021-05-06 16:03
marcan-v enables framebuffer debug output
#asahi · 2021-05-06 15:35
marcanframebuffer?
#asahi · 2021-05-06 15:35
marcanthen that's another issue that needs to be fixed
#asahi · 2021-05-06 15:34
marcan(and also virtualize the cpustart stuff)
#asahi · 2021-05-06 15:34
marcanI'm turning off the other cores for the HV because it is not SMP-safe right now (it will be, eventually; I need to write some spinlocks and make sure peripheral emulation and iodev stuff is serialized)
#asahi · 2021-05-06 15:33
marcan*single
#asahi · 2021-05-06 15:33
marcanthere is no reason to be stuck in single core mode outside the HV
#asahi · 2021-05-06 15:33
marcanpipcet[m]: why since core?
#asahi · 2021-05-06 01:41
marcanbut RYF causes vendors to try to hide blobs
#asahi · 2021-05-06 01:40
marcanit's useless and hurts freedom because a device with visible blobs is more free than a device with hidden blobs
#asahi · 2021-05-06 01:39
marcanit means "you can't see the blobs so we can pretend they don't exist"
#asahi · 2021-05-06 01:39
marcanit absolutely does not mean "everything is open source"
#asahi · 2021-05-06 01:38
marcanlazarosser[m]: RYF means nothing, the FSF is happy to RYF certify stuff with giant proprietary blobs you can't see
#asahi · 2021-05-05 18:54
marcan:p
#asahi · 2021-05-05 18:54
marcangood night, seriously
#asahi · 2021-05-05 18:54
marcananyway, ideas ideas
#asahi · 2021-05-05 18:54
marcanand then I can align the latter
#asahi · 2021-05-05 18:54
marcanwhich is a reason to have the .data image in the mach-o not be the real link address
#asahi · 2021-05-05 18:53
marcanactually, there is some reason to implement self-reloading for m1n1, which would amount to copying .data from a stash and clearing .bss and jumping to the entry
#asahi · 2021-05-05 18:52
marcan(or even probably use as-is if I clean it up a bit)
#asahi · 2021-05-05 18:52
marcan... thankfully, I already wrote fancier pagetable code for the HV which I can just copy and paste and simplify :p
#asahi · 2021-05-05 18:52
marcanwill probably need to extend your pagetable code to support actual page granularity, or otherwise align m1n1 to larger blocks
#asahi · 2021-05-05 18:51
marcan*except
#asahi · 2021-05-05 18:51
marcan(excepe m1n1 .text)
#asahi · 2021-05-05 18:51
marcanwhile memory is normally otherwise rw
#asahi · 2021-05-05 18:51
marcanoh, I just mean enable it whenever I feel like it, and then just keep call() working by pointing it at a rx mirror
#asahi · 2021-05-05 18:50
marcan(and if I do I can fix that)
#asahi · 2021-05-05 18:50
marcanI don't think I ever call() anything that is position-dependent
#asahi · 2021-05-05 18:50
marcanmore like move call() to point to a rx alias
#asahi · 2021-05-05 18:49
marcanjust never bothered enforcing it
#asahi · 2021-05-05 18:49
marcanI only use self-modifying code from python; m1n1's stuff should already be w^x and properly page aligned, I did it properly from the get go
#asahi · 2021-05-05 18:48
marcanalso fwiw I don't care *too* much about w^x; I already had a similar problem with EL0 and solved it with a mirror. wouldn't be a big deal doing something similar for call() in the proxy if it comes to that.
#asahi · 2021-05-05 18:48
marcanI'm pretty sure they are planning on making this work at some point in the future
#asahi · 2021-05-05 18:46
marcanwhich is also good for us if we need to let macos actually run in this mode
#asahi · 2021-05-05 18:46
marcanmakes sense, VHE style
#asahi · 2021-05-05 18:46
marcanhttps://mrcn.st/p/RA2VE5CV anyway there are your trap bits, and I bet bit 12 is related (trap instructions maybe?)
#asahi · 2021-05-05 18:45
marcanah, not accessible by default I guess
#asahi · 2021-05-05 18:45
marcangive me one of those
#asahi · 2021-05-05 18:44
marcanwhat about ELR, FAR, etc?
#asahi · 2021-05-05 18:43
marcanI mean any msrs
#asahi · 2021-05-05 18:43
marcansven: got an encoding for one of those?
#asahi · 2021-05-05 18:42
marcanhowever, apple has those per-class bits
#asahi · 2021-05-05 18:42
marcanthen I don't need the vbar hook, but conversely I need to emulate all the *others*
#asahi · 2021-05-05 18:42
marcanwhich is *probably* enough
#asahi · 2021-05-05 18:42
marcanthere is that "hook all impdef MSRs" bit though
#asahi · 2021-05-05 18:41
marcandocs please :)
#asahi · 2021-05-05 18:41
marcanyeah
#asahi · 2021-05-05 18:41
marcan(I mean without NV)
#asahi · 2021-05-05 18:41
marcan(I hate ARM for not letting me just flip a bit to do that, unless I missed something / cc maz)

plus ›