2019-12-12 14:29:37 +00:00
|
|
|
/*
|
2020-01-24 10:10:40 +00:00
|
|
|
* Copyright (c) 2018-2020 Atmosphère-NX
|
2019-12-12 14:29:37 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/* All kernel code should have access to libvapours. */
|
|
|
|
#include <vapours.hpp>
|
|
|
|
|
|
|
|
/* First, pull in core macros (panic, etc). */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_common.hpp>
|
2020-02-08 10:49:32 +00:00
|
|
|
#include <mesosphere/kern_panic.hpp>
|
2019-12-12 14:29:37 +00:00
|
|
|
|
|
|
|
/* Primitive types. */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_k_typed_address.hpp>
|
|
|
|
#include <mesosphere/kern_initial_process.hpp>
|
2020-01-31 06:46:18 +00:00
|
|
|
#include <mesosphere/kern_k_exception_context.hpp>
|
2019-12-13 09:21:43 +00:00
|
|
|
|
2020-08-01 00:01:01 +00:00
|
|
|
/* Tracing functionality. */
|
|
|
|
#include <mesosphere/kern_k_trace.hpp>
|
|
|
|
|
2019-12-17 08:37:55 +00:00
|
|
|
/* Core pre-initialization includes. */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_select_cpu.hpp>
|
2020-02-06 09:05:35 +00:00
|
|
|
#include <mesosphere/kern_select_system_control.hpp>
|
2020-02-15 03:58:57 +00:00
|
|
|
#include <mesosphere/kern_k_target_system.hpp>
|
2019-12-17 08:37:55 +00:00
|
|
|
|
2019-12-13 09:21:43 +00:00
|
|
|
/* Initialization headers. */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/init/kern_init_elf.hpp>
|
|
|
|
#include <mesosphere/init/kern_init_layout.hpp>
|
|
|
|
#include <mesosphere/init/kern_init_slab_setup.hpp>
|
|
|
|
#include <mesosphere/init/kern_init_page_table_select.hpp>
|
|
|
|
#include <mesosphere/init/kern_init_arguments_select.hpp>
|
|
|
|
#include <mesosphere/kern_k_memory_layout.hpp>
|
2019-12-12 14:29:37 +00:00
|
|
|
|
|
|
|
/* Core functionality. */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_select_interrupt_manager.hpp>
|
|
|
|
#include <mesosphere/kern_k_spin_lock.hpp>
|
|
|
|
#include <mesosphere/kern_k_memory_manager.hpp>
|
|
|
|
#include <mesosphere/kern_k_interrupt_task_manager.hpp>
|
|
|
|
#include <mesosphere/kern_k_slab_heap.hpp>
|
|
|
|
#include <mesosphere/kern_k_light_lock.hpp>
|
2020-02-08 03:16:09 +00:00
|
|
|
#include <mesosphere/kern_k_dpc_manager.hpp>
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_kernel.hpp>
|
2020-02-07 12:58:35 +00:00
|
|
|
#include <mesosphere/kern_k_page_table_manager.hpp>
|
2020-02-09 11:45:45 +00:00
|
|
|
#include <mesosphere/kern_select_page_table.hpp>
|
2020-01-18 06:02:45 +00:00
|
|
|
|
2020-02-07 19:51:58 +00:00
|
|
|
/* Miscellaneous objects. */
|
|
|
|
#include <mesosphere/kern_k_shared_memory_info.hpp>
|
|
|
|
#include <mesosphere/kern_k_event_info.hpp>
|
|
|
|
|
2020-01-30 06:06:25 +00:00
|
|
|
/* Auto Objects. */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_k_auto_object.hpp>
|
2020-02-07 19:51:58 +00:00
|
|
|
#include <mesosphere/kern_k_synchronization_object.hpp>
|
|
|
|
#include <mesosphere/kern_k_readable_event.hpp>
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_k_handle_table.hpp>
|
2020-02-07 19:51:58 +00:00
|
|
|
#include <mesosphere/kern_k_event.hpp>
|
|
|
|
#include <mesosphere/kern_k_interrupt_event.hpp>
|
|
|
|
#include <mesosphere/kern_k_light_session.hpp>
|
|
|
|
#include <mesosphere/kern_k_session.hpp>
|
|
|
|
#include <mesosphere/kern_k_session_request.hpp>
|
|
|
|
#include <mesosphere/kern_k_port.hpp>
|
|
|
|
#include <mesosphere/kern_k_shared_memory.hpp>
|
|
|
|
#include <mesosphere/kern_k_transfer_memory.hpp>
|
|
|
|
#include <mesosphere/kern_k_code_memory.hpp>
|
|
|
|
#include <mesosphere/kern_k_device_address_space.hpp>
|
|
|
|
#include <mesosphere/kern_select_debug.hpp>
|
2020-01-31 00:51:35 +00:00
|
|
|
#include <mesosphere/kern_k_process.hpp>
|
2020-02-06 13:34:38 +00:00
|
|
|
#include <mesosphere/kern_k_resource_limit.hpp>
|
2020-12-02 00:32:30 +00:00
|
|
|
#include <mesosphere/kern_k_alpha.hpp>
|
|
|
|
#include <mesosphere/kern_k_beta.hpp>
|
2020-01-30 06:06:25 +00:00
|
|
|
|
2020-02-07 19:51:58 +00:00
|
|
|
/* More Miscellaneous objects. */
|
|
|
|
#include <mesosphere/kern_k_object_name.hpp>
|
2020-04-26 09:35:10 +00:00
|
|
|
#include <mesosphere/kern_k_unsafe_memory.hpp>
|
2020-02-20 03:38:20 +00:00
|
|
|
#include <mesosphere/kern_k_scoped_resource_reservation.hpp>
|
2020-02-07 19:51:58 +00:00
|
|
|
|
2020-01-18 06:02:45 +00:00
|
|
|
/* Supervisor Calls. */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_svc.hpp>
|
2020-01-29 06:09:47 +00:00
|
|
|
|
|
|
|
/* Main functionality. */
|
2020-01-30 23:29:51 +00:00
|
|
|
#include <mesosphere/kern_main.hpp>
|