Module Name: src Committed By: maya Date: Tue Aug 15 09:26:56 UTC 2017
Modified Files: src/sys/arch/mac68k/mac68k: machdep.c Log Message: Remove dead code. it isn't possible to do non-__ELF__ build To generate a diff of this commit: cvs rdiff -u -r1.350 -r1.351 src/sys/arch/mac68k/mac68k/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mac68k/mac68k/machdep.c diff -u src/sys/arch/mac68k/mac68k/machdep.c:1.350 src/sys/arch/mac68k/mac68k/machdep.c:1.351 --- src/sys/arch/mac68k/mac68k/machdep.c:1.350 Mon Apr 3 17:36:17 2017 +++ src/sys/arch/mac68k/mac68k/machdep.c Tue Aug 15 09:26:56 2017 @@ -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 @@ getenvvars(u_long flag, char *buf) 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 @@ getenvvars(u_long flag, char *buf) ADBReInit_JTBL = getenv("ADBREINIT_JTBL"); mrg_ADBIntrPtr = (void *)getenv("ADBINTERRUPT"); -#ifdef __ELF__ /* * Check the ELF headers. */ @@ -1017,10 +1014,6 @@ getenvvars(u_long flag, char *buf) symsize = 1; ssym = (int *)ehdr; -#else - symsize = *(int *)&end; - ssym = ((int *)&end) + 1; -#endif } static long