diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-03-13 00:13:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-03-13 00:13:54 +0000 |
commit | 498cf2cbf80b299bf6c21307d98f424374b5b18c (patch) | |
tree | 8553045f12ef69e9aaafd5e8e87dfa1fbe23c284 /sys/arch/mvme88k/stand | |
parent | 87ac327e012b105ceaf428b26525cfa462ccd835 (diff) |
Change daddr_t to daddr32_t. The bootblocks on our architectures only
do 32-bit block spanning. If later on we get some that can/should do
64-bit, that can be done now using daddr64_t (but of course, we are taking
this step to finalize the daddr_t 64-bit conversion).
ok miod krw
Diffstat (limited to 'sys/arch/mvme88k/stand')
-rw-r--r-- | sys/arch/mvme88k/stand/bootst/dev_tape.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/bootst/dev_tape.h | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/bootst/rawfs.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/bootxx/bootxx.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/installboot/installboot.c | 14 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/libsa/bugdev.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/libsa/libsa.h | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/tftpboot/netdev.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/tftpboot/netdev.h | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/stand/tftpboot/tftpfs.c | 6 |
10 files changed, 27 insertions, 27 deletions
diff --git a/sys/arch/mvme88k/stand/bootst/dev_tape.c b/sys/arch/mvme88k/stand/bootst/dev_tape.c index 792ded19ac9..d6e9c3debc4 100644 --- a/sys/arch/mvme88k/stand/bootst/dev_tape.c +++ b/sys/arch/mvme88k/stand/bootst/dev_tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_tape.c,v 1.3 2006/05/16 22:52:09 miod Exp $ */ +/* $OpenBSD: dev_tape.c,v 1.4 2011/03/13 00:13:53 deraadt Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -127,7 +127,7 @@ int tape_strategy(devdata, flag, dblk, size, buf, rsize) void *devdata; int flag; - daddr_t dblk; + daddr32_t dblk; u_int size; char *buf; u_int *rsize; diff --git a/sys/arch/mvme88k/stand/bootst/dev_tape.h b/sys/arch/mvme88k/stand/bootst/dev_tape.h index 63896916220..84f01ab7897 100644 --- a/sys/arch/mvme88k/stand/bootst/dev_tape.h +++ b/sys/arch/mvme88k/stand/bootst/dev_tape.h @@ -1,7 +1,7 @@ -/* $OpenBSD: dev_tape.h,v 1.2 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: dev_tape.h,v 1.3 2011/03/13 00:13:53 deraadt Exp $ */ int tape_open(struct open_file *, ...); int tape_close(struct open_file *); -int tape_strategy(void *, int, daddr_t, size_t, void *, size_t *); +int tape_strategy(void *, int, daddr32_t, size_t, void *, size_t *); int tape_ioctl(); diff --git a/sys/arch/mvme88k/stand/bootst/rawfs.c b/sys/arch/mvme88k/stand/bootst/rawfs.c index abf23291c35..1e43a73ab6f 100644 --- a/sys/arch/mvme88k/stand/bootst/rawfs.c +++ b/sys/arch/mvme88k/stand/bootst/rawfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rawfs.c,v 1.4 2006/05/16 22:52:09 miod Exp $ */ +/* $OpenBSD: rawfs.c,v 1.5 2011/03/13 00:13:53 deraadt Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -48,7 +48,7 @@ * In-core open file. */ struct cfile { - daddr_t fs_nextblk; /* block number to read next */ + daddr32_t fs_nextblk; /* block number to read next */ int fs_len; /* amount left in f_buf */ char * fs_ptr; /* read pointer into f_buf */ char fs_buf[RAWFS_BSIZE]; diff --git a/sys/arch/mvme88k/stand/bootxx/bootxx.c b/sys/arch/mvme88k/stand/bootxx/bootxx.c index b18943c6e64..10f1f7e9a48 100644 --- a/sys/arch/mvme88k/stand/bootxx/bootxx.c +++ b/sys/arch/mvme88k/stand/bootxx/bootxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootxx.c,v 1.8 2008/09/19 20:18:03 miod Exp $ */ +/* $OpenBSD: bootxx.c,v 1.9 2011/03/13 00:13:53 deraadt Exp $ */ /* * Copyright (c) 1994 Paul Kranenburg @@ -63,7 +63,7 @@ */ size_t block_size = 512; /* default */ int block_count = MAXBLOCKNUM; /* length of table */ -daddr_t block_table[MAXBLOCKNUM] = { 0 }; +daddr32_t block_table[MAXBLOCKNUM] = { 0 }; void bugexec(void (*)()); int copyboot(struct open_file *, char *); diff --git a/sys/arch/mvme88k/stand/installboot/installboot.c b/sys/arch/mvme88k/stand/installboot/installboot.c index 8eaecb3a1e8..01dec8b3486 100644 --- a/sys/arch/mvme88k/stand/installboot/installboot.c +++ b/sys/arch/mvme88k/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.13 2010/12/07 18:11:07 miod Exp $ */ +/* $OpenBSD: installboot.c,v 1.14 2011/03/13 00:13:53 deraadt Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -65,13 +65,13 @@ struct nlist nl[] = { int *block_size_p; /* block size var. in prototype image */ int *block_count_p; /* block count var. in prototype image */ -daddr_t *block_table; /* block number array in prototype image */ +daddr32_t *block_table; /* block number array in prototype image */ int maxblocknum; /* size of this array */ char *loadprotoblocks(char *, long *); int loadblocknums(char *, int); -static void devread(int, void *, daddr_t, size_t, char *); +static void devread(int, void *, daddr32_t, size_t, char *); static void usage(void); int main(int, char *[]); static void vid_to_disklabel(char *, char *); @@ -246,7 +246,7 @@ loadprotoblocks(fname, size) off = N_DATOFF(eh) - N_DATADDR(eh) - (eh.a_entry - N_TXTADDR(eh)); block_size_p = (int *) (bp + nl[X_BLOCK_SIZE ].n_value + off); block_count_p = (int *) (bp + nl[X_BLOCK_COUNT].n_value + off); - block_table = (daddr_t *) (bp + nl[X_BLOCK_TABLE].n_value + off); + block_table = (daddr32_t *) (bp + nl[X_BLOCK_TABLE].n_value + off); maxblocknum = *block_count_p; if (verbose) { @@ -273,7 +273,7 @@ static void devread(fd, buf, blk, size, msg) int fd; void *buf; - daddr_t blk; + daddr32_t blk; size_t size; char *msg; { @@ -296,7 +296,7 @@ int devfd; struct statfs statfsbuf; struct fs *fs; char *buf; - daddr_t blk, *ap; + daddr32_t blk, *ap; struct ufs1_dinode *ip; int ndb; @@ -378,7 +378,7 @@ int devfd; */ blk = fsbtodb(fs, ip->di_ib[0]); devread(devfd, buf, blk, fs->fs_bsize, "indirect block"); - ap = (daddr_t *)buf; + ap = (daddr32_t *)buf; for (; i < NINDIR(fs) && *ap && ndb; i++, ap++, ndb--) { blk = fsbtodb(fs, *ap); if (verbose) diff --git a/sys/arch/mvme88k/stand/libsa/bugdev.c b/sys/arch/mvme88k/stand/libsa/bugdev.c index 33cc1ffb09c..fcff1c6d829 100644 --- a/sys/arch/mvme88k/stand/libsa/bugdev.c +++ b/sys/arch/mvme88k/stand/libsa/bugdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bugdev.c,v 1.6 2010/04/23 15:25:20 jsing Exp $ */ +/* $OpenBSD: bugdev.c,v 1.7 2011/03/13 00:13:53 deraadt Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -103,14 +103,14 @@ int bugscstrategy(devdata, func, dblk, size, buf, rsize) void *devdata; int func; - daddr_t dblk; + daddr32_t dblk; size_t size; void *buf; size_t *rsize; { struct mvmeprom_dskio dio; register struct bugsc_softc *pp = (struct bugsc_softc *)devdata; - daddr_t blk = dblk + pp->poff; + daddr32_t blk = dblk + pp->poff; twiddle(); diff --git a/sys/arch/mvme88k/stand/libsa/libsa.h b/sys/arch/mvme88k/stand/libsa/libsa.h index 97ceb024443..8653ee3d3ac 100644 --- a/sys/arch/mvme88k/stand/libsa/libsa.h +++ b/sys/arch/mvme88k/stand/libsa/libsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libsa.h,v 1.5 2008/09/19 20:18:03 miod Exp $ */ +/* $OpenBSD: libsa.h,v 1.6 2011/03/13 00:13:53 deraadt Exp $ */ /* * libsa prototypes @@ -13,7 +13,7 @@ void board_setup(); int bugscopen(struct open_file *, ...); int bugscclose(struct open_file *); int bugscioctl(struct open_file *, u_long, void *); -int bugscstrategy(void *, int, daddr_t, size_t, void *, size_t *); +int bugscstrategy(void *, int, daddr32_t, size_t, void *, size_t *); /* exec_mvme.c */ void exec_mvme(char *, int); diff --git a/sys/arch/mvme88k/stand/tftpboot/netdev.c b/sys/arch/mvme88k/stand/tftpboot/netdev.c index 9c50bd76798..9bb15ec9d5c 100644 --- a/sys/arch/mvme88k/stand/tftpboot/netdev.c +++ b/sys/arch/mvme88k/stand/tftpboot/netdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netdev.c,v 1.2 2006/05/16 22:52:09 miod Exp $ */ +/* $OpenBSD: netdev.c,v 1.3 2011/03/13 00:13:53 deraadt Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -67,7 +67,7 @@ int net_strategy(devdata, func, nblk, size, buf, rsize) void *devdata; int func; - daddr_t nblk; + daddr32_t nblk; size_t size; void *buf; size_t *rsize; diff --git a/sys/arch/mvme88k/stand/tftpboot/netdev.h b/sys/arch/mvme88k/stand/tftpboot/netdev.h index 4d9b1abc797..261f99adc09 100644 --- a/sys/arch/mvme88k/stand/tftpboot/netdev.h +++ b/sys/arch/mvme88k/stand/tftpboot/netdev.h @@ -1,6 +1,6 @@ -/* $OpenBSD: netdev.h,v 1.1 2004/01/26 19:48:34 miod Exp $ */ +/* $OpenBSD: netdev.h,v 1.2 2011/03/13 00:13:53 deraadt Exp $ */ int net_open(struct open_file *, ...); int net_close(struct open_file *); int net_ioctl(struct open_file *, u_long, void *); -int net_strategy(void *, int, daddr_t, size_t, void *, size_t *); +int net_strategy(void *, int, daddr32_t, size_t, void *, size_t *); diff --git a/sys/arch/mvme88k/stand/tftpboot/tftpfs.c b/sys/arch/mvme88k/stand/tftpboot/tftpfs.c index 3a59fdcc035..af0d1ae41e5 100644 --- a/sys/arch/mvme88k/stand/tftpboot/tftpfs.c +++ b/sys/arch/mvme88k/stand/tftpboot/tftpfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftpfs.c,v 1.4 2009/01/18 21:47:56 miod Exp $ */ +/* $OpenBSD: tftpfs.c,v 1.5 2011/03/13 00:13:53 deraadt Exp $ */ /*- * Copyright (c) 2001 Steve Murphree, Jr. @@ -51,7 +51,7 @@ struct tftp_file { off_t f_seekp; /* seek pointer */ char *f_buf; /* buffer for data block */ off_t f_off; /* index into buffer for data block */ - daddr_t f_buf_blkno; /* block number of data block */ + daddr32_t f_buf_blkno; /* block number of data block */ size_t f_buf_size; }; @@ -78,7 +78,7 @@ tftp_read_file(f, buf_p, size_p) { register struct tftp_file *fp = (struct tftp_file *)f->f_fsdata; long off; - register daddr_t file_block; + register daddr32_t file_block; size_t block_size; int i, rc; |