summaryrefslogtreecommitdiff
path: root/kern/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/startup.c')
-rw-r--r--kern/startup.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/kern/startup.c b/kern/startup.c
index dc0d5a0..0e1c701 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -1,25 +1,25 @@
-/*
+/*
* Mach Operating System
* Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
* All Rights Reserved.
- *
+ *
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
- *
+ *
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
+ *
* Carnegie Mellon requests users of this software to return to
- *
+ *
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
- *
+ *
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
@@ -143,7 +143,7 @@ void setup_main()
*/
recompute_priorities();
compute_mach_factor();
-
+
/*
* Create a kernel thread to start the other kernel
* threads. Thread_resume (from kernel_thread) calls
@@ -239,6 +239,16 @@ void start_kernel_threads()
norma_vm_init();
#endif NORMA_VM
+
+ /*
+ * Initialize kernel task's creation time.
+ * When we created the kernel task in task_init, the mapped
+ * time was not yet available. Now, last thing before starting
+ * the user bootstrap, record the current time as the kernel
+ * task's creation time.
+ */
+ record_time_stamp (&kernel_task->creation_time);
+
/*
* Start the user bootstrap.
*/