Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/mac68k Remove dead code. it isn't possible t...
details: https://anonhg.NetBSD.org/src/rev/ce20015337bb
branches: trunk
changeset: 355806:ce20015337bb
user: maya <maya%NetBSD.org@localhost>
date: Tue Aug 15 09:26:56 2017 +0000
description:
Remove dead code. it isn't possible to do non-__ELF__ build
diffstat:
sys/arch/mac68k/mac68k/machdep.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (50 lines):
diff -r 66e175e124c4 -r ce20015337bb sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c Tue Aug 15 09:25:00 2017 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c Tue Aug 15 09:26:56 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.350 2017/04/03 17:36:17 christos Exp $ */
+/* $NetBSD: machdep.c,v 1.351 2017/08/15 09:26:56 maya Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.350 2017/04/03 17:36:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.351 2017/08/15 09:26:56 maya Exp $");
#include "opt_adb.h"
#include "opt_copy_symtab.h"
@@ -872,12 +872,10 @@
extern long macos_gmtbias;
int root_scsi_id;
u_long root_ata_dev;
-#ifdef __ELF__
int i;
Elf_Ehdr *ehdr;
Elf_Shdr *shp;
vaddr_t minsym;
-#endif
/*
* If flag & 0x80000000 == 0, then we're booting with the old booter
@@ -990,7 +988,6 @@
ADBReInit_JTBL = getenv("ADBREINIT_JTBL");
mrg_ADBIntrPtr = (void *)getenv("ADBINTERRUPT");
-#ifdef __ELF__
/*
* Check the ELF headers.
*/
@@ -1017,10 +1014,6 @@
symsize = 1;
ssym = (int *)ehdr;
-#else
- symsize = *(int *)&end;
- ssym = ((int *)&end) + 1;
-#endif
}
static long
Home |
Main Index |
Thread Index |
Old Index