Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/acorn26/acorn26 Disable IRQs and FIQs when rebooting.



details:   https://anonhg.NetBSD.org/src/rev/472362211b25
branches:  trunk
changeset: 535193:472362211b25
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun Aug 11 20:45:10 2002 +0000

description:
Disable IRQs and FIQs when rebooting.

diffstat:

 sys/arch/acorn26/acorn26/machdep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r cf7aeec59dab -r 472362211b25 sys/arch/acorn26/acorn26/machdep.c
--- a/sys/arch/acorn26/acorn26/machdep.c        Sun Aug 11 20:43:51 2002 +0000
+++ b/sys/arch/acorn26/acorn26/machdep.c        Sun Aug 11 20:45:10 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.2 2002/03/24 23:37:42 bjh21 Exp $ */
+/* $NetBSD: machdep.c,v 1.3 2002/08/11 20:45:10 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1998 Ben Harris
@@ -32,7 +32,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.2 2002/03/24 23:37:42 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2002/08/11 20:45:10 bjh21 Exp $");
 
 #include <sys/buf.h>
 #include <sys/kernel.h>
@@ -125,7 +125,9 @@
                *(volatile u_int8_t *)0x9c2 = 2; /* Zero page magic */
                *(volatile u_int32_t *)0
                        = *(volatile u_int32_t *)MEMC_ROM_LOW_BASE;
-               asm volatile("movs pc, #3"); /* reboot in SVC mode */
+               /* reboot in SVC mode, IRQs and FIQs disabled */
+               asm volatile("movs pc, %0" : :
+                   "r" (R15_MODE_SVC | R15_FIQ_DISABLE | R15_IRQ_DISABLE));
        }
        panic("cpu_reboot failed");
 }



Home | Main Index | Thread Index | Old Index