64bit High Mem kernel
Posted: Sat Mar 01, 2008 6:24 pm
Hey all, been lurking waiting to see if there are any questions I could help with, but I think I'm still a bit too new at the 'game' to help much. In any case, if you would be so kind, I have another question on my hands.
I'm trying to move my kernel to high memory via ld script. I have checked out the wiki on how to do it with a 32 bit kernel, but to make the jump long mode we need paging enabled, which means (if I'm understanding it correctly) that the trick won't work for x86_64. I tried to fudge with some linker scripts to place part of our code in low mem, and the rest in high mem, but it doesn't seem to work. I created a new section right before the jump to 64 bit code in my boot.S and tried to load that and everything after it in to high mem, but am getting some relocation errors.
If anyone could point me in the right direction on how to move my kernel it'd be much appreciated
Thanks!
I'm trying to move my kernel to high memory via ld script. I have checked out the wiki on how to do it with a 32 bit kernel, but to make the jump long mode we need paging enabled, which means (if I'm understanding it correctly) that the trick won't work for x86_64. I tried to fudge with some linker scripts to place part of our code in low mem, and the rest in high mem, but it doesn't seem to work. I created a new section right before the jump to 64 bit code in my boot.S and tried to load that and everything after it in to high mem, but am getting some relocation errors.
If anyone could point me in the right direction on how to move my kernel it'd be much appreciated
Thanks!