From dd78bb04876f66e967773d6dd03ea9534fe43cc2 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Thu, 13 Jul 2017 20:07:07 +0200 Subject: Switch to initialization operations --- kern/kernel.c | 38 ++------------------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) (limited to 'kern/kernel.c') diff --git a/kern/kernel.c b/kern/kernel.c index 6c562f4..434297d 100644 --- a/kern/kernel.c +++ b/kern/kernel.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2014 Richard Braun. + * Copyright (c) 2011-2017 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,53 +15,19 @@ * along with this program. If not, see . */ -#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include #include #include -#ifdef X15_RUN_TEST_MODULE -#include -#endif /* X15_RUN_TEST_MODULE */ - void __init kernel_main(void) { assert(!cpu_intr_enabled()); - percpu_cleanup(); - shell_setup(); - syscnt_register_shell_cmds(); - cpumap_setup(); - xcall_setup(); - task_setup(); - sleepq_setup(); - turnstile_setup(); - thread_setup(); - work_setup(); - llsync_setup(); - sref_setup(); + init_setup(); vm_page_log_info(); - shutdown_register_shell_cmds(); - log_start(); - -#ifdef X15_RUN_TEST_MODULE - test_setup(); -#endif /* X15_RUN_TEST_MODULE */ /* * Enabling application processors is done late in the boot process for -- cgit v1.2.3