BBSIZE
getnumdflt(dp->d_bbsize, "bs", BBSIZE);
static int bbsize = BBSIZE;
base_offset = BBSIZE / secsize;
base_offset = BBSIZE / secsize;
current_offset = BBSIZE / secsize; /* in sectors */
loclab.d_bbsize = BBSIZE;
dp->p_offset = BBSIZE / secsize;
if (st.st_size <= BBSIZE) {
nbytes = read(f, bootarea, BBSIZE);
if (nbytes != BBSIZE)
errx(4, "couldn't read %d bytes from %s", BBSIZE, specname);
lp->d_bbsize = BBSIZE; /* XXX */
static u_char bootarea[BBSIZE];
static u_char bootarea[BBSIZE];
if (read(disk.d_fd, bootarea, BBSIZE) != BBSIZE)
ioarg[0] = BBSIZE;
ioarg[1] = sz - BBSIZE;
pp->mediasize < BBSIZE)
if (BBSIZE % pp->sectorsize)
.gps_bootcodesz = BBSIZE,
if (gpp->gpp_codesize != BOOT1_SIZE && gpp->gpp_codesize != BBSIZE)
if (gpp->gpp_codesize == BBSIZE)
if (BBSIZE % pp->sectorsize)
table->bbarea = g_malloc(BBSIZE, M_WAITOK | M_ZERO);
le32enc(ptr + 140, BBSIZE); /* d_bbsize */
pp->mediasize < BBSIZE)
if (BBSIZE % pp->sectorsize)
table->bbarea = g_read_data(cp, 0, BBSIZE, &error);
#define BOOT2_SIZE (BBSIZE - BOOT2_OFF)
error = g_write_data(cp, 0, table->bbarea, BBSIZE);
blist_free(sp->sw_blist, howmany(BBSIZE, PAGE_SIZE),
nblks - howmany(BBSIZE, PAGE_SIZE));
swap_pager_avail += nblks - howmany(BBSIZE, PAGE_SIZE);
nswapdev * howmany(BBSIZE, PAGE_SIZE);
bbsize = BBSIZE;
#ifndef BBSIZE