From c21f07e58e48144a97a844668aae68644f8e8dec Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Mon, 23 Jan 2012 23:07:58 +0000 Subject: register console commands at compile-time Instead of using a runtime callback to register the console commands, put them in a special linker section. So we can do a macro to "register" them during the build. It saves 684 bytes and a few microseconds at startup. Signed-off-by: Vincent Palatin BUG=None TEST=run a few commands from the BDS command line. Change-Id: Id33ea210b9035bf76ed720373c74c5dd24ccd1b1 --- common/main.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'common/main.c') diff --git a/common/main.c b/common/main.c index 30faa87066..15a2547665 100644 --- a/common/main.c +++ b/common/main.c @@ -79,19 +79,14 @@ int main(void) timer_init(); uart_init(); system_init(); - gpio_init(); flash_init(); eeprom_init(); port_80_init(); lpc_init(); - flash_commands_init(); - vboot_init(); pwm_init(); i2c_init(); temp_sensor_init(); - memory_commands_init(); power_button_init(); - keyboard_init(); adc_init(); usb_charge_init(); -- cgit v1.2.1