/*
* Max number of ``sections''.
* Currently this includes: .text, .data, size sym, Elf32_Ehdr, Elf32_Shdr x 4,
* .shstrtab, .symtab, .strtab, .stab
*/
#define XK_NSEC 12
#ifndef __ASSEMBLER__
#include <sys/types.h>
#include <sys/exec_elf.h>
struct execkern_arg {
/* Don't change this structure (see exec_sub.c). */
u_long load_addr; /* text start address */
struct execkern_section {
void *sec_image; /* section image source address */
u_long sec_size; /* section size */
u_long sec_pad; /* zero fill size after the image */
} sec[XK_NSEC];
unsigned d5; /* reserved */
int rootdev;
u_long boothowto;
u_long entry_addr;
/* end of "Don't change this" */
int elfsymsiz;
Elf32_Ehdr ehdr; /* saved ELF header */