Bona Fide OS Developer
View unanswered posts | View active topics It is currently Sat Jun 23, 2018 10:24 pm



Post new topic Reply to topic  [ 5 posts ] 
 OSDev fix 
Author Message

Joined: Fri Aug 20, 2010 10:04 pm
Posts: 41
Post 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.


Fri Feb 04, 2011 2:21 pm
Profile
Site Admin

Joined: Sat Jul 25, 2009 7:44 am
Posts: 274
Location: United Kingdom
Post 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.

_________________
Thank you for reading,

Kieran C G Foot


Fri Feb 04, 2011 3:33 pm
Profile WWW

Joined: Fri Aug 20, 2010 10:04 pm
Posts: 41
Post 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.


Fri Feb 04, 2011 4:03 pm
Profile
Site Admin

Joined: Sat Jul 25, 2009 7:44 am
Posts: 274
Location: United Kingdom
Post 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

_________________
Thank you for reading,

Kieran C G Foot


Fri Feb 04, 2011 4:23 pm
Profile WWW
Site Admin

Joined: Fri Jul 24, 2009 10:02 pm
Posts: 247
Location: Las Vegas, NV, US
Post 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 :)


Mon Mar 07, 2011 5:05 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.