diff options
author | Becky Bruce <becky.bruce@freescale.com> | 2008-06-09 20:37:16 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-06-12 00:54:53 +0200 |
commit | b57ca3e128cc10a133ba79bc7ec3e7b50e7c8fbe (patch) | |
tree | 247a1f2b1ea4c024206b4ec02a71604cd5ee40b3 /include/asm-nios | |
parent | b77cddc7b52acd4ed78830ac681a398dd3053938 (diff) | |
download | bootable_bootloader_goldelico_gta04-b57ca3e128cc10a133ba79bc7ec3e7b50e7c8fbe.zip bootable_bootloader_goldelico_gta04-b57ca3e128cc10a133ba79bc7ec3e7b50e7c8fbe.tar.gz bootable_bootloader_goldelico_gta04-b57ca3e128cc10a133ba79bc7ec3e7b50e7c8fbe.tar.bz2 |
Change bd/gd memsize/ram_size to be phys_size_t.
Currently, both are defined as an unsigned long, but
should be phys_size_t. This should result in no real change,
since phys_size_t is currently an unsigned long for all the
default configs. Also add print_lnum to cmd_bdinfo to deal
with the potentially wider memsize.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Diffstat (limited to 'include/asm-nios')
-rw-r--r-- | include/asm-nios/global_data.h | 2 | ||||
-rw-r--r-- | include/asm-nios/u-boot.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-nios/global_data.h b/include/asm-nios/global_data.h index a8cc987..a56f939 100644 --- a/include/asm-nios/global_data.h +++ b/include/asm-nios/global_data.h @@ -30,7 +30,7 @@ typedef struct global_data { unsigned long baudrate; unsigned long cpu_clk; /* CPU clock in Hz! */ unsigned long have_console; /* serial_init() was called */ - unsigned long ram_size; /* RAM size */ + phys_size_t ram_size; /* RAM size */ unsigned long reloc_off; /* Relocation Offset */ unsigned long env_addr; /* Address of Environment struct */ unsigned long env_valid; /* Checksum of Environment valid */ diff --git a/include/asm-nios/u-boot.h b/include/asm-nios/u-boot.h index aae4be1..3436185 100644 --- a/include/asm-nios/u-boot.h +++ b/include/asm-nios/u-boot.h @@ -34,7 +34,7 @@ typedef struct bd_info { unsigned long bi_memstart; /* start of DRAM memory */ - unsigned long bi_memsize; /* size of DRAM memory in bytes */ + phys_size_t bi_memsize; /* size of DRAM memory in bytes */ unsigned long bi_flashstart; /* start of FLASH memory */ unsigned long bi_flashsize; /* size of FLASH memory */ unsigned long bi_flashoffset; /* reserved area for startup monitor */ |