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 07 Aug 2006 01:32:46 AM UTC  
 
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 20 Nov 2006 12:56:48 AM UTC, 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 16 Nov 2006 05:35:21 PM UTC, 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 07 Aug 2006 01:32:46 AM UTC, 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):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one

Digest:
   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 26 Nov 2006 08:08:46 PM UTCsthibaulStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 15 Nov 2006 10:07:32 PM UTCsthibaulStatusFixed=>None
      Open/ClosedClosed=>Open
    Wed 15 Nov 2006 10:05:36 PM UTCsthibaulOpen/ClosedOpen=>Closed
    Wed 15 Nov 2006 10:05:35 PM UTCsthibaulStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup