summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-28 07:21:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-28 07:21:13 +0000
commit8fbb78f3c72475039f2b05c2237097c9a7243a13 (patch)
tree8e3aa7abbc0cfa0a1c01216a90d7a295a651e2a3
parentf96b99657e8f46b88f8c52fda352a841b83ee416 (diff)
do not use MID_ZERO! then file(1) does not work
-rw-r--r--sys/arch/hppa/hppa/vm_machdep.c4
-rw-r--r--sys/arch/powerpc/powerpc/vm_machdep.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/hppa/hppa/vm_machdep.c b/sys/arch/hppa/hppa/vm_machdep.c
index e2fae705fda..4cfbe355017 100644
--- a/sys/arch/hppa/hppa/vm_machdep.c
+++ b/sys/arch/hppa/hppa/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.35 2002/03/28 07:02:27 deraadt Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.36 2002/03/28 07:21:12 deraadt Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -66,7 +66,7 @@ cpu_coredump(p, vp, cred, core)
off_t off;
int error;
- CORE_SETMAGIC(*core, COREMAGIC, MID_ZERO, 0);
+ CORE_SETMAGIC(*core, COREMAGIC, MID_HPPA, 0);
core->c_hdrsize = ALIGN(sizeof(*core));
core->c_seghdrsize = ALIGN(sizeof(cseg));
core->c_cpusize = sizeof(md_core);
diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c
index adc4f9cdb9f..530ef399799 100644
--- a/sys/arch/powerpc/powerpc/vm_machdep.c
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.32 2002/03/14 23:51:47 drahn Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.33 2002/03/28 07:21:12 deraadt Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */
/*
@@ -204,14 +204,14 @@ cpu_coredump(p, vp, cred, chdr)
struct md_coredump md_core;
int error;
- CORE_SETMAGIC(*chdr, COREMAGIC, MID_ZERO, 0);
+ CORE_SETMAGIC(*chdr, COREMAGIC, MID_HPPA, 0);
chdr->c_hdrsize = ALIGN(sizeof *chdr);
chdr->c_seghdrsize = ALIGN(sizeof cseg);
chdr->c_cpusize = sizeof md_core;
process_read_regs(p, &(md_core.regs));
- CORE_SETMAGIC(cseg, CORESEGMAGIC, MID_ZERO, CORE_CPU);
+ CORE_SETMAGIC(cseg, CORESEGMAGIC, MID_HPPA, CORE_CPU);
cseg.c_addr = 0;
cseg.c_size = chdr->c_cpusize;