Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/elf64_machdep.c
Show All 24 Lines | |||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/elf.h> | |||||
#include <sys/exec.h> | #include <sys/exec.h> | ||||
#include <sys/imgact.h> | #include <sys/imgact.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/namei.h> | #include <sys/namei.h> | ||||
#include <sys/fcntl.h> | #include <sys/fcntl.h> | ||||
#include <sys/reg.h> | |||||
#include <sys/sysent.h> | #include <sys/sysent.h> | ||||
#include <sys/imgact_elf.h> | #include <sys/imgact_elf.h> | ||||
#include <sys/jail.h> | #include <sys/jail.h> | ||||
#include <sys/smp.h> | #include <sys/smp.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 <sys/linker.h> | #include <sys/linker.h> | ||||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | struct sysentvec elf64_freebsd_sysvec_v1 = { | ||||
.sv_shared_page_len = PAGE_SIZE, | .sv_shared_page_len = PAGE_SIZE, | ||||
.sv_schedtail = NULL, | .sv_schedtail = NULL, | ||||
.sv_thread_detach = NULL, | .sv_thread_detach = NULL, | ||||
.sv_trap = NULL, | .sv_trap = NULL, | ||||
.sv_hwcap = &cpu_features, | .sv_hwcap = &cpu_features, | ||||
.sv_hwcap2 = &cpu_features2, | .sv_hwcap2 = &cpu_features2, | ||||
.sv_onexec_old = exec_onexec_old, | .sv_onexec_old = exec_onexec_old, | ||||
.sv_onexit = exit_onexit, | .sv_onexit = exit_onexit, | ||||
.sv_regset_begin = SET_BEGIN(__elfN(regset)), | |||||
.sv_regset_end = SET_LIMIT(__elfN(regset)), | |||||
}; | }; | ||||
struct sysentvec elf64_freebsd_sysvec_v2 = { | struct sysentvec elf64_freebsd_sysvec_v2 = { | ||||
.sv_size = SYS_MAXSYSCALL, | .sv_size = SYS_MAXSYSCALL, | ||||
.sv_table = sysent, | .sv_table = sysent, | ||||
.sv_transtrap = NULL, | .sv_transtrap = NULL, | ||||
.sv_fixup = __elfN(freebsd_fixup), | .sv_fixup = __elfN(freebsd_fixup), | ||||
.sv_sendsig = sendsig, | .sv_sendsig = sendsig, | ||||
Show All 26 Lines | struct sysentvec elf64_freebsd_sysvec_v2 = { | ||||
.sv_shared_page_len = PAGE_SIZE, | .sv_shared_page_len = PAGE_SIZE, | ||||
.sv_schedtail = NULL, | .sv_schedtail = NULL, | ||||
.sv_thread_detach = NULL, | .sv_thread_detach = NULL, | ||||
.sv_trap = NULL, | .sv_trap = NULL, | ||||
.sv_hwcap = &cpu_features, | .sv_hwcap = &cpu_features, | ||||
.sv_hwcap2 = &cpu_features2, | .sv_hwcap2 = &cpu_features2, | ||||
.sv_onexec_old = exec_onexec_old, | .sv_onexec_old = exec_onexec_old, | ||||
.sv_onexit = exit_onexit, | .sv_onexit = exit_onexit, | ||||
.sv_regset_begin = SET_BEGIN(__elfN(regset)), | |||||
.sv_regset_end = SET_LIMIT(__elfN(regset)), | |||||
}; | }; | ||||
static boolean_t ppc64_elfv1_header_match(struct image_params *params, | static boolean_t ppc64_elfv1_header_match(struct image_params *params, | ||||
int32_t *, uint32_t *); | int32_t *, uint32_t *); | ||||
static boolean_t ppc64_elfv2_header_match(struct image_params *params, | static boolean_t ppc64_elfv2_header_match(struct image_params *params, | ||||
int32_t *, uint32_t *); | int32_t *, uint32_t *); | ||||
static Elf64_Brandinfo freebsd_brand_info_elfv1 = { | static Elf64_Brandinfo freebsd_brand_info_elfv1 = { | ||||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |