Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/elf64_machdep.c
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
#include <machine/altivec.h> | #include <machine/altivec.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/fpu.h> | #include <machine/fpu.h> | ||||
#include <machine/elf.h> | #include <machine/elf.h> | ||||
#include <machine/md_var.h> | #include <machine/md_var.h> | ||||
static void exec_setregs_funcdesc(struct thread *td, struct image_params *imgp, | static void exec_setregs_funcdesc(struct thread *td, struct image_params *imgp, | ||||
u_long stack); | uintptr_t stack); | ||||
struct sysentvec elf64_freebsd_sysvec_v1 = { | struct sysentvec elf64_freebsd_sysvec_v1 = { | ||||
.sv_size = SYS_MAXSYSCALL, | .sv_size = SYS_MAXSYSCALL, | ||||
.sv_table = sysent, | .sv_table = sysent, | ||||
.sv_errsize = 0, | .sv_errsize = 0, | ||||
.sv_errtbl = NULL, | .sv_errtbl = NULL, | ||||
.sv_transtrap = NULL, | .sv_transtrap = NULL, | ||||
.sv_fixup = __elfN(freebsd_fixup), | .sv_fixup = __elfN(freebsd_fixup), | ||||
▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | ppc64_elfv2_header_match(struct image_params *params) | ||||
const Elf64_Ehdr *hdr = (const Elf64_Ehdr *)params->image_header; | const Elf64_Ehdr *hdr = (const Elf64_Ehdr *)params->image_header; | ||||
int abi = (hdr->e_flags & 3); | int abi = (hdr->e_flags & 3); | ||||
return (abi == 2); | return (abi == 2); | ||||
} | } | ||||
static void | static void | ||||
exec_setregs_funcdesc(struct thread *td, struct image_params *imgp, | exec_setregs_funcdesc(struct thread *td, struct image_params *imgp, | ||||
u_long stack) | uintptr_t stack) | ||||
{ | { | ||||
struct trapframe *tf; | struct trapframe *tf; | ||||
register_t entry_desc[3]; | register_t entry_desc[3]; | ||||
tf = trapframe(td); | tf = trapframe(td); | ||||
exec_setregs(td, imgp, stack); | exec_setregs(td, imgp, stack); | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |