Page 1 of 1
few questions[new questions]
Posted: Tue Dec 25, 2007 3:43 pm
by packet50071
In the wiki it said that I need to disable interrupts before I enter PM
How do I do that ??
CLI -- Just clears out table right ??or does it disable it ??
How do i enable it after ?
thx for future help
Posted: Tue Dec 25, 2007 3:48 pm
by Craze Frog
cli just clears the interrupt flag, which means interrupts are disabled.
sti sets the interrupt flag, which means you receive interrupts again.
Posted: Tue Dec 25, 2007 3:49 pm
by lukem95
yeah
cli = CLear Interupts
sti = STart Interupts
(i think... this is how i remember it
)
Posted: Tue Dec 25, 2007 3:58 pm
by Craze Frog
lukem_95 wrote:yeah
cli = CLear Interupts
sti = STart Interupts
(i think... this is how i remember it
)
It's actually Clear Interrupt Flag and Set Interrupt Flag.
Posted: Tue Dec 25, 2007 4:10 pm
by packet50071
thx For conforming
edit
http://www.osdev.org/wiki/IDT
How do i set this Up ?? [ IDT ]
Is there any other palce where i can find this kind of "Standard Codes" ?
and also Does GRUB give control to my code After entering pm ??
Posted: Wed Dec 26, 2007 7:17 pm
by bewing
It's easy just to set up the initial (stubbed) 256 interrupt handlers in the IDT as a predefined data table in your kernel. You can read the exact format of an IDT entry in one of the Intel manuals.
And your kernel should be compiled to expect that its base load address is 0x100000 (1M), and its entry point is also there -- that is how GRUB transfers control to you.