Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 remove unused code



details:   https://anonhg.NetBSD.org/src/rev/cba8eeca4e36
branches:  trunk
changeset: 323932:cba8eeca4e36
user:      ryo <ryo%NetBSD.org@localhost>
date:      Mon Jul 09 06:11:12 2018 +0000

description:
remove unused code

diffstat:

 sys/arch/aarch64/aarch64/cpuswitch.S |  29 ++---------------------------
 1 files changed, 2 insertions(+), 27 deletions(-)

diffs (57 lines):

diff -r 540a7a66c81d -r cba8eeca4e36 sys/arch/aarch64/aarch64/cpuswitch.S
--- a/sys/arch/aarch64/aarch64/cpuswitch.S      Mon Jul 09 06:10:21 2018 +0000
+++ b/sys/arch/aarch64/aarch64/cpuswitch.S      Mon Jul 09 06:11:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.1 2018/04/01 04:35:03 ryo Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.2 2018/07/09 06:11:12 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include "opt_ddb.h"
 
-RCSID("$NetBSD: cpuswitch.S,v 1.1 2018/04/01 04:35:03 ryo Exp $")
+RCSID("$NetBSD: cpuswitch.S,v 1.2 2018/07/09 06:11:12 ryo Exp $")
 
 /*
  * At IPL_SCHED:
@@ -200,13 +200,6 @@
  *     x28 = arg
  */
 ENTRY_NP(lwp_trampoline)
-#if defined(MULTIPROCESSOR)
-       mov     x19, x0
-       mov     x20, x1
-       bl      _C_LABEL(proc_trampoline_mp)
-       mov     x1, x20
-       mov     x0, x19
-#endif
        bl      _C_LABEL(lwp_startup)
 
        /*
@@ -345,24 +338,6 @@
 END(cpu_Debugger)
 #endif /* DDB */
 
-#ifdef MULTIPROCESSOR
-/*
- * void
- * cpu_spinup_trampoline(int cpu_index)
- * {
- *      ci := tp == cpu_info[cpu_index]
- *      ci->ci_curlwp = ci->ci_data.ci_idlelwp;
- *      sp := ci->ci_curlwp->l_addr + USPACE - sizeof(struct trapframe)
- *      cpu_hatch(ci);
- *      jump to idle_loop() to join the cpu pool.
- * }
- */
-ENTRY_NP(cpu_spinup_trampoline)
-       bl      _C_LABEL(cpu_hatch)
-       b       _C_LABEL(cpu_idle)
-END(cpu_spinup_trampoline)
-#endif
-
 /*
  * int cpu_set_onfault(struct faultbuf *fb)
  */



Home | Main Index | Thread Index | Old Index