bugThe GNU Hurd - Bugs: bug #17346, GNU mach can't handle 4GB memory


bug #17346: GNU mach can't handle 4GB memory

Submitted by:  Samuel Thibault <sthibaul>
Submitted on:  Mon Aug 7 01:32:46 2006  
Category: GNU MachSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Hardware Support
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedReproducibility: Every Time
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Nov 20 00:56:48 2006, comment #2:

This better?

vm_size_t memsize = boot_info.mem_upper;

if ((memsize >= 0x400000))
memsize = (0x400000-1);

phys_last_addr = 0x100000 + (memsize * 0x400);

Barry deFreese <bddebian>
Thu Nov 16 17:35:21 2006, comment #1:

Does it make sense to just do this in i386/i386at/model_dep.c:

/* Gnumach can't map more than 1GB so if over 1GB,
truncate it to 1GB - 1MB. */

if ((boot_info.mem_upper >= 0x100000))
boot_info.mem_upper = (0x100000 - 0x400);

Barry deFreese <bddebian>
Mon Aug 7 01:32:46 2006, original submission:

Or more precisely, it roughly takes the memory size modulo 4GB. That's because in i386/i386at/model_dep.c, memory size computing is done with ints, i.e. 32bit values, hence the modulo 2^32. An quick fix would be to truncate boot_info's memory size reporting to 1GB, i.e. boot_info.mem_upper to (2^32-1MB)/0x400.

Samuel Thibault <sthibaul>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one

   task dependencies.


Carbon-Copy List
  • -unavailable- added by sthibaul (Updated the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Nov 26 20:08:46 2006sthibaulStatusNone=>Fixed
    Wed Nov 15 22:07:32 2006sthibaulStatusFixed=>None
    Wed Nov 15 22:05:36 2006sthibaulOpen/ClosedOpen=>Closed
    Wed Nov 15 22:05:35 2006sthibaulStatusNone=>Fixed

    Back to the top

    Powered by Savane 3.1-cleanup1