Re: iBook suspend mode and assembly help
Emmanuel Dreyfus <[email protected]> Sat, 25 Jun 2022 00:29:54 +0000
| Newsgroups | gmane.os.netbsd.ports.powerpc |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 22, 2022 at 02:20:01PM -0400, Michael wrote: > > That is defined in linux/arch/powerpc/kernel/head_32.S > > The closest thing I find in NetBSD powerpc code is RESTORE_KERN_SRS > > Is it the right direction? > > I'm not sure about that, PowerPC MMU stuff breaks my brain. IIRC we > only really care about the first one since that's where the kernel code > lives. How RESTORE_KERN_SRS(pmap,sr) should be used? The trap code invokes it witj r30 and r31 but I fail to grasp what the registers points to and when. -- Emmanuel Dreyfus [email protected]