diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-07-25 09:25:46 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-07-25 09:25:46 +0300 |
commit | d91a9d2311214371d533fe2f905c4bc7480223f9 (patch) | |
tree | 875639fa32811b80f05175df32dad386161b8169 /mach_dep.c | |
parent | ed4f7ea68f0983e81dd96a99a9cf4e9c7c58a4e2 (diff) | |
download | bdwgc-d91a9d2311214371d533fe2f905c4bc7480223f9.tar.gz |
Support 32-bit mode on E2K
Issue #456 (bdwgc).
* include/private/gcconfig.h [E2K && !__LP64__] (CPP_WORDSZ): Define
to 64 (instead of 32).
* include/private/gcconfig.h [E2K && !__LP64__] (ALIGNMENT): Define to
4 (instead of 8).
* mach_dep.c [E2K] (GC_get_procedure_stack): Change type of new_sz and
stack_ofs local variables from word to unsigned long long.
Diffstat (limited to 'mach_dep.c')
-rw-r--r-- | mach_dep.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,11 +34,11 @@ # include <sys/syscall.h> GC_INNER size_t GC_get_procedure_stack(ptr_t buf, size_t buf_sz) { - word new_sz; + unsigned long long new_sz; GC_ASSERT(0 == buf_sz || buf != NULL); for (;;) { - word stack_ofs; + unsigned long long stack_ofs; new_sz = 0; if (syscall(__NR_access_hw_stacks, E2K_GET_PROCEDURE_STACK_SIZE, |