From owner-p4-projects@FreeBSD.ORG Tue Oct 24 23:30:20 2006 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 194DD16A4EB; Tue, 24 Oct 2006 23:30:20 +0000 (UTC) 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 A3EF616A4DA for ; Tue, 24 Oct 2006 23:30:19 +0000 (UTC) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53D0C43D76 for ; Tue, 24 Oct 2006 23:30:05 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k9ONU5R7006271 for ; Tue, 24 Oct 2006 23:30:05 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k9ONU4GF006262 for perforce@freebsd.org; Tue, 24 Oct 2006 23:30:04 GMT (envelope-from marcel@freebsd.org) Date: Tue, 24 Oct 2006 23:30:04 GMT Message-Id: <200610242330.k9ONU4GF006262@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Cc: Subject: PERFORCE change 108372 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: Tue, 24 Oct 2006 23:30:20 -0000 http://perforce.freebsd.org/chv.cgi?CH=108372 Change 108372 by marcel@marcel_cluster on 2006/10/24 23:29:56 i386 build fixes. Affected files ... .. //depot/projects/ia64/sys/boot/efi/include/i386/efibind.h#4 edit .. //depot/projects/ia64/sys/boot/efi/libefi/efinet.c#7 edit .. //depot/projects/ia64/sys/boot/efi/libefi/libefi.c#8 edit Differences ... ==== //depot/projects/ia64/sys/boot/efi/include/i386/efibind.h#4 (text+ko) ==== @@ -18,61 +18,9 @@ --*/ -#pragma pack() +#include - -/* - * Basic int types of various widths - */ - -#if (__STDC_VERSION__ < 199901L ) - -/* No ANSI C 1999/2000 stdint.h integer width declarations */ - - #if _MSC_EXTENSIONS - -/* Use Microsoft C compiler integer width declarations */ - - typedef unsigned __int64 uint64_t; - typedef __int64 int64_t; - typedef unsigned __int32 uint32_t; - typedef __int32 int32_t; - typedef unsigned short uint16_t; - typedef short int16_t; - typedef unsigned char uint8_t; - typedef char int8_t; - #else - #ifdef UNIX_LP64 - -/* Use LP64 programming model from C_FLAGS for integer width declarations */ - - typedef unsigned long uint64_t; - typedef long int64_t; - typedef unsigned int uint32_t; - typedef int int32_t; - typedef unsigned short uint16_t; - typedef short int16_t; - typedef unsigned char uint8_t; - typedef char int8_t; - #else - -/* Assume P64 programming model from C_FLAGS for integer width declarations */ - - typedef unsigned long long uint64_t; - typedef long long int64_t; - typedef unsigned int uint32_t; - typedef int int32_t; - typedef unsigned short uint16_t; - typedef short int16_t; - typedef unsigned char uint8_t; - typedef char int8_t; - #endif - #endif -#endif - -/* - * Basic EFI types of various widths - */ +/* Basic EFI types of various widths. */ typedef uint64_t UINT64; typedef int64_t INT64; ==== //depot/projects/ia64/sys/boot/efi/libefi/efinet.c#7 (text+ko) ==== @@ -166,7 +166,7 @@ status = net->Start(net); if (status != EFI_SUCCESS) { printf("net%d: cannot start interface (status=%ld)\n", - nif->nif_unit, status); + nif->nif_unit, (long)status); return; } } @@ -175,7 +175,7 @@ status = net->Initialize(net, 0, 0); if (status != EFI_SUCCESS) { printf("net%d: cannot init. interface (status=%ld)\n", - nif->nif_unit, status); + nif->nif_unit, (long)status); return; } } @@ -187,7 +187,7 @@ status = net->ReceiveFilters(net, mask, 0, FALSE, 0, 0); if (status != EFI_SUCCESS) { printf("net%d: cannot set rx. filters (status=%ld)\n", - nif->nif_unit, status); + nif->nif_unit, (long)status); return; } } ==== //depot/projects/ia64/sys/boot/efi/libefi/libefi.c#8 (text+ko) ==== @@ -98,7 +98,7 @@ if (status != EFI_SUCCESS) BS->Exit(IH, status, 0, NULL); - setheap((void *)heap, (void *)(heap + heapsize)); + setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize)); /* Use exit() from here on... */