Messages in this thread | | | Date | Mon, 28 Oct 2002 08:45:50 +0100 | From | Kasper Dupont <> | Subject | Re: [CFT] kexec syscall for 2.5.43 (linux booting linux) |
| |
"Eric W. Biederman" wrote: > > +static void i8259A_remove(struct device *dev) > +{ > + /* Restore the i8259A to it's legacy dos setup. > + * The kernel won't be using it any more, and it > + * just might make reboots, and kexec type applications > + * more stable. > + */ > + outb(0xff, 0x21); /* mask all of 8259A-1 */ > + outb(0xff, 0xA1); /* mask all of 8259A-1 */ > + > + outb_p(0x11, 0x20); /* ICW1: select 8259A-1 init */ > + outb_p(0x08, 0x21); /* ICW2: 8259A-1 IR0-7 mappend to 0x8-0xf */ > + outb_p(0x01, 0x21); /* Normal 8086 auto EOI mode */ > + > + outb_p(0x11, 0xA0); /* ICW1: select 8259A-2 init */ > + outb_p(0x08, 0xA1); /* ICW2: 8259A-2 IR0-7 mappend to 0x70-0x77 */ ^^^^ ^^^^
This looks wrong to me.
-- Kasper Dupont -- der bruger for meget tid på usenet. For sending spam use mailto:aaarep@daimi.au.dk Don't do this at home kids: touch -- -rf - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |