Yuku free message boards
Username or E-mail:
Password:
Forgot
Password?
Sign Up
Grab the Yuku app
Search:
MenuetOS
menuetos
>
64bit - MenuetOS
>
syscall 126 switch to 32 or 64bit mode
0 Points
Search this Topic:
Add Reply
New Topic
New Poll
Forum Jump
64bit - MenuetOS
64bit - Projects
64bit - Hardware
32bit - MenuetOS
32bit - Kernel
32bit - Applications
Help
Heap
<< Previous Topic
Next Topic >>
Re: syscall 126 switch to 32 or 64bit mode
Author
Comment
villemt
#1
[-]
Advanced Member
Posts
: 559
Jan 21 15 12:50 PM
Reply
Quote
More
My Recent Posts
It's a 32bit compatibility mode, which has the same x86 command set and registers as 32bit protected mode (
http://en.wikipedia.org/wiki/X86-64
). Only rax (eax) is changed due to the result of the mode change, other registers are preserved.
Example:
; Entry from 64bit mode
mov rax , 126
mov rbx , 1
int 0x60
use32
; 32bit code here
; ..
mov eax , 126
mov ebx , 2
int 0x60
use64
; Use 64bit again
Last Edited By:
villemt
Jan 21 15 1:11 PM. Edited 2 times.
<< Previous Topic
Next Topic >>
Add Reply
Forum Jump
64bit - MenuetOS
64bit - Projects
64bit - Hardware
32bit - MenuetOS
32bit - Kernel
32bit - Applications
Help
Heap
Share This
Email to Friend
del.icio.us
Digg it
Facebook
Blogger
Yahoo MyWeb
menuetos
>
64bit - MenuetOS
>
syscall 126 switch to 32 or 64bit mode
Click to subscribe by RSS
Click to receive E-mail notifications of replies