Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Remove dead code. it isn't possible to do non-__ELF...
details: https://anonhg.NetBSD.org/src/rev/a6feef0fd97f
branches: trunk
changeset: 355797:a6feef0fd97f
user: maya <maya%NetBSD.org@localhost>
date: Tue Aug 15 08:39:11 2017 +0000
description:
Remove dead code. it isn't possible to do non-__ELF__ builds
diffstat:
sys/arch/cats/cats/cats_machdep.c | 16 ++--------------
sys/arch/shark/shark/shark_machdep.c | 16 ++--------------
2 files changed, 4 insertions(+), 28 deletions(-)
diffs (74 lines):
diff -r 034061fdbe6f -r a6feef0fd97f sys/arch/cats/cats/cats_machdep.c
--- a/sys/arch/cats/cats/cats_machdep.c Tue Aug 15 08:35:56 2017 +0000
+++ b/sys/arch/cats/cats/cats_machdep.c Tue Aug 15 08:39:11 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cats_machdep.c,v 1.84 2017/06/13 15:24:05 skrll Exp $ */
+/* $NetBSD: cats_machdep.c,v 1.85 2017/08/15 08:47:39 maya Exp $ */
/*
* Copyright (c) 1997,1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.84 2017/06/13 15:24:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.85 2017/08/15 08:47:39 maya Exp $");
#include "opt_ddb.h"
#include "opt_modular.h"
@@ -467,18 +467,6 @@
fcomcndetach();
#endif
-
-#if NKSYMS || defined(DDB) || defined(MODULAR)
-#ifndef __ELF__ /* XXX */
- {
- extern int end;
- extern int *esym;
-
- ksyms_addsyms_elf(*(int *)&end, ((int *)&end) + 1, esym);
- }
-#endif /* __ELF__ */
-#endif
-
#ifdef DDB
db_machine_init();
if (boothowto & RB_KDB)
diff -r 034061fdbe6f -r a6feef0fd97f sys/arch/shark/shark/shark_machdep.c
--- a/sys/arch/shark/shark/shark_machdep.c Tue Aug 15 08:35:56 2017 +0000
+++ b/sys/arch/shark/shark/shark_machdep.c Tue Aug 15 08:39:11 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: shark_machdep.c,v 1.43 2017/03/10 00:13:08 macallan Exp $ */
+/* $NetBSD: shark_machdep.c,v 1.44 2017/08/15 08:39:11 maya Exp $ */
/*
* Copyright 1997
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: shark_machdep.c,v 1.43 2017/03/10 00:13:08 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: shark_machdep.c,v 1.44 2017/08/15 08:39:11 maya Exp $");
#include "opt_ddb.h"
#include "opt_modular.h"
@@ -303,18 +303,6 @@
if (fiq_claim(&shark_fiqhandler))
panic("Cannot claim FIQ vector.");
-#if NKSYMS || defined(DDB) || defined(MODULAR)
-#ifndef __ELF__
- {
- struct exec *kernexec = (struct exec *)KERNEL_TEXT_BASE;
- extern int end;
- extern char *esym;
-
- ksyms_addsyms_elf(kernexec->a_syms, &end, esym);
- }
-#endif /* __ELF__ */
-#endif /* NKSYMS || defined(DDB) || defined(MODULAR) */
-
#ifdef DDB
db_machine_init();
if (boothowto & RB_KDB)
Home |
Main Index |
Thread Index |
Old Index