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/d6bd164bfc1b
branches:  trunk
changeset: 826107:d6bd164bfc1b
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 32bad857105f -r d6bd164bfc1b 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