From d547006112cd6c9990414d55b7456c3049d0b726 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 22 Jul 1994 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1994-07-22 --- pc/trap.c | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/pc/trap.c b/pc/trap.c index c725e81b61b8287ff8cedf672b1ad7ff6bcba18e..5b7562315f9d94d773178565420bd691254274fb 100644 --- a/pc/trap.c +++ b/pc/trap.c @@ -208,18 +208,24 @@ trapinit(void) outb(Int0aux, int0mask); } -char *excname[] = -{ -[0] "divide error", -[1] "debug exception", -[4] "overflow", -[5] "bounds check", -[6] "invalid opcode", -[8] "double fault", -[10] "invalid TSS", -[11] "segment not present", -[12] "stack exception", -[13] "general protection violation", +char *excname[] = { + [0] "divide error", + [1] "debug exception", + [2] " nonmaskable interrupt", + [3] "breakpoint", + [4] "overflow", + [5] "bounds check", + [6] "invalid opcode", + [7] "coprocessor not available", + [8] "double fault", + [9] "9 (reserved)", + [10] "invalid TSS", + [11] "segment not present", + [12] "stack exception", + [13] "general protection violation", + [14] "page fault", + [15] "15 (reserved)", + [16] "coprocessor error", }; /* @@ -278,7 +284,7 @@ trap(Ureg *ur) } if(v >= Int0vec || v < Int0vec+16){ - /* an unknown interrupts */ + /* an unknown interrupt */ v -= Int0vec; if(badintr[v]++ == 0 || (badintr[v]%100000) == 0) print("unknown interrupt %d pc=0x%lux: total %d\n", v,