summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-02-09 19:25:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-02-09 19:25:14 +0000
commit962f09baea9a9f568891b249e0c5189691d770cb (patch)
treea8d983f47dedc8a97e4f5f78adcf46264882149e /sys/arch/mips64
parentad7e63542e5a27b6398796e161579e5fb75f71d2 (diff)
No longer define EXEC_SCRIPT (probably coming from old PefoBSD). Also,
DB_ELFSIZE ought to be defined in <machine/db_machdep.h>, not <machine/exec.h>
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/include/db_machdep.h3
-rw-r--r--sys/arch/mips64/include/exec.h14
2 files changed, 4 insertions, 13 deletions
diff --git a/sys/arch/mips64/include/db_machdep.h b/sys/arch/mips64/include/db_machdep.h
index 2ddf903fb32..44678a9adb8 100644
--- a/sys/arch/mips64/include/db_machdep.h
+++ b/sys/arch/mips64/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.12 2011/03/23 16:54:36 pirofti Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.13 2013/02/09 19:25:13 miod Exp $ */
/*
* Copyright (c) 1998-2003 Opsycon AB (www.opsycon.se)
@@ -35,6 +35,7 @@
#define DB_MACHINE_COMMANDS /* We have machine specific commands */
#define DB_ELF_SYMBOLS /* Elf style symbol table support */
+#define DB_ELFSIZE 64
typedef struct trap_frame db_regs_t;
extern db_regs_t ddb_regs;
diff --git a/sys/arch/mips64/include/exec.h b/sys/arch/mips64/include/exec.h
index 02447c309ff..108df1b7aa0 100644
--- a/sys/arch/mips64/include/exec.h
+++ b/sys/arch/mips64/include/exec.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.h,v 1.5 2012/09/11 15:44:18 deraadt Exp $ */
+/* $OpenBSD: exec.h,v 1.6 2013/02/09 19:25:13 miod Exp $ */
/*
* Copyright (c) 1996-2004 Per Fogelstrom, Opsycon AB
@@ -31,17 +31,7 @@
#define __LDPGSZ 16384
-/*
- * Define what exec "formats" we should handle.
- */
-#define NATIVE_ELFSIZE 64
-#define EXEC_SCRIPT
-
-/*
- * If included from sys/exec.h define kernels ELF format.
- */
#define ARCH_ELFSIZE 64
-#define DB_ELFSIZE 64
#define ELF_TARG_CLASS ELFCLASS64
#if defined(__MIPSEB__)
@@ -55,7 +45,7 @@
#define _KERN_DO_ELF64
-/* Information taken from MIPS ABI supplemental */
+/* Information taken from MIPS ABI supplement */
/* Architecture dependent Segment types - p_type */
#define PT_MIPS_REGINFO 0x70000000 /* Register usage information */