From 6db1b1fab63afbe072ebb678fdbbeba054845daf Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 20 Jul 1998 04:08:23 +0000 Subject: [PATCH] Must call mprotect to set the "execute" bit on Scheme's memory, so compiled code can run. Also, implement mechanism to use mprotect to flush the cache (which is disabled by default). --- v7/src/microcode/config.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/config.h b/v7/src/microcode/config.h index 40b24ff8c..6efff40b5 100644 --- a/v7/src/microcode/config.h +++ b/v7/src/microcode/config.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: config.h,v 9.98 1998/04/18 05:31:11 cph Exp $ +$Id: config.h,v 9.99 1998/07/20 04:08:23 cph Exp $ Copyright (c) 1987-98 Massachusetts Institute of Technology @@ -496,12 +496,17 @@ extern unsigned long winnt_address_delta; #endif #endif -#if defined(sony) || defined(_IRIX4) +#if defined(sony) || defined(_IRIX) #define HAS_FLOOR #define HAS_FREXP #define HAS_MODF #endif +#if defined(_IRIX6) && defined(HAS_COMPILER_SUPPORT) && !defined(NATIVE_CODE_IS_C) +extern void * irix_heap_malloc (long); +#define HEAP_MALLOC irix_heap_malloc +#endif + /* Heap resides in data space which begins at 0x10000000. This is kludged by the definitions below, and is still considered HEAP_IN_LOW_MEMORY. */ -- 2.25.1