From: Camm Maguire Date: Sun, 13 Nov 2022 12:55:14 +0000 (+0000) Subject: X-Git-Tag: archive/raspbian/2.7.1-4+rpi1~2^2^2~85 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fea1b217cd751389a429cf99c1f40ac02c7ad37c;p=gcl27.git TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. gcl (2.6.12-50) unstable; urgency=medium * list_order.6 Gbp-Pq: Name defined_real_maxpage --- diff --git a/h/386-gnu.h b/h/386-gnu.h index 7c23da6..da78e83 100755 --- a/h/386-gnu.h +++ b/h/386-gnu.h @@ -59,3 +59,5 @@ #define RELOC_H "elf32_i386_reloc.h" #define NEED_STACK_CHK_GUARD + +#define DEFINED_REAL_MAXPAGE (1UL<<18) /*FIXME brk probe broken*/ diff --git a/h/m68k-linux.h b/h/m68k-linux.h index 79af62a..5d115cc 100755 --- a/h/m68k-linux.h +++ b/h/m68k-linux.h @@ -78,3 +78,5 @@ int cacheflush(void *,int,int,int); #define RELOC_H "elf32_m68k_reloc.h" #define NEED_STACK_CHK_GUARD + +#define DEFINED_REAL_MAXPAGE (1UL<<18) /*FIXME brk probe broken*/ diff --git a/h/sh4-linux.h b/h/sh4-linux.h index 4ee9a04..70fc83b 100755 --- a/h/sh4-linux.h +++ b/h/sh4-linux.h @@ -56,3 +56,5 @@ #define RELOC_H "elf32_sh4_reloc.h" #define NEED_STACK_CHK_GUARD + +#define DEFINED_REAL_MAXPAGE (1UL<<18) /*FIXME brk probe broken*/ diff --git a/o/main.c b/o/main.c index 9b10de4..995d31f 100755 --- a/o/main.c +++ b/o/main.c @@ -302,6 +302,9 @@ update_real_maxpage(void) { } #endif +#ifdef DEFINED_REAL_MAXPAGE + real_maxpage=DEFINED_REAL_MAXPAGE; +#else massert(cur=sbrk(0)); beg=data_start ? data_start : cur; for (i=0,j=(1L<PAGESIZE;j>>=1) @@ -311,7 +314,8 @@ update_real_maxpage(void) { i+=j; } massert(!mbrk(cur)); - +#endif + phys_pages=ufmin(get_phys_pages1(0)+page(beg),real_maxpage)-page(beg); get_gc_environ();