diff options
author | mp <mp@FreeBSD.org> | 2001-11-05 00:49:03 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2001-11-05 00:49:03 +0000 |
commit | ba5cfb0dbeb0e5831ceb781d1a76c64ee3893cdd (patch) | |
tree | c52c3222732a65c24751a7a9e0fa86163dc88961 /sys/powerpc/include | |
parent | e8fdcea4033f3b246411335ef106ec835c22f699 (diff) | |
download | FreeBSD-src-ba5cfb0dbeb0e5831ceb781d1a76c64ee3893cdd.zip FreeBSD-src-ba5cfb0dbeb0e5831ceb781d1a76c64ee3893cdd.tar.gz |
Clean up the trap handling code and make it consistent with the other platforms.
Submitted by: jhb
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r-- | sys/powerpc/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/powerpc/include/trap.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/powerpc/include/cpu.h b/sys/powerpc/include/cpu.h index e23732f..9221b34 100644 --- a/sys/powerpc/include/cpu.h +++ b/sys/powerpc/include/cpu.h @@ -53,9 +53,6 @@ void delay(int); #define DELAY(n) delay(n) -extern int want_resched; -extern int astpending; - extern char bootpath[]; #if defined(_KERNEL) || defined(_STANDALONE) diff --git a/sys/powerpc/include/trap.h b/sys/powerpc/include/trap.h index dd359d2..2438f08 100644 --- a/sys/powerpc/include/trap.h +++ b/sys/powerpc/include/trap.h @@ -52,7 +52,7 @@ /* The following are only available on 604: */ #define EXC_PERF 0x0f00 /* Performance Monitoring */ #define EXC_BPT 0x1300 /* Instruction Breakpoint */ -#define EXC_SMI 0x1400 /* System Managment Interrupt */ +#define EXC_SMI 0x1400 /* System Management Interrupt */ /* And these are only on the 603: */ #define EXC_IMISS 0x1000 /* Instruction translation miss */ @@ -61,8 +61,6 @@ #define EXC_LAST 0x2f00 /* Last possible exception vector */ -#define EXC_AST 0x3000 /* Fake AST vector */ - /* Trap was in user mode */ #define EXC_USER 0x10000 @@ -87,6 +85,7 @@ #ifndef LOCORE void trap(struct trapframe *); +void syscall(struct trapframe *); #endif /* !LOCORE */ |