Some IDT Code...in C
Re:Some IDT Code...in C
Berserk,
What books have you bought? What does it explain in there about IDT's? Maybe we can clarify if the books description is not very clear.
Daryl.
What books have you bought? What does it explain in there about IDT's? Maybe we can clarify if the books description is not very clear.
Daryl.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Some IDT Code...in C
okay, Bersek. What if you stop bugging ppl with repeated questions and ask GOOGLE instead ? Get the Intel manualsBerserk wrote: Could Somebody PLEASE, PLEASE explain to me, WHAT IS AN IDT! and What does it do??
;D
(alt: special low bandwidth plain text copy)
and check sections 9.4 and 9.5 about interrupt descriptor tables.
Thanks in advance.
Re:Some IDT Code...in C
I am in PMode when I setup my stack and I use bits 32 before I setup my stack.
If I put 0xFFFFFFFF in ESP ( in Pmode ) BOCHS says it's running in "bogus" memory and my computer tripple faults when I run it out of BOCHS.
How do I make my stack 0xFFFFFFFF?
If I put 0xFFFFFFFF in ESP ( in Pmode ) BOCHS says it's running in "bogus" memory and my computer tripple faults when I run it out of BOCHS.
How do I make my stack 0xFFFFFFFF?
Re:Some IDT Code...in C
Have you tried changing the registers mainly the ax register which is 16 bit to a 32 bit register?
To
Not sure if there is a 32 bit register for the stack. I not sure if this would help. Its worth a try.
Code: Select all
mov ax,0x10
mov ss,ax
mov esp,0xFFFFFFFF
Code: Select all
mov eax,0x10
mov ss,eax
mov esp,0xFFFFFFFF
Not sure if there is a 32 bit register for the stack. I not sure if this would help. Its worth a try.
Re:Some IDT Code...in C
Hi,
I still have a bugs with my handlers
In every code what I had been saw, the handlers look diference. Can anyone post a simple handler?
Witch looks like this:
Thnx!
P.S. - Sorry for my terrible english
I still have a bugs with my handlers
In every code what I had been saw, the handlers look diference. Can anyone post a simple handler?
Witch looks like this:
Code: Select all
IRQ0:
... some pushs?...
CALL _C_Function ; For example with one variable
...some pops?...
IRET
P.S. - Sorry for my terrible english
Re:Some IDT Code...in C
I'm not sure if this works but:
IDThan0:
pusha
call C code
popa
iret
Also...that eax stuff didn't work.
IDThan0:
pusha
call C code
popa
iret
Also...that eax stuff didn't work.
Re:Some IDT Code...in C
Tom, post your code so I can have a look at it. If I can't figure out your problem, at least maybe someone else can.
Re:Some IDT Code...in C
My boot.asm is in this file:http://www.mega-tokyo.com/forum/attachments/uploaded_files/Prekernel0-3.zip
Re:Some IDT Code...in C
I was referring to your non-working code, I.E the IDT in C and the other asm code thats giving you problems.
Re:Some IDT Code...in C
Have you got the top of the virtual address space mapped? Otherwise won't setting esp to 0xFFFFFFFF just cause a page fault?
Daryl.
Daryl.
Re:Some IDT Code...in C
beyondsociety...my IDT is working now! I'm having stack problems now!
:-[ That sounds scary...how do I fix this?Have you got the top of the virtual address space mapped? Otherwise won't setting esp to 0xFFFFFFFF just cause a page fault?
Re:Some IDT Code...in C
Sorry. Could I at least look at your asm code thats giving you the stack problem.
Re:Some IDT Code...in C
::) It's in the file link I gave you...
And I would still like to know how to do that virtual address thing.
And I would still like to know how to do that virtual address thing.