bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calculating correct values of mem_top, mem_range, stack_address, stack_d


From: Svante Signell
Subject: Calculating correct values of mem_top, mem_range, stack_address, stack_direction and page_width for gcl on Hurd
Date: Thu, 05 Nov 2015 11:02:07 +0100

Hi,

gcl use the attached program, extracted from configure.in, to
calculateĀ mem_top, mem_range, stack_address, stack_direction and
page_width for that package. (Unfortunately I don't understand parts of
the code)

Unfortunately some values are wrong for GNU/Hurd. In order to hardcode
them (to see if the application packages like maxima can run properly)
I need to know the correct/safe (maybe empirical) values.

On Hurd:
page_width=12
stack_direction=-1
stack_address=0xfffffff
mem_top=0x80000000
mem_range=0x40000000

Empirically, with a max memory of 1980 MiB, that gives
mem_top=0x7bc00000 (Using this value does not change anything when
building maxima, it hangs with a corrupt stack/memory corruption/other)

Are the other calculated values correct?

On Linux (amd64):
page_width=12
stack_direction=-1
stack_address=0x7fff2fffffff
mem_top=0x8000000000000000
mem_range=0x40000000

Attachment: test_mem_top.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]