From d91a9d2311214371d533fe2f905c4bc7480223f9 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 25 Jul 2022 09:25:46 +0300 Subject: 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. --- mach_dep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mach_dep.c') diff --git a/mach_dep.c b/mach_dep.c index 1fc1b587..bb01472d 100644 --- a/mach_dep.c +++ b/mach_dep.c @@ -34,11 +34,11 @@ # include 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, -- cgit v1.2.1