Browse Source

2e pmon support big mem now.

git-svn-id: file:///svn/pmon-all/pmon-all@17 214b0138-1524-0410-9122-e5cb4b5bc56c
master
root 18 years ago
parent
commit
8f44bdb721
  1. 5
      Targets/Bonito2eCPCI/Bonito/tgt_machdep.c
  2. 2
      Targets/Bonito2eCPCI/conf/Bonito
  3. 4
      Targets/Bonito2eCPCI/conf/ld.script
  4. 13
      Targets/Bonito2ecard/Bonito/tgt_machdep.c
  5. 5
      Targets/Bonito2edev/Bonito/tgt_machdep.c
  6. 1050
      lib/libc/Makefile

5
Targets/Bonito2eCPCI/Bonito/tgt_machdep.c

@ -207,9 +207,8 @@ if(tgt_testchar())
GT_WRITE(BOOTCS_HIGH_DECODE_ADDRESS, (BOOT_BASE - 1 + BOOT_SIZE) >> 20);
#endif
SBD_DISPLAY("inms",0);
if(memsz>256)memsz=256;
memorysize=(memsz&0x0000ffff) << 20;//recover to original size:256M
memorysize_high=((memsz&0xffff0000)>>16) << 20;//0
memorysize = memsz > 256 ? 256 << 20 : memsz << 20;
memorysize_high = memsz > 256 ? (memsz - 256) << 20 : 0;
asm("
sd %1,0x18(%0);

2
Targets/Bonito2eCPCI/conf/Bonito

@ -63,7 +63,7 @@ option TARGETNAME="\"Bonito\""
#
mainbus0 at root
localbus0 at mainbus0
#fd0 at mainbus0
fd0 at mainbus0
pcibr0 at mainbus0
pci* at pcibr?
#ppb* at pci? dev ? function ? # PCI-PCI bridges

4
Targets/Bonito2eCPCI/conf/ld.script

@ -1,4 +1,4 @@
/* $Id: ld.script.Bonito,v 1.1.1.1 2006/09/14 01:59:08 root Exp $ */
/* $Id: ld.script.ram,v 1.1.1.1 2006/09/14 01:59:08 root Exp $ */
OUTPUT_FORMAT("elf32-littlemips", "elf32-bigmips",
"elf32-littlemips")
OUTPUT_ARCH(mips)
@ -6,7 +6,7 @@ ENTRY(_start)
SECTIONS
{
/* Read-only sections, merged into text segment: */
. = 0x80010000;
. = 0x80100000;
.text :
{
_ftext = . ;

13
Targets/Bonito2ecard/Bonito/tgt_machdep.c

@ -148,8 +148,17 @@ initmips(unsigned int memsz)
GT_WRITE(BOOTCS_LOW_DECODE_ADDRESS, BOOT_BASE >> 20);
GT_WRITE(BOOTCS_HIGH_DECODE_ADDRESS, (BOOT_BASE - 1 + BOOT_SIZE) >> 20);
#endif
memorysize=(memsz&0x0000ffff) << 20;//recover to original size:256M
memorysize_high=((memsz&0xffff0000)>>16) << 20;//0
memorysize = memsz > 256 ? 256 << 20 : memsz << 20;
memorysize_high = memsz > 256 ? (memsz - 256) << 20 : 0;
asm("
sd %1,0x18(%0);
sd %2,0x28(%0);
sd %3,0x20(%0);
"
::"r"(0x900000001ff00000ULL),"r"(memorysize),"r"(memorysize_high),"r"(0x20000000)
:"$2"
);
/*
* Probe clock frequencys so delays will work properly.

5
Targets/Bonito2edev/Bonito/tgt_machdep.c

@ -187,9 +187,8 @@ initmips(unsigned int memsz)
GT_WRITE(BOOTCS_LOW_DECODE_ADDRESS, BOOT_BASE >> 20);
GT_WRITE(BOOTCS_HIGH_DECODE_ADDRESS, (BOOT_BASE - 1 + BOOT_SIZE) >> 20);
#endif
if(memsz>256)memsz=256;
memorysize=(memsz&0x0000ffff) << 20;//recover to original size:256M
memorysize_high=((memsz&0xffff0000)>>16) << 20;//0
memorysize = memsz > 256 ? 256 << 20 : memsz << 20;
memorysize_high = memsz > 256 ? (memsz - 256) << 20 : 0;
asm("
sd %1,0x18(%0);

1050
lib/libc/Makefile

File diff suppressed because it is too large
Loading…
Cancel
Save