summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-05-29 21:05:02 +0000
committerRoland McGrath <roland@gnu.org>1999-05-29 21:05:02 +0000
commite9e6deb35d4edfcb198130aa7de483baebd8a0f0 (patch)
tree303798e172a52679f557b257c059e14b03bb3bdf /kern
parentc4e8f57597c88b88de078af2031b36baff414aad (diff)
1999-05-29 Roland McGrath <roland@baalperazim.frob.com>
* kern/startup.c (start_kernel_threads): Call record_time_stamp to reset the kernel task's creation_time field, so it's not zero.
Diffstat (limited to 'kern')
-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.
*/