diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-01-23 23:07:58 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-01-24 00:50:08 +0000 |
commit | c21f07e58e48144a97a844668aae68644f8e8dec (patch) | |
tree | 12a0b7f04e085a0d2035e9bfbe05013530f99501 /common/main.c | |
parent | a2a85365d600b93ecd10d44d1a5a2115ce0252f1 (diff) | |
download | chrome-ec-c21f07e58e48144a97a844668aae68644f8e8dec.tar.gz |
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 <vpalatin@chromium.org>
BUG=None
TEST=run a few commands from the BDS command line.
Change-Id: Id33ea210b9035bf76ed720373c74c5dd24ccd1b1
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 5 |
1 files changed, 0 insertions, 5 deletions
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(); |