From 7403ef3d00fc889cdcab91ae43b6d5b8273e75f9 Mon Sep 17 00:00:00 2001 From: eeh Date: Mon, 10 Jul 2000 01:15:17 +0000 Subject: [PATCH] Need to include to make things happy. So much for adding dead code. --- sys/arch/sparc64/sparc64/machdep.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index da50654d0011..7f0652dd887a 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.77 2000/07/09 22:39:17 eeh Exp $ */ +/* $NetBSD: machdep.c,v 1.78 2000/07/10 01:15:17 eeh Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -109,6 +109,14 @@ #include #include +#ifndef ELFSIZE +#ifdef __arch64__ +#define ELFSIZE 64 +#else +#define ELFSIZE 32 +#endif +#endif +#include #define _SPARC_BUS_DMA_PRIVATE #include @@ -323,7 +331,7 @@ setregs(p, pack, stack) register struct fpstate64 *fs; register int64_t tstate; int pstate = PSTATE_USER; - Elf_Ehdr *eh = epp->ep_hdr; + Elf_Ehdr *eh = pack->ep_hdr; /* Don't allow misaligned code by default */ p->p_md.md_flags &= ~MDP_FIXALIGN;