Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/include kill extra curproc/curlwp definitio...



details:   https://anonhg.NetBSD.org/src/rev/1d54081c76ee
branches:  trunk
changeset: 1008086:1d54081c76ee
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 10 03:49:56 2020 +0000

description:
kill extra curproc/curlwp definitions that have no chance of working.

diffstat:

 sys/arch/sparc64/include/cpu.h |  12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diffs (25 lines):

diff -r cfe5d274cb2e -r 1d54081c76ee sys/arch/sparc64/include/cpu.h
--- a/sys/arch/sparc64/include/cpu.h    Tue Mar 10 03:48:05 2020 +0000
+++ b/sys/arch/sparc64/include/cpu.h    Tue Mar 10 03:49:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.129 2019/12/29 21:09:27 martin Exp $ */
+/*     $NetBSD: cpu.h,v 1.130 2020/03/10 03:49:56 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -457,15 +457,5 @@
 int    fixalign(struct lwp *, struct trapframe64 *);
 int    emulinstr(vaddr_t, struct trapframe64 *);
 
-#else /* _KERNEL */
-
-/*
- * XXX: provide some definitions for crash(8), probably can share
- */
-#if defined(_KMEMUSER)
-#define        curcpu()        (((struct cpu_info *)CPUINFO_VA)->ci_self)
-#define curlwp         curcpu()->ci_curlwp
-#endif
-
 #endif /* _KERNEL */
 #endif /* _CPU_H_ */



Home | Main Index | Thread Index | Old Index