Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke - Write-back msgbuf and update bootst...



details:   https://anonhg.NetBSD.org/src/rev/f6d606cf8f37
branches:  trunk
changeset: 954158:f6d606cf8f37
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Mar 30 14:29:54 2021 +0000

description:
- Write-back msgbuf and update bootstr for reboot from halt.
- Remove dead code.

diffstat:

 sys/arch/powerpc/booke/booke_machdep.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (42 lines):

diff -r f91a6e49e116 -r f6d606cf8f37 sys/arch/powerpc/booke/booke_machdep.c
--- a/sys/arch/powerpc/booke/booke_machdep.c    Tue Mar 30 14:25:28 2021 +0000
+++ b/sys/arch/powerpc/booke/booke_machdep.c    Tue Mar 30 14:29:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: booke_machdep.c,v 1.32 2020/07/06 10:08:16 rin Exp $   */
+/*     $NetBSD: booke_machdep.c,v 1.33 2021/03/30 14:29:54 rin Exp $   */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@
 #define        _POWERPC_BUS_DMA_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: booke_machdep.c,v 1.32 2020/07/06 10:08:16 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: booke_machdep.c,v 1.33 2021/03/30 14:29:54 rin Exp $");
 
 #include "ksyms.h"
 
@@ -288,15 +288,6 @@
                cnpollc(1);     /* For proper keyboard command handling */
                cngetc();
                cnpollc(0);
-
-               printf("rebooting...\n\n");
-               goto reboot;    /* XXX for now... */
-
-#ifdef DDB
-               printf("dropping to debugger\n");
-               while(1)
-                       Debugger();
-#endif
        }
 
        printf("rebooting\n\n");
@@ -321,7 +312,6 @@
        /* flush cache for msgbuf */
        dcache_wb(msgbuf_paddr, round_page(MSGBUFSIZE));
 
- reboot:
        __asm volatile("msync; isync");
        (*cpu_md_ops.md_cpu_reset)();
 



Home | Main Index | Thread Index | Old Index