hardwaremain: drop boot_complete parameter
it has been unused since 9 years or so, hence drop it. Change-Id: I0706feb7b3f2ada8ecb92176a94f6a8df53eaaa1 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/3212 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
758076cceb
commit
2a3c10677f
|
@ -49,12 +49,6 @@ _start:
|
||||||
pushl $0
|
pushl $0
|
||||||
pushl $0
|
pushl $0
|
||||||
|
|
||||||
/* push the boot_complete flag */
|
|
||||||
pushl %ebp
|
|
||||||
|
|
||||||
/* Save the stack location */
|
|
||||||
movl %esp, %ebp
|
|
||||||
|
|
||||||
/* Initialize the Interrupt Descriptor table */
|
/* Initialize the Interrupt Descriptor table */
|
||||||
leal _idt, %edi
|
leal _idt, %edi
|
||||||
leal vec0, %ebx
|
leal vec0, %ebx
|
||||||
|
@ -80,9 +74,6 @@ _start:
|
||||||
*/
|
*/
|
||||||
post_code(POST_PRE_HARDWAREMAIN) /* post fe */
|
post_code(POST_PRE_HARDWAREMAIN) /* post fe */
|
||||||
|
|
||||||
/* Restore the stack location */
|
|
||||||
movl %ebp, %esp
|
|
||||||
|
|
||||||
#if CONFIG_GDB_WAIT
|
#if CONFIG_GDB_WAIT
|
||||||
call gdb_stub_breakpoint
|
call gdb_stub_breakpoint
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -165,7 +165,7 @@ void boot_state_current_block(void);
|
||||||
void boot_state_current_unblock(void);
|
void boot_state_current_unblock(void);
|
||||||
|
|
||||||
/* Entry into the boot state machine. */
|
/* Entry into the boot state machine. */
|
||||||
void hardwaremain(int boot_complete);
|
void hardwaremain(void);
|
||||||
|
|
||||||
/* In order to schedule boot state callbacks at compile-time specify the
|
/* In order to schedule boot state callbacks at compile-time specify the
|
||||||
* entries in an array using the BOOT_STATE_INIT_ENTRIES and
|
* entries in an array using the BOOT_STATE_INIT_ENTRIES and
|
||||||
|
|
|
@ -444,7 +444,7 @@ static void boot_state_schedule_static_entries(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void hardwaremain(int boot_complete)
|
void hardwaremain(void)
|
||||||
{
|
{
|
||||||
timestamp_stash(TS_START_RAMSTAGE);
|
timestamp_stash(TS_START_RAMSTAGE);
|
||||||
post_code(POST_ENTRY_RAMSTAGE);
|
post_code(POST_ENTRY_RAMSTAGE);
|
||||||
|
@ -454,17 +454,11 @@ void hardwaremain(int boot_complete)
|
||||||
|
|
||||||
post_code(POST_CONSOLE_READY);
|
post_code(POST_CONSOLE_READY);
|
||||||
|
|
||||||
printk(BIOS_NOTICE, "coreboot-%s%s %s %s...\n",
|
printk(BIOS_NOTICE, "coreboot-%s%s %s booting...\n",
|
||||||
coreboot_version, coreboot_extra_version, coreboot_build,
|
coreboot_version, coreboot_extra_version, coreboot_build);
|
||||||
(boot_complete)?"rebooting":"booting");
|
|
||||||
|
|
||||||
post_code(POST_CONSOLE_BOOT_MSG);
|
post_code(POST_CONSOLE_BOOT_MSG);
|
||||||
|
|
||||||
/* If we have already booted attempt a hard reboot */
|
|
||||||
if (boot_complete) {
|
|
||||||
hard_reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Schedule the static boot state entries. */
|
/* Schedule the static boot state entries. */
|
||||||
boot_state_schedule_static_entries();
|
boot_state_schedule_static_entries();
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,8 @@
|
||||||
|
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
|
||||||
void hardwaremain(int boot_complete);
|
void hardwaremain(void);
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
console_init();
|
hardwaremain();
|
||||||
printk(BIOS_INFO, "hello from ramstage\n");
|
|
||||||
hardwaremain(0);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,12 +77,10 @@ void fill_lb_framebuffer(struct lb_framebuffer *framebuffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void hardwaremain(int boot_complete);
|
void hardwaremain(void);
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
console_init();
|
/* FIXME this should be moved elsewhere. We don't want ramstage.c */
|
||||||
printk(BIOS_INFO,
|
|
||||||
"hello from ramstage; now with deluxe exception handling.\n");
|
|
||||||
|
|
||||||
/* set up coreboot tables */
|
/* set up coreboot tables */
|
||||||
high_tables_size = CONFIG_COREBOOT_TABLES_SIZE;
|
high_tables_size = CONFIG_COREBOOT_TABLES_SIZE;
|
||||||
|
@ -114,7 +112,7 @@ void main(void)
|
||||||
|
|
||||||
power_enable_xclkout();
|
power_enable_xclkout();
|
||||||
|
|
||||||
hardwaremain(0);
|
hardwaremain();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: transplanted DP stuff, clean up once we have something that works */
|
/* TODO: transplanted DP stuff, clean up once we have something that works */
|
||||||
|
|
|
@ -604,7 +604,7 @@ void init_VIA_chipset(void)
|
||||||
* In the dev_enumerate() phase,
|
* In the dev_enumerate() phase,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void hardwaremain(int boot_complete)
|
void hardwaremain(void)
|
||||||
{
|
{
|
||||||
struct lb_memory *lb_mem;
|
struct lb_memory *lb_mem;
|
||||||
#if CONFIG_HAVE_ACPI_RESUME
|
#if CONFIG_HAVE_ACPI_RESUME
|
||||||
|
|
Loading…
Reference in New Issue