diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2008-12-07 10:29:02 +1100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-01-24 01:12:20 +0100 |
commit | 3f5f18d12d32ee0661bf51dfc55752c005230d6e (patch) | |
tree | b0d03fbf7f52bb1457f7aeccee1d02701f27d881 /cpu/i386/interrupts.c | |
parent | 9933d609020c297788f53f334c8465fa7a99b10c (diff) | |
download | u-boot-imx-3f5f18d12d32ee0661bf51dfc55752c005230d6e.zip u-boot-imx-3f5f18d12d32ee0661bf51dfc55752c005230d6e.tar.gz u-boot-imx-3f5f18d12d32ee0661bf51dfc55752c005230d6e.tar.bz2 |
Moved generic (triple fault) reset code
Moved from interrupts.c to cpu.c and made into a weak function to
allow vendor specific override
Vendor specific CPU reset (like the AMD SC520 MMCR reset) can now be
added to the vendor specific code without the need to remember to
#undef usage of the generic method and if you forget to include your
custom reset method, you will always get the default.
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'cpu/i386/interrupts.c')
-rw-r--r-- | cpu/i386/interrupts.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cpu/i386/interrupts.c b/cpu/i386/interrupts.c index ba9e89d..badb30b 100644 --- a/cpu/i386/interrupts.c +++ b/cpu/i386/interrupts.c @@ -508,19 +508,3 @@ int disable_interrupts(void) return (flags&0x200); /* IE flags is bit 9 */ } - - -#ifdef CONFIG_SYS_RESET_GENERIC - -void __attribute__ ((regparm(0))) generate_gpf(void); -asm(".globl generate_gpf\n" - "generate_gpf:\n" - "ljmp $0x70, $0x47114711\n"); /* segment 0x70 is an arbitrary segment which does not - * exist */ -void reset_cpu(ulong addr) -{ - set_vector(13, generate_gpf); /* general protection fault handler */ - set_vector(8, generate_gpf); /* double fault handler */ - generate_gpf(); /* start the show */ -} -#endif |