-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call syscall() to get E2K procedure stack directly in caller function
Move code of GC_get_procedure_stack() into GET_PROCEDURE_STACK_LOCAL(), so that syscall(E2K_GET_PROCEDURE_STACK_SIZE) and syscall(E2K_READ_PROCEDURE_STACK_EX) are invoked directly in the function which uses GET_PROCEDURE_STACK_LOCAL() macro. Also, do not expect anymore that syscall(E2K_GET_PROCEDURE_STACK_SIZE) could be interrupted (resulting in a syscall fail with EAGAIN), and do not call syscall(E2K_GET_PROCEDURE_STACK_SIZE) again after syscall(E2K_READ_PROCEDURE_STACK_EX) is interrupted. * include/private/gc_priv.h [E2K] (GC_get_procedure_stack): Do not declare. * include/private/gc_priv.h [E2K]: Move include errno.h, sys/e2k_syswork.h, sys/syscall.h from mach_dep.c. * include/private/gc_priv.h [E2K] (GET_PROCEDURE_STACK_LOCAL): Remove capacity local variable; do not call GC_get_procedure_stack() (call syscall() directly instead); define ofs_sz_ll local variable; move syscall() with E2K_GET_PROCEDURE_STACK_SIZE out of the for loop (i.e. do not retry it if syscall() fails with EAGAIN). * mach_dep.c [E2K] (GC_get_procedure_stack): Do not define.
- Loading branch information
Showing
2 changed files
with
27 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters