Bona Fide OS Development
http://forums.osdever.net/

OSDev fix
http://forums.osdever.net/viewtopic.php?f=5&t=918
Page 1 of 1

Author:  losethos [ Fri Feb 04, 2011 2:21 pm ]
Post subject:  OSDev fix

This guy's problem
http://forum.osdev.org/viewtopic.php?f=1&t=23100

His problem is that displacement addressing in long mode is RIP relative.
That means, his 0x1002 needs to be relative to the RIP.

If he wants to do a far jump, move a 64-bit immediate into RAX and CALL RAX.

Author:  Kieran [ Fri Feb 04, 2011 3:33 pm ]
Post subject:  Re: OSDev fix

Please, I see you have a problem with the people over at OSDev.org, but you could at least answer a question posted on the OSDev forums in that forum...

Please don't make me tell you again, this forum is not the place for such childish behavior.

Author:  losethos [ Fri Feb 04, 2011 4:03 pm ]
Post subject:  Re: OSDev fix

They banned me and I can't bear not to answer.

Come-on this site is dead. You need me.

By the way, I'll explain what I do in regards to higher half kernels. There is no distinction between kernel or user -- all is ring 0.

I put all code in the lowest 2 Gig, so 32-bit relative addressing works. I could make my compiler MOV RAX,<64-bit immediate> then CALL RAX, but I prefer keeping all code in the lowest 2 Gig.

Author:  Kieran [ Fri Feb 04, 2011 4:23 pm ]
Post subject:  Re: OSDev fix

I'm guessing it was a deserved ban...

Just stop with the insults please, as I said this is not the appropriate place to take out your anger on OSDev.org

Author:  brenden [ Mon Mar 07, 2011 5:05 am ]
Post subject:  Re: OSDev fix

LOL. Losethos, you are an interesting character. Seems you really take pride in your OS project. I will say I appreciate you contributing to our community. You seem to have a great amount of experience to share. You're welcome here anytime :)

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/