Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: top/main.c

Issue 1437453002: [kernel][ports] Add basic ports functionality (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: more tests Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« kernel/port.c ('K') | « kernel/rules.mk ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: top/main.c
diff --git a/top/main.c b/top/main.c
index 0065a94507ca75bca0473dc2f7f5daf03bef343c..6ef8431500f6e5bc0b3be16e17c68c5ec89a20fe 100644
--- a/top/main.c
+++ b/top/main.c
@@ -36,6 +36,7 @@
#include <kernel/mutex.h>
#include <kernel/novm.h>
#include <kernel/thread.h>
+#include <kernel/port.h>
#include <lk/init.h>
#include <lk/main.h>
@@ -116,6 +117,9 @@ void lk_main(ulong arg0, ulong arg1, ulong arg2, ulong arg3)
lk_primary_cpu_init_level(LK_INIT_LEVEL_HEAP, LK_INIT_LEVEL_KERNEL - 1);
kernel_init();
+ // initialize the named ports.
+ port_init();
travisg 2015/11/19 21:26:10 Should probably just move this inside kernel_init(
cpu_(ooo_6.6-7.5) 2015/11/20 22:18:46 Done.
+
lk_primary_cpu_init_level(LK_INIT_LEVEL_KERNEL, LK_INIT_LEVEL_THREADING - 1);
// create a thread to complete system initialization
« kernel/port.c ('K') | « kernel/rules.mk ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698