flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > IDT... this big wall! |
Author |
|
Octavio 12 Jul 2004, 23:41
[quote="Nikso"]Hi there!
is your kernel code 32 bit and org=10000h cs=0 ds=0 ? |
|||
12 Jul 2004, 23:41 |
|
Nikso 13 Jul 2004, 08:07
well, org=10000h but cs=0x08 and ds=0x10 because the global descriptor table is already in use...
|
|||
13 Jul 2004, 08:07 |
|
Nikso 13 Jul 2004, 15:02
Mmhhh...
I've try to define the IDT just in the bootloader and... it works! But, if I leve it there and try to fill an entry with a handler defined in the kernel (after 0x10000) it doesn't work... So maybe is because the hight part of the offset in the IDT entry is not 0 (is should be 0x0010 at least) and I don't enter it correcly... dunno What about the function above? Do it generate a correct IDT item? Thanks again |
|||
13 Jul 2004, 15:02 |
|
Nikso 13 Jul 2004, 15:55
What can I say...
LOL It was only a stupid mistake with the above function: Code: ; Set flags MOV EAX,[Present] AND EAX,1 SHL AL,2 OR AL,BYTE [Privilege] AND EAX,7 SHL AL,5 OR AL,00001110b SHL EAX,8 ;<-- ------------ damn!!! MOV [EDX+4],AX Exactly 1 day for find out a stupid mistake and 1 useless post Whell... thanks in any cases ^_^ Bye[/b] |
|||
13 Jul 2004, 15:55 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.