Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add PAE to ALL kernel, so that most paddr_t format strin...
details: https://anonhg.NetBSD.org/src/rev/6163bb007300
branches: trunk
changeset: 756636:6163bb007300
user: jym <jym%NetBSD.org@localhost>
date: Mon Jul 26 22:33:23 2010 +0000
description:
Add PAE to ALL kernel, so that most paddr_t format string errors get caught
during compilation.
While here, fix the compilation for ALL.
diffstat:
sys/arch/i386/conf/ALL | 5 +++--
sys/arch/i386/pci/pcibios.c | 10 +++++-----
sys/arch/i386/pci/piixpcib.c | 6 +++---
sys/arch/i386/pnpbios/pnpbios.c | 6 +++---
sys/arch/x86/pci/pci_addr_fixup.c | 7 ++++---
sys/compat/ndis/subr_ndis.c | 6 +++---
sys/dev/ic/ciss.c | 13 ++++++-------
sys/dev/isa/isadma.c | 6 +++---
sys/dev/pci/cz.c | 8 ++++----
sys/dev/pci/if_sk.c | 8 ++++----
sys/dev/pci/if_wm.c | 10 +++++-----
sys/dev/pci/yds.c | 16 ++++++++--------
12 files changed, 51 insertions(+), 50 deletions(-)
diffs (truncated from 381 to 300 lines):
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/arch/i386/conf/ALL
--- a/sys/arch/i386/conf/ALL Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/arch/i386/conf/ALL Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.261 2010/07/18 10:19:09 jruoho Exp $
+# $NetBSD: ALL,v 1.262 2010/07/26 22:33:23 jym Exp $
# From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
#
# ALL machine description file
@@ -17,7 +17,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "ALL-$Revision: 1.261 $"
+#ident "ALL-$Revision: 1.262 $"
maxusers 64 # estimated number of users
@@ -27,6 +27,7 @@
options VM86 # virtual 8086 emulation
options USER_LDT # user-settable LDT; used by WINE
options X86EMU # 386 Real Mode emulator
+options PAE # PAE mode (36 bits physical addressing)
# Enhanced SpeedStep Technology in the Pentium M
options ENHANCED_SPEEDSTEP
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/arch/i386/pci/pcibios.c
--- a/sys/arch/i386/pci/pcibios.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/arch/i386/pci/pcibios.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcibios.c,v 1.38 2010/04/28 19:17:04 dyoung Exp $ */
+/* $NetBSD: pcibios.c,v 1.39 2010/07/26 22:33:23 jym Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcibios.c,v 1.38 2010/04/28 19:17:04 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcibios.c,v 1.39 2010/07/26 22:33:23 jym Exp $");
#include "opt_pcibios.h"
#include "opt_pcifixup.h"
@@ -166,7 +166,7 @@
return;
}
- aprint_normal("PCI BIOS rev. %d.%d found at 0x%lx\n",
+ aprint_normal("PCI BIOS rev. %d.%d found at %#" PRIxPADDR "\n",
rev_maj, rev_min >> 4, ei.bei_entry);
aprint_verbose("pcibios: config mechanism %s%s, special cycles %s%s, "
"last bus %d\n",
@@ -250,8 +250,8 @@
cksum += *(unsigned char *)(p + i);
aprint_normal(
- "PCI IRQ Routing Table rev. %d.%d found at 0x%lx, "
- "size %d bytes (%d entries)\n", rev_maj, rev_min, pa,
+ "PCI IRQ Routing Table rev. %d.%d found at %#" PRIxPADDR
+ ", size %d bytes (%d entries)\n", rev_maj, rev_min, pa,
tablesize, (tablesize - 32) / 16);
if (cksum != 0) {
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/arch/i386/pci/piixpcib.c
--- a/sys/arch/i386/pci/piixpcib.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/arch/i386/pci/piixpcib.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: piixpcib.c,v 1.18 2010/02/24 22:37:55 dyoung Exp $ */
+/* $NetBSD: piixpcib.c,v 1.19 2010/07/26 22:33:23 jym Exp $ */
/*-
* Copyright (c) 2004, 2006 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: piixpcib.c,v 1.18 2010/02/24 22:37:55 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: piixpcib.c,v 1.19 2010/07/26 22:33:23 jym Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -214,7 +214,7 @@
piixpcib_set_ownership(struct piixpcib_softc *sc)
{
int rv;
- paddr_t pmagic;
+ u_long pmagic;
static char magic[] = "Copyright (c) 1999 Intel Corporation";
pmagic = vtophys((vaddr_t)magic);
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/arch/i386/pnpbios/pnpbios.c
--- a/sys/arch/i386/pnpbios/pnpbios.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/arch/i386/pnpbios/pnpbios.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pnpbios.c,v 1.69 2010/04/28 19:17:04 dyoung Exp $ */
+/* $NetBSD: pnpbios.c,v 1.70 2010/07/26 22:33:23 jym Exp $ */
/*
* Copyright (c) 2000 Jason R. Thorpe. All rights reserved.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pnpbios.c,v 1.69 2010/04/28 19:17:04 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pnpbios.c,v 1.70 2010/07/26 22:33:23 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -269,7 +269,7 @@
pmap_kenter_pa(va, pa, prot, 0);
pmap_update(pmap_kernel());
- return ((void *)(startva + (addr - startpa)));
+ return ((void *)(startva + (vaddr_t)(addr - startpa)));
}
static void
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/arch/x86/pci/pci_addr_fixup.c
--- a/sys/arch/x86/pci/pci_addr_fixup.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/arch/x86/pci/pci_addr_fixup.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_addr_fixup.c,v 1.4 2009/02/17 20:35:35 jmcneill Exp $ */
+/* $NetBSD: pci_addr_fixup.c,v 1.5 2010/07/26 22:33:23 jym Exp $ */
/*-
* Copyright (c) 2000 UCHIYAMA Yasushi. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_addr_fixup.c,v 1.4 2009/02/17 20:35:35 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_addr_fixup.c,v 1.5 2010/07/26 22:33:23 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -289,7 +289,8 @@
}
error = extent_alloc_subregion(ex, start, ex->ex_end, size,
size, 0,
- EX_FAST|EX_NOWAIT|EX_MALLOCOK, addr);
+ EX_FAST|EX_NOWAIT|EX_MALLOCOK,
+ (u_long *)addr);
if (error) {
aprint_debug("No available resources. fixup failed\n");
return (1);
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/compat/ndis/subr_ndis.c
--- a/sys/compat/ndis/subr_ndis.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/compat/ndis/subr_ndis.c Mon Jul 26 22:33:23 2010 +0000
@@ -35,7 +35,7 @@
__FBSDID("$FreeBSD: src/sys/compat/ndis/subr_ndis.c,v 1.67.2.7 2005/03/31 21:50:11 wpaul Exp $");
#endif
#ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: subr_ndis.c,v 1.22 2009/06/29 05:08:16 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_ndis.c,v 1.23 2010/07/26 22:33:23 jym Exp $");
#endif
/*
@@ -1552,10 +1552,10 @@
switch (sc->ndis_iftype){
case PCIBus:
case CBus: /* CardBus */
- *offset = (void*)sc->ndis_res_io->res_base;
+ *offset = (void*)(u_long)sc->ndis_res_io->res_base;
break;
case PCMCIABus:
- *offset = (void*)sc->ndis_res_pcioh.addr;
+ *offset = (void*)(u_long)sc->ndis_res_pcioh.addr;
break;
default:
return(NDIS_STATUS_FAILURE);
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/dev/ic/ciss.c
--- a/sys/dev/ic/ciss.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/dev/ic/ciss.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ciss.c,v 1.20 2010/03/14 18:06:28 pgoyette Exp $ */
+/* $NetBSD: ciss.c,v 1.21 2010/07/26 22:33:24 jym Exp $ */
/* $OpenBSD: ciss.c,v 1.14 2006/03/13 16:02:23 mickey Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.20 2010/03/14 18:06:28 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.21 2010/07/26 22:33:24 jym Exp $");
#include "bio.h"
@@ -469,9 +469,8 @@
cmd->sgin = dmap->dm_nsegs;
sgd = dmap->dm_segs;
- CISS_DPRINTF(CISS_D_DMA, ("data=%p/%u<0x%lx/%lu",
- ccb->ccb_data, ccb->ccb_len, sgd->ds_addr,
- (u_long)sgd->ds_len));
+ CISS_DPRINTF(CISS_D_DMA, ("data=%p/%u<%#" PRIxPADDR "/%zu",
+ ccb->ccb_data, ccb->ccb_len, sgd->ds_addr,sgd->ds_len));
for (i = 0; i < dmap->dm_nsegs; sgd++, i++) {
cmd->sgl[i].addr_lo = htole32(sgd->ds_addr);
@@ -481,8 +480,8 @@
cmd->sgl[i].flags = htole32(0);
if (i) {
CISS_DPRINTF(CISS_D_DMA,
- (",0x%lx/%lu", sgd->ds_addr,
- (u_long)sgd->ds_len));
+ (",%#" PRIxPADDR "/%zu", sgd->ds_addr,
+ sgd->ds_len));
}
}
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/dev/isa/isadma.c
--- a/sys/dev/isa/isadma.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/dev/isa/isadma.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isadma.c,v 1.64 2010/04/19 18:24:26 dyoung Exp $ */
+/* $NetBSD: isadma.c,v 1.65 2010/07/26 22:33:24 jym Exp $ */
/*-
* Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isadma.c,v 1.64 2010/04/19 18:24:26 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isadma.c,v 1.65 2010/07/26 22:33:24 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -414,7 +414,7 @@
dmaaddr = dmam->dm_segs[0].ds_addr;
#ifdef ISADMA_DEBUG
- printf(" dmaaddr 0x%lx\n", dmaaddr);
+ printf(" dmaaddr %#" PRIxPADDR "\n", dmaaddr);
__asm(".globl isa_dmastart_aftersync ; isa_dmastart_aftersync:");
#endif
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/dev/pci/cz.c
--- a/sys/dev/pci/cz.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/dev/pci/cz.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cz.c,v 1.53 2009/11/26 15:17:09 njoly Exp $ */
+/* $NetBSD: cz.c,v 1.54 2010/07/26 22:33:24 jym Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cz.c,v 1.53 2009/11/26 15:17:09 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cz.c,v 1.54 2010/07/26 22:33:24 jym Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -613,8 +613,8 @@
cz->cz_fwctl = bus_space_read_4(cz->cz_win_st, cz->cz_win_sh,
ZFIRM_CTRLADDR_OFF);
#ifdef CZ_DEBUG
- aprint_debug_dev(&cz->cz_dev, "FWCTL structure at offset 0x%08lx\n",
- cz->cz_fwctl);
+ aprint_debug_dev(&cz->cz_dev, "FWCTL structure at offset "
+ "%#08" PRIxPADDR "\n", cz->cz_fwctl);
#endif
CZ_FWCTL_WRITE(cz, BRDCTL_C_OS, C_OS_BSD);
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/dev/pci/if_sk.c
--- a/sys/dev/pci/if_sk.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/dev/pci/if_sk.c Mon Jul 26 22:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sk.c,v 1.67 2010/05/16 11:27:49 phx Exp $ */
+/* $NetBSD: if_sk.c,v 1.68 2010/07/26 22:33:24 jym Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -115,7 +115,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.67 2010/05/16 11:27:49 phx Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sk.c,v 1.68 2010/07/26 22:33:24 jym Exp $");
#include "rnd.h"
@@ -1597,8 +1597,8 @@
return;
}
- DPRINTFN(2, ("skc_attach: iobase=%lx, iosize=%lx\n", iobase,
- (u_long)iosize));
+ DPRINTFN(2, ("skc_attach: iobase=%#" PRIxPADDR ", iosize=%zx\n",
+ iobase, iosize));
#endif
sc->sc_dmatag = pa->pa_dmat;
diff -r 4d7f48c52fb8 -r 6163bb007300 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Mon Jul 26 19:24:35 2010 +0000
+++ b/sys/dev/pci/if_wm.c Mon Jul 26 22:33:23 2010 +0000
Home |
Main Index |
Thread Index |
Old Index