2019-12-12 15:29:37 +01:00
|
|
|
/*
|
2021-10-04 21:59:10 +02:00
|
|
|
* Copyright (c) Atmosphère-NX
|
2019-12-12 15:29:37 +01: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-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_common.hpp>
|
2020-02-08 11:49:32 +01:00
|
|
|
#include <mesosphere/kern_panic.hpp>
|
2019-12-12 15:29:37 +01:00
|
|
|
|
|
|
|
/* Primitive types. */
|
2020-01-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_k_typed_address.hpp>
|
|
|
|
#include <mesosphere/kern_initial_process.hpp>
|
2020-01-31 07:46:18 +01:00
|
|
|
#include <mesosphere/kern_k_exception_context.hpp>
|
2019-12-13 10:21:43 +01:00
|
|
|
|
2020-08-01 02:01:01 +02:00
|
|
|
/* Tracing functionality. */
|
|
|
|
#include <mesosphere/kern_k_trace.hpp>
|
|
|
|
|
2019-12-17 09:37:55 +01:00
|
|
|
/* Core pre-initialization includes. */
|
2020-01-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_select_cpu.hpp>
|
2020-02-06 10:05:35 +01:00
|
|
|
#include <mesosphere/kern_select_system_control.hpp>
|
2020-02-15 04:58:57 +01:00
|
|
|
#include <mesosphere/kern_k_target_system.hpp>
|
2019-12-17 09:37:55 +01:00
|
|
|
|
2019-12-13 10:21:43 +01:00
|
|
|
/* Initialization headers. */
|
2020-01-31 00:29:51 +01: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 15:29:37 +01:00
|
|
|
|
|
|
|
/* Core functionality. */
|
2020-01-31 00:29:51 +01: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 04:16:09 +01:00
|
|
|
#include <mesosphere/kern_k_dpc_manager.hpp>
|
2020-01-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_kernel.hpp>
|
2020-02-07 13:58:35 +01:00
|
|
|
#include <mesosphere/kern_k_page_table_manager.hpp>
|
2020-02-09 12:45:45 +01:00
|
|
|
#include <mesosphere/kern_select_page_table.hpp>
|
2020-12-09 14:59:54 +01:00
|
|
|
#include <mesosphere/kern_k_dump_object.hpp>
|
2020-01-18 07:02:45 +01:00
|
|
|
|
2020-02-07 20:51:58 +01:00
|
|
|
/* Miscellaneous objects. */
|
|
|
|
#include <mesosphere/kern_k_shared_memory_info.hpp>
|
|
|
|
#include <mesosphere/kern_k_event_info.hpp>
|
|
|
|
|
2020-01-30 07:06:25 +01:00
|
|
|
/* Auto Objects. */
|
2020-01-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_k_auto_object.hpp>
|
2020-02-07 20:51:58 +01:00
|
|
|
#include <mesosphere/kern_k_synchronization_object.hpp>
|
|
|
|
#include <mesosphere/kern_k_readable_event.hpp>
|
2020-01-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_k_handle_table.hpp>
|
2020-02-07 20:51:58 +01: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 01:51:35 +01:00
|
|
|
#include <mesosphere/kern_k_process.hpp>
|
2020-02-06 14:34:38 +01:00
|
|
|
#include <mesosphere/kern_k_resource_limit.hpp>
|
2021-09-18 22:26:21 +02:00
|
|
|
#include <mesosphere/kern_k_io_pool.hpp>
|
2020-01-30 07:06:25 +01:00
|
|
|
|
2020-02-07 20:51:58 +01:00
|
|
|
/* More Miscellaneous objects. */
|
|
|
|
#include <mesosphere/kern_k_object_name.hpp>
|
2020-04-26 11:35:10 +02:00
|
|
|
#include <mesosphere/kern_k_unsafe_memory.hpp>
|
2020-02-20 04:38:20 +01:00
|
|
|
#include <mesosphere/kern_k_scoped_resource_reservation.hpp>
|
2020-02-07 20:51:58 +01:00
|
|
|
|
2020-01-18 07:02:45 +01:00
|
|
|
/* Supervisor Calls. */
|
2020-01-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_svc.hpp>
|
2020-01-29 07:09:47 +01:00
|
|
|
|
|
|
|
/* Main functionality. */
|
2020-01-31 00:29:51 +01:00
|
|
|
#include <mesosphere/kern_main.hpp>
|
2021-10-25 02:00:05 +02:00
|
|
|
|
|
|
|
/* Deferred includes. */
|
|
|
|
#include <mesosphere/kern_k_auto_object_impls.hpp>
|