diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2013-03-19 01:17:47 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-03-19 01:17:47 -0700 |
commit | 144ca8252384697ba0f5eb40af25a3a4ebc08270 (patch) | |
tree | b20c716c9203ff7797171a278bc5188dd0a672f1 | |
parent | 0a5e30ed50eb58384bc297d01da7eaa1e26e72e6 (diff) | |
parent | a55c3a68b276fada417817afdd51b36cb854eb47 (diff) | |
download | lk-144ca8252384697ba0f5eb40af25a3a4ebc08270.tar.gz |
Merge "kernel: add boot timestamps"
-rw-r--r-- | kernel/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kernel/main.c b/kernel/main.c index 1167f31b..9999f854 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -1,7 +1,7 @@ /* * Copyright (c) 2008 Travis Geiselbrecht * - * Copyright (c) 2009, The Linux Foundation. All rights reserved. + * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files @@ -33,6 +33,7 @@ #include <kernel/thread.h> #include <kernel/timer.h> #include <kernel/dpc.h> +#include <boot_stats.h> extern void *__ctor_list; extern void *__ctor_end; @@ -48,7 +49,7 @@ void bootstrap_nandwrite(void); static void call_constructors(void) { void **ctor; - + ctor = &__ctor_list; while(ctor != &__ctor_end) { void (*func)(void); @@ -77,7 +78,8 @@ void kmain(void) target_early_init(); dprintf(INFO, "welcome to lk\n\n"); - + bs_set_timestamp(BS_BL_START); + // deal with any static constructors dprintf(SPEW, "calling constructors\n"); call_constructors(); @@ -132,7 +134,7 @@ static int bootstrap2(void *arg) // initialize the rest of the platform dprintf(SPEW, "initializing platform\n"); platform_init(); - + // initialize the target dprintf(SPEW, "initializing target\n"); target_init(); |