Don't need to frob IDT if !BDB.

This commit is contained in:
mycroft 1994-02-04 16:08:52 +00:00
parent 9fce3345c0
commit 2782a65a0b
4 changed files with 7 additions and 34 deletions

View File

@ -94,9 +94,6 @@ xprot:
movl %ax, %ss
movl %ax, %es
# load idtr so we can debug
lidt EXT(Idtr_prot)
ret
/*
@ -138,11 +135,6 @@ xreal:
movl %ax, %ss
movl %ax, %es
# load idtr so we can debug
addr32
data32
lidt EXT(Idtr_real)
data32
ret

View File

@ -68,7 +68,7 @@ ENTRY(boot2)
FIXUP(BOOT_CS16_INDEX)
FIXUP(BOOT_DS_INDEX)
/* fix up GDT entry for GDT, and GDT and IDT pointers */
/* fix up GDT pointer */
data32
movl %eax, %ecx
data32
@ -76,11 +76,6 @@ ENTRY(boot2)
addr32
data32
movl %eax, EXT(Gdtr)+2
data32
addl $ EXT(Idt), %ecx
addr32
data32
movl %ecx, EXT(Idtr_prot)+2
/* change to protected mode */
data32

View File

@ -25,7 +25,7 @@
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*
* $Id: table.c,v 1.4 1994/02/03 23:21:26 mycroft Exp $
* $Id: table.c,v 1.5 1994/02/04 16:08:54 mycroft Exp $
*/
/*
@ -87,21 +87,6 @@ struct seg_desc Gdt[] = {
{0xFFFF, RUN, RUN, 0x9E, 0x0, 0x0}, /* 0x28 : boot code, 16 bits */
};
struct idt_desc {
unsigned short entry_15_0;
unsigned short selector;
unsigned char padding;
unsigned char p_dpl_type;
unsigned short entry_31_16;
};
struct idt_desc Idt[] = {
{}, /* Null (int 0) */
{RUN, 0x70, 0, 0x8E, 0}, /* DEBUG_VECTOR = 1 */
{}, /* Null (int 2) */
{RUN, 0x70, 0, 0xEE, 0}, /* BREAKPOINT_VECTOR = 3 */
};
struct pseudo_desc {
unsigned short limit;
unsigned short base_low;
@ -109,5 +94,3 @@ struct pseudo_desc {
};
struct pseudo_desc Gdtr = { sizeof Gdt - 1, RUN, RUN };
struct pseudo_desc Idtr_prot = { sizeof Idt - 1, RUN, RUN };
struct pseudo_desc Idtr_real = { 0x400 - 1, 0x0, 0x0 };

View File

@ -1,10 +1,13 @@
/*
* $Id: version.c,v 1.17 1994/02/03 23:22:55 mycroft Exp $
* $Id: version.c,v 1.18 1994/02/04 16:08:55 mycroft Exp $
*/
/*
* NOTE ANY CHANGES YOU MAKE TO THE BOOTBLOCKS HERE.
*
* 1.17 -> 1.18
* removed some more code we don't need for BDB. (mycroft)
*
* 1.16 -> 1.17
* removed with prejudice the extra buffer for xread(), changes
* to make the code smaller, and general cleanup. (mycroft)
@ -20,4 +23,4 @@
* look in boot.c revision logs
*/
char *version = "$Revision: 1.17 $";
char *version = "$Revision: 1.18 $";