summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/disksubr.c4
-rw-r--r--sys/arch/i386/i386/machdep.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c
index ef955d27a98..206453d5da6 100644
--- a/sys/arch/i386/i386/disksubr.c
+++ b/sys/arch/i386/i386/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.78 2007/06/06 16:42:06 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.79 2007/06/06 17:15:12 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -76,7 +76,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *),
unsigned long extoff = 0;
unsigned int fattest;
struct buf *bp = NULL;
- daddr_t part_blkno = DOSBBSECTOR;
+ daddr64_t part_blkno = DOSBBSECTOR;
dev_t devno;
char *msg = NULL;
int dospartoff, cyl, i, ourpart = -1;
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 8d24c76d5a6..2db15f2b8fd 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.400 2007/06/04 06:57:56 jsg Exp $ */
+/* $OpenBSD: machdep.c,v 1.401 2007/06/06 17:15:12 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2493,7 +2493,7 @@ dumpconf(void)
int
cpu_dump()
{
- int (*dump)(dev_t, daddr_t, caddr_t, size_t);
+ int (*dump)(dev_t, daddr64_t, caddr_t, size_t);
long buf[dbtob(1) / sizeof (long)];
kcore_seg_t *segp;
@@ -2530,8 +2530,8 @@ dumpsys()
{
u_int i, j, npg;
int maddr;
- daddr_t blkno;
- int (*dump)(dev_t, daddr_t, caddr_t, size_t);
+ daddr64_t blkno;
+ int (*dump)(dev_t, daddr64_t, caddr_t, size_t);
int error;
char *str;
extern int msgbufmapped;
@@ -2574,7 +2574,7 @@ dumpsys()
maddr = ctob(dumpmem[i].start);
blkno = dumplo + btodb(maddr) + 1;
#if 0
- printf("(%d %ld %d) ", maddr, blkno, npg);
+ printf("(%d %lld %d) ", maddr, blkno, npg);
#endif
for (j = npg; j--; maddr += NBPG, blkno += btodb(NBPG)) {
@@ -2583,7 +2583,7 @@ dumpsys()
printf("%d ",
(ctob(dumpsize) - maddr) / (1024 * 1024));
#if 0
- printf("(%x %d) ", maddr, blkno);
+ printf("(%x %lld) ", maddr, blkno);
#endif
pmap_enter(pmap_kernel(), dumpspace, maddr,
VM_PROT_READ, PMAP_WIRED);