/src/sys/arch/powerpc/stand/mkbootimage/ |
mkbootimage.c | 683 unsigned char *elf_img = NULL, *kern_img = NULL, *header_img = NULL; local in function:bebox_build_image 803 header_img = malloc(BEBOX_HEADER_SIZE); 804 if (!header_img) 806 memset(header_img, 0, BEBOX_HEADER_SIZE); 810 memcpy(header_img + p->offset, p->data, p->size); 813 memset(header_img + BEBOX_FILE_BLOCK_MAP_START, 0xff, 818 *(int32_t *)(header_img + BEBOX_FILE_SIZE_OFFSET) = 820 *(int32_t *)(header_img + BEBOX_FILE_SIZE_ALIGN_OFFSET) = 829 *(int32_t *)(header_img + *offset) = 832 write(bebox_fd, header_img, BEBOX_HEADER_SIZE) [all...] |
mkbootimage.c | 683 unsigned char *elf_img = NULL, *kern_img = NULL, *header_img = NULL; local in function:bebox_build_image 803 header_img = malloc(BEBOX_HEADER_SIZE); 804 if (!header_img) 806 memset(header_img, 0, BEBOX_HEADER_SIZE); 810 memcpy(header_img + p->offset, p->data, p->size); 813 memset(header_img + BEBOX_FILE_BLOCK_MAP_START, 0xff, 818 *(int32_t *)(header_img + BEBOX_FILE_SIZE_OFFSET) = 820 *(int32_t *)(header_img + BEBOX_FILE_SIZE_ALIGN_OFFSET) = 829 *(int32_t *)(header_img + *offset) = 832 write(bebox_fd, header_img, BEBOX_HEADER_SIZE) [all...] |