From f91fbbf4b8e6fbe70b792ee52521076f28e1da14 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 30 Sep 2015 15:30:09 +0200 Subject: bsps/i386: Interrupt server support --- c/src/lib/libbsp/i386/pc386/startup/ldsegs.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libbsp/i386/pc386/startup/ldsegs.S') diff --git a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S index f527ff9ebd..82ff982331 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S +++ b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S @@ -147,16 +147,16 @@ next_step: outb al, $0xA1 call SYM(pc386_delay) + /* + * The IMR values must correspond to the initial value of i8259s_cache. + */ movb $0xFF, al /* mask off all interrupts for now */ outb al, $0xA1 call SYM(pc386_delay) movb $0xFB, al /* mask all irq's but irq2 which */ outb al, $0x21 /* is cascaded */ call SYM(pc386_delay) - - movw $0xFFFB, SYM(i8259s_cache) /* set up same values in cache */ - - #endif +#endif jmp SYM (_establish_stack) # return to the bsp entry code /*-------------------------------------------------------------------------+ -- cgit v1.2.3