lkml.org 
[lkml]   [2000]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.4.0-test9-pre3 bluesmoke patches
Date
Patches for bluesmoke against 2.4.0-test9-pre3.

arch/i386/kernel/traps.c still contains

asmlinkage void reserved(void);
DO_ERROR(18, SIGSEGV, "reserved", reserved)

With a definition of reserved in entry.S. Vector 18 is now used for
machine check, lines removed.

Most C routines called from entry.S are called do_xxx where xxx is the
asm routine name, bluesmoke uses mcheck_fault. Also all routines
called from error_code have two parameters but bluesmoke does not
declare them. mcheck_fault renamed to do_machine_check and the
standard parameters added, consistency is good.

Index: 0-test9-pre3.1/arch/i386/kernel/traps.c
--- 0-test9-pre3.1/arch/i386/kernel/traps.c Tue, 19 Sep 2000 10:36:07 +1100 kaos (linux-2.4/A/c/1_traps.c 1.1.2.2.1.1.2.1.2.3 644)
+++ 0-test9-pre3.1(w)/arch/i386/kernel/traps.c Tue, 19 Sep 2000 11:49:02 +1100 kaos (linux-2.4/A/c/1_traps.c 1.1.2.2.1.1.2.1.2.3 644)
@@ -92,7 +92,6 @@ asmlinkage void general_protection(void)
asmlinkage void page_fault(void);
asmlinkage void coprocessor_error(void);
asmlinkage void simd_coprocessor_error(void);
-asmlinkage void reserved(void);
asmlinkage void alignment_check(void);
asmlinkage void spurious_interrupt_bug(void);
asmlinkage void machine_check(void);
@@ -312,7 +311,6 @@ DO_ERROR(10, SIGSEGV, "invalid TSS", inv
DO_ERROR(11, SIGBUS, "segment not present", segment_not_present)
DO_ERROR(12, SIGBUS, "stack segment", stack_segment)
DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, get_cr2())
-DO_ERROR(18, SIGSEGV, "reserved", reserved)

asmlinkage void do_general_protection(struct pt_regs * regs, long error_code)
{
Index: 0-test9-pre3.1/arch/i386/kernel/entry.S
--- 0-test9-pre3.1/arch/i386/kernel/entry.S Tue, 19 Sep 2000 10:36:07 +1100 kaos (linux-2.4/A/c/3_entry.S 1.1.2.2.2.2.1.4 644)
+++ 0-test9-pre3.1(w)/arch/i386/kernel/entry.S Tue, 19 Sep 2000 11:59:19 +1100 kaos (linux-2.4/A/c/3_entry.S 1.1.2.2.2.2.1.4 644)
@@ -381,11 +381,6 @@ ENTRY(coprocessor_segment_overrun)
pushl $ SYMBOL_NAME(do_coprocessor_segment_overrun)
jmp error_code

-ENTRY(reserved)
- pushl $0
- pushl $ SYMBOL_NAME(do_reserved)
- jmp error_code
-
ENTRY(double_fault)
pushl $ SYMBOL_NAME(do_double_fault)
jmp error_code
@@ -416,7 +411,7 @@ ENTRY(page_fault)

ENTRY(machine_check)
pushl $0
- pushl $ SYMBOL_NAME(mcheck_fault)
+ pushl $ SYMBOL_NAME(do_machine_check)
jmp error_code

ENTRY(spurious_interrupt_bug)
Index: 0-test9-pre3.1/arch/i386/kernel/bluesmoke.c
--- 0-test9-pre3.1/arch/i386/kernel/bluesmoke.c Tue, 19 Sep 2000 10:36:07 +1100 kaos (linux-2.4/c/d/7_bluesmoke. 1.1 644)
+++ 0-test9-pre3.1(w)/arch/i386/kernel/bluesmoke.c Tue, 19 Sep 2000 11:42:50 +1100 kaos (linux-2.4/c/d/7_bluesmoke. 1.1 644)
@@ -11,7 +11,7 @@

static int banks = 0;

-void mcheck_fault(void)
+void do_machine_check(struct pt_regs * regs, long error_code)
{
int recover=1;
u32 alow, ahigh, high, low;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.023 / U:4.532 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site