aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmol Jadi <amoljadi@codeaurora.org>2013-03-18 14:49:37 -0700
committerAmol Jadi <amoljadi@codeaurora.org>2013-03-18 15:47:55 -0700
commita55c3a68b276fada417817afdd51b36cb854eb47 (patch)
tree72fbbd166887284844006ac892a53ff12d5affa4
parent492d5a5b4b07b82a4d08483b9576618b64dd43c8 (diff)
downloadlk-a55c3a68b276fada417817afdd51b36cb854eb47.tar.gz
kernel: add boot timestamps
Change-Id: I4ca48c5609b3ce6c8a898307d7248519c32981e4
-rw-r--r--kernel/main.c10
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();