/src/usr.sbin/installboot/arch/ |
landisk.c | 69 uint8_t *bootstrapbuf; local in function:landisk_setboot 83 bootstrapbuf = NULL; 128 bootstrapbuf = malloc(bootstrapsize); 129 if (bootstrapbuf == NULL) { 133 memset(bootstrapbuf, 0, bootstrapsize); 138 rv = pread(params->s1fd, bootstrapbuf, params->s1stat.st_size, 0); 147 magic = *(uint32_t *)(bootstrapbuf + 512 * 2 + 4); 163 if (bootstrapbuf[1] == 0xa0 && bootstrapbuf[2] == 0x11 && 164 (bootstrapbuf[0] == 0x2b /*|| bootstrapbuf[0] == 0x1d*/)) [all...] |
vax.c | 176 char *bootstrapbuf, oldbb[VAX_BOOT_BLOCK_BLOCKSIZE]; local in function:vax_setboot 193 bootstrapbuf = NULL; 203 if (! load_bootstrap(params, &bootstrapbuf, &bootstrapload, 222 memcpy(bootstrapbuf + VAX_LABELOFFSET, 227 bb = (struct vax_boot_block*)bootstrapbuf; 267 rv = pwrite(params->fsfd, bootstrapbuf, bootstrapsize, 0); 278 if (bootstrapbuf) 279 free(bootstrapbuf);
|
alpha.c | 214 char *bootstrapbuf; local in function:alpha_setboot 226 bootstrapbuf = NULL; 236 bootstrapbuf = malloc(bootstrapsize); 237 if (bootstrapbuf == NULL) { 241 memset(bootstrapbuf, 0, bootstrapsize); 244 rv = pread(params->s1fd, bootstrapbuf, params->s1stat.st_size, 0); 312 rv = pwrite(params->fsfd, bootstrapbuf, bootstrapsize, 336 if (bootstrapbuf) 337 free(bootstrapbuf);
|
pmax.c | 194 char *bootstrapbuf; local in function:pmax_setboot 207 bootstrapbuf = NULL; 209 if (! load_bootstrap(params, &bootstrapbuf, &bootstrapload, 271 rv = pwrite(params->fsfd, bootstrapbuf, bootstrapsize, 295 if (bootstrapbuf) 296 free(bootstrapbuf);
|