Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/arch/acorn26/acorn26 Pull up revision 1.3 (requeste...
details: https://anonhg.NetBSD.org/src/rev/b45ff7f8eebc
branches: netbsd-1-6
changeset: 529401:b45ff7f8eebc
user: he <he%NetBSD.org@localhost>
date: Mon Nov 18 02:23:32 2002 +0000
description:
Pull up revision 1.3 (requested by bjh21 in ticket #686):
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 c84594ce3a9a -r b45ff7f8eebc sys/arch/acorn26/acorn26/machdep.c
--- a/sys/arch/acorn26/acorn26/machdep.c Mon Nov 18 02:19:33 2002 +0000
+++ b/sys/arch/acorn26/acorn26/machdep.c Mon Nov 18 02:23:32 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.2.4.1 2002/11/18 02:23:32 he 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.2.4.1 2002/11/18 02:23:32 he 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