void __init mach_reserve_bootmem ()
{
- extern char _root_fs_image_start, _root_fs_image_end;
- u32 root_fs_image_start = (u32)&_root_fs_image_start;
- u32 root_fs_image_end = (u32)&_root_fs_image_end;
-
if (SDRAM_ADDR < RAM_END && SDRAM_ADDR > RAM_START)
/* We can't use the space between SRAM and SDRAM, so
prevent the kernel from trying. */
reserve_bootmem (SRAM_END, SDRAM_ADDR - SRAM_END);
-
- /* Reserve the memory used by the root filesystem image if it's
- in RAM. */
- if (root_fs_image_end > root_fs_image_start
- && root_fs_image_start >= RAM_START
- && root_fs_image_start < RAM_END)
- reserve_bootmem (root_fs_image_start,
- root_fs_image_end - root_fs_image_start);
}
void mach_gettimeofday (struct timespec *tv)
*ram_len = RAM_END - RAM_START;
}
-void __init mach_reserve_bootmem ()
-{
- extern char _root_fs_image_start, _root_fs_image_end;
- u32 root_fs_image_start = (u32)&_root_fs_image_start;
- u32 root_fs_image_end = (u32)&_root_fs_image_end;
-
- /* Reserve the memory used by the root filesystem image if it's
- in RAM. */
- if (root_fs_image_start >= RAM_START && root_fs_image_start < RAM_END)
- reserve_bootmem (root_fs_image_start,
- root_fs_image_end - root_fs_image_start);
-}
-
void mach_gettimeofday (struct timespec *tv)
{
tv->tv_sec = 0;
*ram_len = SDRAM_SIZE;
}
-void __init mach_reserve_bootmem ()
-{
- extern char _root_fs_image_start, _root_fs_image_end;
- u32 root_fs_image_start = (u32)&_root_fs_image_start;
- u32 root_fs_image_end = (u32)&_root_fs_image_end;
-
- /* Reserve the memory used by the root filesystem image if it's
- in SDRAM. */
- if (root_fs_image_end > root_fs_image_start
- && root_fs_image_start >= SDRAM_ADDR
- && root_fs_image_start < (SDRAM_ADDR + SDRAM_SIZE))
- reserve_bootmem (root_fs_image_start,
- root_fs_image_end - root_fs_image_start);
-}
-
void mach_gettimeofday (struct timespec *tv)
{
tv->tv_sec = 0;
*ram_len = RAM_END - RAM_START;
}
-void __init mach_reserve_bootmem ()
-{
- extern char _root_fs_image_start, _root_fs_image_end;
- u32 root_fs_image_start = (u32)&_root_fs_image_start;
- u32 root_fs_image_end = (u32)&_root_fs_image_end;
-
- /* Reserve the memory used by the root filesystem image if it's
- in RAM. */
- if (root_fs_image_end > root_fs_image_start
- && root_fs_image_start >= RAM_START
- && root_fs_image_start < RAM_END)
- reserve_bootmem (root_fs_image_start,
- root_fs_image_end - root_fs_image_start);
-}
-
void __init mach_sched_init (struct irqaction *timer_action)
{
/* The simulator actually cycles through all interrupts