Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/cloudabi32/cloudabi32_sysvec.c
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
#include <compat/cloudabi32/cloudabi32_syscall.h> | #include <compat/cloudabi32/cloudabi32_syscall.h> | ||||
#include <compat/cloudabi32/cloudabi32_util.h> | #include <compat/cloudabi32/cloudabi32_util.h> | ||||
extern const char *cloudabi32_syscallnames[]; | extern const char *cloudabi32_syscallnames[]; | ||||
extern struct sysent cloudabi32_sysent[]; | extern struct sysent cloudabi32_sysent[]; | ||||
static void | static void | ||||
cloudabi32_proc_setregs(struct thread *td, struct image_params *imgp, | cloudabi32_proc_setregs(struct thread *td, struct image_params *imgp, | ||||
unsigned long stack) | uintptr_t stack) | ||||
{ | { | ||||
struct trapframe *regs; | struct trapframe *regs; | ||||
regs = td->td_frame; | regs = td->td_frame; | ||||
memset(regs, 0, sizeof(*regs)); | memset(regs, 0, sizeof(*regs)); | ||||
regs->tf_x[0] = | regs->tf_x[0] = | ||||
stack + roundup(sizeof(cloudabi32_tcb_t), sizeof(register_t)); | stack + roundup(sizeof(cloudabi32_tcb_t), sizeof(register_t)); | ||||
regs->tf_x[13] = STACKALIGN(stack); | regs->tf_x[13] = STACKALIGN(stack); | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |