Home
last modified time | relevance | path

Searched refs:bootstrapbuf (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/usr.sbin/installboot/arch/
H A Dlandisk.c69 uint8_t *bootstrapbuf; in landisk_setboot() local
83 bootstrapbuf = NULL; in landisk_setboot()
128 bootstrapbuf = malloc(bootstrapsize); in landisk_setboot()
129 if (bootstrapbuf == NULL) { in landisk_setboot()
133 memset(bootstrapbuf, 0, bootstrapsize); in landisk_setboot()
138 rv = pread(params->s1fd, bootstrapbuf, params->s1stat.st_size, 0); in landisk_setboot()
147 magic = *(uint32_t *)(bootstrapbuf + 512 * 2 + 4); in landisk_setboot()
163 if (bootstrapbuf[1] == 0xa0 && bootstrapbuf[2] == 0x11 && in landisk_setboot()
164 (bootstrapbuf[0] == 0x2b /*|| bootstrapbuf[0] == 0x1d*/)) { in landisk_setboot()
165 bpbsize = bootstrapbuf[0] + 2 - MBR_BPB_OFFSET; in landisk_setboot()
[all …]
H A Dvax.c176 char *bootstrapbuf, oldbb[VAX_BOOT_BLOCK_BLOCKSIZE]; in vax_setboot() local
193 bootstrapbuf = NULL; in vax_setboot()
203 if (! load_bootstrap(params, &bootstrapbuf, &bootstrapload, in vax_setboot()
222 memcpy(bootstrapbuf + VAX_LABELOFFSET, in vax_setboot()
227 bb = (struct vax_boot_block*)bootstrapbuf; in vax_setboot()
267 rv = pwrite(params->fsfd, bootstrapbuf, bootstrapsize, 0); in vax_setboot()
278 if (bootstrapbuf) in vax_setboot()
279 free(bootstrapbuf); in vax_setboot()
H A Dalpha.c214 char *bootstrapbuf; in alpha_setboot() local
226 bootstrapbuf = NULL; in alpha_setboot()
236 bootstrapbuf = malloc(bootstrapsize); in alpha_setboot()
237 if (bootstrapbuf == NULL) { in alpha_setboot()
241 memset(bootstrapbuf, 0, bootstrapsize); in alpha_setboot()
244 rv = pread(params->s1fd, bootstrapbuf, params->s1stat.st_size, 0); in alpha_setboot()
312 rv = pwrite(params->fsfd, bootstrapbuf, bootstrapsize, in alpha_setboot()
336 if (bootstrapbuf) in alpha_setboot()
337 free(bootstrapbuf); in alpha_setboot()
H A Dpmax.c194 char *bootstrapbuf; in pmax_setboot() local
207 bootstrapbuf = NULL; in pmax_setboot()
209 if (! load_bootstrap(params, &bootstrapbuf, &bootstrapload, in pmax_setboot()
271 rv = pwrite(params->fsfd, bootstrapbuf, bootstrapsize, in pmax_setboot()
295 if (bootstrapbuf) in pmax_setboot()
296 free(bootstrapbuf); in pmax_setboot()