From owner-p4-projects@FreeBSD.ORG Thu Jun 30 05:15:39 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 138E916A420; Thu, 30 Jun 2005 05:15:39 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB24E16A41C for ; Thu, 30 Jun 2005 05:15:38 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B673943D1F for ; Thu, 30 Jun 2005 05:15:38 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j5U5Fc2U081906 for ; Thu, 30 Jun 2005 05:15:38 GMT (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j5U5Fcg9081903 for perforce@freebsd.org; Thu, 30 Jun 2005 05:15:38 GMT (envelope-from peter@freebsd.org) Date: Thu, 30 Jun 2005 05:15:38 GMT Message-Id: <200506300515.j5U5Fcg9081903@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 79238 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2005 05:15:39 -0000 http://perforce.freebsd.org/chv.cgi?CH=79238 Change 79238 by peter@peter_overcee on 2005/06/30 05:15:27 This really is ia32-specific, not amd64 specific. sparc64 binaries running 32 bit address space apps will probably not need the same hacks. Affected files ... .. //depot/projects/hammer/sys/kern/imgact_elf.c#30 edit Differences ... ==== //depot/projects/hammer/sys/kern/imgact_elf.c#30 (text+ko) ==== @@ -31,6 +31,8 @@ #include __FBSDID("$FreeBSD: src/sys/kern/imgact_elf.c,v 1.161 2005/05/24 22:21:44 cognet Exp $"); +#include "opt_compat.h" + #include #include #include @@ -66,7 +68,7 @@ #include #include -#if defined(__amd64__) && __ELF_WORD_SIZE == 32 +#if defined(COMPAT_IA32) && __ELF_WORD_SIZE == 32 #include #include #endif @@ -1123,7 +1125,7 @@ td)); /* XXXKSE */ } -#if defined(__amd64__) && __ELF_WORD_SIZE == 32 +#if defined(COMPAT_IA32) && __ELF_WORD_SIZE == 32 typedef struct prstatus32 elf_prstatus_t; typedef struct prpsinfo32 elf_prpsinfo_t; typedef struct fpreg32 elf_prfpregset_t; @@ -1207,7 +1209,7 @@ status->pr_osreldate = osreldate; status->pr_cursig = p->p_sig; status->pr_pid = thr->td_tid; -#if defined(__amd64__) && __ELF_WORD_SIZE == 32 +#if defined(COMPAT_IA32) && __ELF_WORD_SIZE == 32 fill_regs32(thr, &status->pr_reg); fill_fpregs32(thr, fpregset); #else @@ -1259,7 +1261,7 @@ ehdr->e_ident[EI_ABIVERSION] = 0; ehdr->e_ident[EI_PAD] = 0; ehdr->e_type = ET_CORE; -#if defined(__amd64__) && __ELF_WORD_SIZE == 32 +#if defined(COMPAT_IA32) && __ELF_WORD_SIZE == 32 ehdr->e_machine = EM_386; #else ehdr->e_machine = ELF_ARCH;