#asahi · 2021-06-23 11:08
marcanI mostly solved all the mysteries of the IOP commands; it really is all in shared memory, there are just separate blocks and the pages aren't physically contiguous#asahi · 2021-06-23 11:08
marcanI'll do a stream shortly#asahi · 2021-06-23 11:07
marcanyeah, I used it with AIC#asahi · 2021-06-23 11:07
marcanalso added ASCII (didn't need that for registers)#asahi · 2021-06-23 11:07
marcanthough I'm using it on shared memory here, made a few changes to have it read memory through the DART translation#asahi · 2021-06-23 11:07
marcanRegMonitor :)#asahi · 2021-06-23 11:07
marcanj_ey: it's been in proxyutils since the dark ages, pretty sure it dates back to the wii or at least wii u#asahi · 2021-06-21 13:29
marcan^ this#asahi · 2021-06-20 08:44
marcanj_ey: yeah, definitely a bug#asahi · 2021-06-20 02:14
marcanit could, but that doesn't seem like the right solution for figuring out a pac_mask when the CPU registers contain all the necessary information#asahi · 2021-06-20 02:13
marcanthough right now I think I protect m1n1 in memory so it never gets discarded, but that's a technicality (and might change in the future)#asahi · 2021-06-20 02:13
marcanyes, this is how Linux is loaded when there is no hypervisor involved#asahi · 2021-06-20 02:12
marcanyou are running m1n1 on m1n1#asahi · 2021-06-20 02:12
marcanthe HV is also m1n1#asahi · 2021-06-20 02:12
marcanso anything you append to it gets loaded as that segment#asahi · 2021-06-20 02:11
marcanthe m1n1 mach-o ends with a big dummy segment that is truncated off of the end of the file#asahi · 2021-06-20 02:11
marcanthe appending thing is a trick#asahi · 2021-06-20 02:11
marcanthe dtb+initramfs thing is done by m1n1#asahi · 2021-06-20 02:09
marcanHV loads m1n1 which loads linux; HV has no idea m1n1 is going to load linux (and not, say, chainload xnu)#asahi · 2021-06-20 02:07
marcanbut that's not the point, it should be able to read the CPU registers and update pac_mask#asahi · 2021-06-20 02:07
marcanbut the hypervisor doesn't know anything about that, it just boots a mach-o#asahi · 2021-06-20 02:06
marcanI need to figure out how to determine what the PAC width is from the config registers so I can set it automatically#asahi · 2021-06-20 02:06
marcanamw: yes, because that one is for XNU#asahi · 2021-06-20 01:50
marcaneverything else should be working fine, it's just the pac_mask issue#asahi · 2021-06-20 01:50
marcanI should really make that automatic#asahi · 2021-06-20 01:49
marcanamw: you have PAC enabled so you have to set pac_mask; sorry, I didn't realize that from your old backtrace#asahi · 2021-06-19 12:51
marcan(force push)#asahi · 2021-06-19 12:51
marcanah, fixed the bug now too#asahi · 2021-06-19 12:50
marcanamw: pushed a fix#asahi · 2021-06-19 06:55
marcanI guess I should make the pac mask automatic by inspecting the pac registers at some point#asahi · 2021-06-19 06:54
marcanfixed the pac mask thing :-)#asahi · 2021-06-19 06:54
marcanload_system_map("/path/to/System.map")#asahi · 2021-06-19 06:54
marcanhv._reloadme()#asahi · 2021-06-19 06:53
marcanamw: git pull, then run these commands (without restarting the hv!)#asahi · 2021-06-19 06:49
marcanmasking is set up for macos, no linux#asahi · 2021-06-19 06:49
marcanohh the opposite#asahi · 2021-06-19 06:48
marcanpauth?#asahi · 2021-06-19 06:48
marcanhuh, wonder what that's about#asahi · 2021-06-19 06:48
marcanoh wait, I just noticed the 0xfffff000102fdc3c vs ffff8000102fdc30 - f vs 8#asahi · 2021-06-19 06:46
marcanthen `bt` again#asahi · 2021-06-19 06:46
marcanamw: try: hv.symbols = sorted((int(i[0], 16), i[2]) for i in (i.split() for i in open("System.map").readlines()))#asahi · 2021-06-19 06:44
marcanlet's see#asahi · 2021-06-19 06:44
marcanthere's no System.map support but.... it should be a one-liner#asahi · 2021-06-19 06:43
marcanyeah, because the addresses are the *call* addresses#asahi · 2021-06-19 06:42
marcanthat checks out#asahi · 2021-06-19 06:42
marcan - 0xfffff000102fdc3c#asahi · 2021-06-19 06:42
marcanStack trace:#asahi · 2021-06-19 06:42
marcanffff8000102fdc30 T cpu_do_idle#asahi · 2021-06-19 06:40
marcanor just /query marcan#asahi · 2021-06-19 06:40
marcanyou should have a separate query window