Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/elf32_machdep.c
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/sysent.h> | #include <sys/sysent.h> | ||||
#include <sys/imgact_elf.h> | #include <sys/imgact_elf.h> | ||||
#include <sys/syscall.h> | #include <sys/syscall.h> | ||||
#include <sys/signalvar.h> | #include <sys/signalvar.h> | ||||
#include <sys/vnode.h> | #include <sys/vnode.h> | ||||
#include <machine/elf.h> | #include <machine/elf.h> | ||||
#ifdef VFP | |||||
#include <machine/vfp.h> | |||||
#endif | |||||
#include <compat/freebsd32/freebsd32_util.h> | #include <compat/freebsd32/freebsd32_util.h> | ||||
#define FREEBSD32_MINUSER 0x00001000 | #define FREEBSD32_MINUSER 0x00001000 | ||||
#define FREEBSD32_MAXUSER ((1ul << 32) - PAGE_SIZE) | #define FREEBSD32_MAXUSER ((1ul << 32) - PAGE_SIZE) | ||||
#define FREEBSD32_SHAREDPAGE (FREEBSD32_MAXUSER - PAGE_SIZE) | #define FREEBSD32_SHAREDPAGE (FREEBSD32_MAXUSER - PAGE_SIZE) | ||||
#define FREEBSD32_USRSTACK FREEBSD32_SHAREDPAGE | #define FREEBSD32_USRSTACK FREEBSD32_SHAREDPAGE | ||||
▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | freebsd32_setregs(struct thread *td, struct image_params *imgp, | ||||
*/ | */ | ||||
tf->tf_x[0] = stack; | tf->tf_x[0] = stack; | ||||
/* SP_usr is mapped to x13 */ | /* SP_usr is mapped to x13 */ | ||||
tf->tf_x[13] = stack; | tf->tf_x[13] = stack; | ||||
/* LR_usr is mapped to x14 */ | /* LR_usr is mapped to x14 */ | ||||
tf->tf_x[14] = imgp->entry_addr; | tf->tf_x[14] = imgp->entry_addr; | ||||
tf->tf_elr = imgp->entry_addr; | tf->tf_elr = imgp->entry_addr; | ||||
tf->tf_spsr = PSR_M_32; | tf->tf_spsr = PSR_M_32; | ||||
#ifdef VFP | |||||
vfp_reset_state(td, td->td_pcb); | |||||
#endif | |||||
} | } | ||||
void | void | ||||
elf32_dump_thread(struct thread *td, void *dst, size_t *off) | elf32_dump_thread(struct thread *td, void *dst, size_t *off) | ||||
{ | { | ||||
/* XXX: VFP */ | /* XXX: VFP */ | ||||
} | } |