diff options
author | ian <ian@FreeBSD.org> | 2014-03-09 18:08:27 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-03-09 18:08:27 +0000 |
commit | 3b592f9410a74f60bfae632b7fe97fd3b544ae9f (patch) | |
tree | 4930b030f23de5aad9d710bd94d0b63e3aaa5876 /sys/arm/xscale/i80321/ep80219_machdep.c | |
parent | da7ada7de5386a2e2777c6674ed89b510819ea53 (diff) | |
download | FreeBSD-src-3b592f9410a74f60bfae632b7fe97fd3b544ae9f.zip FreeBSD-src-3b592f9410a74f60bfae632b7fe97fd3b544ae9f.tar.gz |
The arm exception entry points currently vector through a function pointer
to the actual handler routine. All the pointers are static-intialized to
the only handlers available, and yet various platform-specific inits still
set those pointers (to the values they're already initialized to). Begin
to drain the swamp by removing all the redundant external declarations and
runtime setting of the pointers that's scattered around various places.
Diffstat (limited to 'sys/arm/xscale/i80321/ep80219_machdep.c')
-rw-r--r-- | sys/arm/xscale/i80321/ep80219_machdep.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/arm/xscale/i80321/ep80219_machdep.c b/sys/arm/xscale/i80321/ep80219_machdep.c index 6211a7a..3112fe4 100644 --- a/sys/arm/xscale/i80321/ep80219_machdep.c +++ b/sys/arm/xscale/i80321/ep80219_machdep.c @@ -103,10 +103,6 @@ __FBSDID("$FreeBSD$"); /* this should be evenly divisable by PAGE_SIZE / L2_TABLE_SIZE_REAL (or 4) */ #define NUM_KERNEL_PTS (KERNEL_PT_AFKERNEL + KERNEL_PT_AFKERNEL_NUM) -extern u_int data_abort_handler_address; -extern u_int prefetch_abort_handler_address; -extern u_int undefined_handler_address; - struct pv_addr kernel_pt_table[NUM_KERNEL_PTS]; /* Physical and virtual addresses for some global pages */ @@ -321,11 +317,6 @@ initarm(struct arm_boot_params *abp) physmem = memsize / PAGE_SIZE; cninit(); - /* Set stack for exception handlers */ - - data_abort_handler_address = (u_int)data_abort_handler; - prefetch_abort_handler_address = (u_int)prefetch_abort_handler; - undefined_handler_address = (u_int)undefinedinstruction_bounce; undefined_init(); init_proc0(kernelstack.pv_va); |