mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 03:21:32 +00:00
x86: Move call to dram_init_f into board_init_f
This commit is contained in:
parent
fb0029088e
commit
c869e2ac46
3 changed files with 4 additions and 3 deletions
|
@ -93,9 +93,6 @@ car_init_ret:
|
||||||
subl $1b, %ecx
|
subl $1b, %ecx
|
||||||
movl %ecx, (GD_LOAD_OFF * 4)(%ebp)
|
movl %ecx, (GD_LOAD_OFF * 4)(%ebp)
|
||||||
|
|
||||||
/* size memory */
|
|
||||||
call dram_init_f
|
|
||||||
|
|
||||||
/* Set parameter to board_init_f() to boot flags */
|
/* Set parameter to board_init_f() to boot flags */
|
||||||
movl (GD_FLAGS * 4)(%ebp), %eax
|
movl (GD_FLAGS * 4)(%ebp), %eax
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ int register_timer_isr (timer_fnc_t *isr_func);
|
||||||
|
|
||||||
/* Architecture specific - can be in arch/i386/cpu/, arch/i386/lib/, or $(BOARD)/ */
|
/* Architecture specific - can be in arch/i386/cpu/, arch/i386/lib/, or $(BOARD)/ */
|
||||||
int timer_init(void);
|
int timer_init(void);
|
||||||
|
int dram_init_f(void);
|
||||||
|
|
||||||
/* cpu/.../interrupts.c */
|
/* cpu/.../interrupts.c */
|
||||||
int cpu_init_interrupts(void);
|
int cpu_init_interrupts(void);
|
||||||
|
|
|
@ -197,6 +197,9 @@ void board_init_f(ulong boot_flags)
|
||||||
|
|
||||||
gd->flags = boot_flags;
|
gd->flags = boot_flags;
|
||||||
|
|
||||||
|
if (dram_init_f() != 0)
|
||||||
|
hang();
|
||||||
|
|
||||||
/* Calculate destination RAM Address and relocation offset */
|
/* Calculate destination RAM Address and relocation offset */
|
||||||
dest_addr = (void *)gd->ram_size;
|
dest_addr = (void *)gd->ram_size;
|
||||||
addr_sp = dest_addr;
|
addr_sp = dest_addr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue