Skip to content

Commit

Permalink
VM: UAP_SET_TOC_POINTER appears to be a noop on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
bjourne committed Sep 29, 2016
1 parent 9eab4b5 commit 78d9065
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion vm/os-linux-arm.hpp
Expand Up @@ -10,7 +10,6 @@ void flush_icache(cell start, cell len);
(((ucontext_t*)ucontext)->uc_mcontext.arm_sp)
#define UAP_PROGRAM_COUNTER(ucontext) \
(((ucontext_t*)ucontext)->uc_mcontext.arm_pc)
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0

#define CODE_TO_FUNCTION_POINTER(code) (void)0
#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
Expand Down
1 change: 0 additions & 1 deletion vm/os-linux-ppc.32.hpp
Expand Up @@ -6,7 +6,6 @@ namespace factor {
((ucontext_t*)ucontext)->uc_mcontext.uc_regs->gregs[1]
#define UAP_PROGRAM_COUNTER(ucontext) \
(((ucontext_t*)ucontext)->uc_mcontext.uc_regs->gregs[32])
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0

#define CODE_TO_FUNCTION_POINTER(code) (void)0
#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
Expand Down
1 change: 0 additions & 1 deletion vm/os-linux-ppc.64.hpp
Expand Up @@ -6,7 +6,6 @@ namespace factor {
((ucontext_t*)ucontext)->uc_mcontext.gp_regs[1]
#define UAP_PROGRAM_COUNTER(ucontext) \
(((ucontext_t*)ucontext)->uc_mcontext.gp_regs[32])
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0

#define FACTOR_PPC_TOC 1

Expand Down
1 change: 0 additions & 1 deletion vm/os-linux-x86.32.hpp
Expand Up @@ -50,7 +50,6 @@ inline static void uap_clear_fpu_status(void* uap) {
(((ucontext_t*)ucontext)->uc_mcontext.gregs[7])
#define UAP_PROGRAM_COUNTER(ucontext) \
(((ucontext_t*)ucontext)->uc_mcontext.gregs[14])
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0

#define CODE_TO_FUNCTION_POINTER(code) (void)0
#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
Expand Down
1 change: 0 additions & 1 deletion vm/os-linux-x86.64.hpp
Expand Up @@ -18,7 +18,6 @@ inline static void uap_clear_fpu_status(void* uap) {
(((ucontext_t*)ucontext)->uc_mcontext.gregs[15])
#define UAP_PROGRAM_COUNTER(ucontext) \
(((ucontext_t*)ucontext)->uc_mcontext.gregs[16])
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0

#define CODE_TO_FUNCTION_POINTER(code) (void)0
#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
Expand Down
1 change: 0 additions & 1 deletion vm/os-macosx.hpp
Expand Up @@ -9,7 +9,6 @@ const char* vm_executable_path();
const char* default_image_path();

#define UAP_STACK_POINTER(ucontext) (((ucontext_t*)ucontext)->uc_stack.ss_sp)
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0

#define CODE_TO_FUNCTION_POINTER(code) (void)0
#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
Expand Down
1 change: 0 additions & 1 deletion vm/os-unix.cpp
Expand Up @@ -123,7 +123,6 @@ void factor_vm::dispatch_signal(void* uap, void(handler)()) {
dispatch_signal_handler((cell*)&UAP_STACK_POINTER(uap),
(cell*)&UAP_PROGRAM_COUNTER(uap),
(cell)FUNCTION_CODE_POINTER(handler));
UAP_SET_TOC_POINTER(uap, (cell)FUNCTION_TOC_POINTER(handler));
}

void memory_signal_handler(int signal, siginfo_t* siginfo, void* uap) {
Expand Down

0 comments on commit 78d9065

Please sign in to comment.