Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/landisk Declare machine_cpu() __dead.
details: https://anonhg.NetBSD.org/src/rev/21f3b362a210
branches: trunk
changeset: 349636:21f3b362a210
user: uwe <uwe%NetBSD.org@localhost>
date: Sat Dec 17 01:10:38 2016 +0000
description:
Declare machine_cpu() __dead.
G/c the endless loop after calling it in cpu_reboot().
diffstat:
sys/arch/landisk/include/cpu.h | 6 +++---
sys/arch/landisk/landisk/machdep.c | 8 ++------
2 files changed, 5 insertions(+), 9 deletions(-)
diffs (47 lines):
diff -r be8a837c2ccb -r 21f3b362a210 sys/arch/landisk/include/cpu.h
--- a/sys/arch/landisk/include/cpu.h Fri Dec 16 23:37:21 2016 +0000
+++ b/sys/arch/landisk/include/cpu.h Sat Dec 17 01:10:38 2016 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: cpu.h,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
+/* $NetBSD: cpu.h,v 1.2 2016/12/17 01:10:39 uwe Exp $ */
#ifndef _LANDISK_CPU_H_
#define _LANDISK_CPU_H_
-void machine_reset(void);
-
#include <sh3/cpu.h>
+void machine_reset(void) __dead;
+
#endif /* _LANDISK_CPU_H_ */
diff -r be8a837c2ccb -r 21f3b362a210 sys/arch/landisk/landisk/machdep.c
--- a/sys/arch/landisk/landisk/machdep.c Fri Dec 16 23:37:21 2016 +0000
+++ b/sys/arch/landisk/landisk/machdep.c Sat Dec 17 01:10:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.18 2015/11/22 18:44:25 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.19 2016/12/17 01:10:38 uwe Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.18 2015/11/22 18:44:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.19 2016/12/17 01:10:38 uwe Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -367,11 +367,7 @@
printf("rebooting...\n");
machine_reset();
-
/*NOTREACHED*/
- for (;;) {
- continue;
- }
}
void
Home |
Main Index |
Thread Index |
Old Index