mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 23:08:22 -04:00
kern: kern::arm64 -> kern::arch::arm64
This commit is contained in:
parent
11f70759ce
commit
20b5268e90
47 changed files with 192 additions and 192 deletions
|
@ -20,7 +20,7 @@
|
|||
#include <mesosphere/kern_select_cpu.hpp>
|
||||
#include <mesosphere/arch/arm64/kern_k_page_table_entry.hpp>
|
||||
|
||||
namespace ams::kern::arm64::init {
|
||||
namespace ams::kern::arch::arm64::init {
|
||||
|
||||
class KInitialPageTable {
|
||||
public:
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <vapours.hpp>
|
||||
#include <mesosphere/arch/arm64/kern_cpu_system_registers.hpp>
|
||||
|
||||
namespace ams::kern::arm64::cpu {
|
||||
namespace ams::kern::arch::arm64::cpu {
|
||||
|
||||
#if defined(ATMOSPHERE_CPU_ARM_CORTEX_A57) || defined(ATMOSPHERE_CPU_ARM_CORTEX_A53)
|
||||
constexpr inline size_t InstructionCacheLineSize = 0x40;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
|
||||
namespace ams::kern::arm64::cpu {
|
||||
namespace ams::kern::arch::arm64::cpu {
|
||||
|
||||
#define MESOSPHERE_CPU_GET_SYSREG(name) \
|
||||
({ \
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace ams::kern {
|
|||
|
||||
}
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
class KDebug final : public KAutoObjectWithSlabHeapAndContainer<KDebug, KDebugBase> {
|
||||
MESOSPHERE_AUTOOBJECT_TRAITS(KDebug, KSynchronizationObject);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <mesosphere/kern_common.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
struct KExceptionContext {
|
||||
u64 x[(30 - 0) + 1];
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <mesosphere/kern_select_cpu.hpp>
|
||||
#include <mesosphere/kern_k_hardware_timer_base.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
namespace impl {
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <mesosphere/kern_select_cpu.hpp>
|
||||
#include <mesosphere/kern_k_typed_address.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
struct GicDistributor {
|
||||
u32 ctlr;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <mesosphere/kern_k_interrupt_task.hpp>
|
||||
#include <mesosphere/kern_select_interrupt_controller.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
class KInterruptManager {
|
||||
NON_COPYABLE(KInterruptManager);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
namespace interrupt_name {
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <mesosphere/kern_k_page_group.hpp>
|
||||
#include <mesosphere/kern_k_page_table_manager.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
class KPageTable : public KPageTableBase {
|
||||
NON_COPYABLE(KPageTable);
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <mesosphere/kern_select_cpu.hpp>
|
||||
#include <mesosphere/kern_k_typed_address.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
constexpr size_t L1BlockSize = 1_GB;
|
||||
constexpr size_t L2BlockSize = 2_MB;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <mesosphere/kern_k_memory_layout.hpp>
|
||||
#include <mesosphere/arch/arm64/kern_k_page_table_entry.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
/* TODO: This seems worse than KInitialPageTable. Can we fulfill Nintendo's API using KInitialPageTable? */
|
||||
/* KInitialPageTable is significantly nicer, but doesn't have KPageTableImpl's traversal semantics. */
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <mesosphere/kern_common.hpp>
|
||||
#include <mesosphere/arch/arm64/kern_k_page_table.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
class KProcessPageTable {
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <vapours.hpp>
|
||||
#include <mesosphere/kern_select_cpu.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
class KNotAlignedSpinLock {
|
||||
private:
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <mesosphere/kern_select_cpu.hpp>
|
||||
#include <mesosphere/arch/arm64/kern_k_page_table.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
class KSupervisorPageTable {
|
||||
private:
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace ams::kern {
|
|||
|
||||
}
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
class KThreadContext {
|
||||
public:
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#pragma once
|
||||
#include <mesosphere/kern_common.hpp>
|
||||
|
||||
namespace ams::kern::arm64 {
|
||||
namespace ams::kern::arch::arm64 {
|
||||
|
||||
void UserspaceMemoryAccessFunctionAreaBegin();
|
||||
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
#include <mesosphere/arch/arm64/init/kern_k_init_page_table.hpp>
|
||||
|
||||
namespace ams::kern::init {
|
||||
using ams::kern::arm64::PageTableEntry;
|
||||
using ams::kern::arm64::init::KInitialPageTable;
|
||||
using ams::kern::arm64::init::KInitialPageAllocator;
|
||||
using ams::kern::arch::arm64::PageTableEntry;
|
||||
using ams::kern::arch::arm64::init::KInitialPageTable;
|
||||
using ams::kern::arch::arm64::init::KInitialPageAllocator;
|
||||
}
|
||||
#else
|
||||
#error "Unknown architecture for KInitialPageTable"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <mesosphere/arch/arm64/kern_k_exception_context.hpp>
|
||||
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KExceptionContext;
|
||||
using ams::kern::arch::arm64::KExceptionContext;
|
||||
}
|
||||
#else
|
||||
#error "Unknown board for KExceptionContext"
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
|
||||
#include <mesosphere/arch/arm64/kern_k_spin_lock.hpp>
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KAlignedSpinLock;
|
||||
using ams::kern::arm64::KNotAlignedSpinLock;
|
||||
using ams::kern::arm64::KSpinLock;
|
||||
using ams::kern::arch::arm64::KAlignedSpinLock;
|
||||
using ams::kern::arch::arm64::KNotAlignedSpinLock;
|
||||
using ams::kern::arch::arm64::KSpinLock;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <mesosphere/arch/arm64/kern_k_thread_context.hpp>
|
||||
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KThreadContext;
|
||||
using ams::kern::arch::arm64::KThreadContext;
|
||||
}
|
||||
#else
|
||||
#error "Unknown board for KThreadContext"
|
||||
|
|
|
@ -39,10 +39,10 @@ namespace ams::kern {
|
|||
|
||||
#if defined(ATMOSPHERE_ARCH_ARM64)
|
||||
|
||||
namespace arm64 {
|
||||
namespace arch::arm64 {
|
||||
class KSupervisorPageTable;
|
||||
}
|
||||
using ams::kern::arm64::KSupervisorPageTable;
|
||||
using ams::kern::arch::arm64::KSupervisorPageTable;
|
||||
|
||||
#else
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace ams::kern::cpu {
|
||||
|
||||
using namespace ams::kern::arm64::cpu;
|
||||
using namespace ams::kern::arch::arm64::cpu;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include <mesosphere/arch/arm64/kern_k_debug.hpp>
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KDebug;
|
||||
using ams::kern::arch::arm64::KDebug;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include <mesosphere/arch/arm64/kern_k_hardware_timer.hpp>
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KHardwareTimer;
|
||||
using ams::kern::arch::arm64::KHardwareTimer;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include <mesosphere/arch/arm64/kern_k_interrupt_controller.hpp>
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KInterruptController;
|
||||
using ams::kern::arch::arm64::KInterruptController;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include <mesosphere/arch/arm64/kern_k_interrupt_manager.hpp>
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KInterruptManager;
|
||||
using ams::kern::arch::arm64::KInterruptManager;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include <mesosphere/arch/arm64/kern_k_interrupt_name.hpp>
|
||||
namespace ams::kern {
|
||||
using namespace ams::kern::arm64::interrupt_name;
|
||||
using namespace ams::kern::arch::arm64::interrupt_name;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
#include <mesosphere/arch/arm64/kern_k_supervisor_page_table.hpp>
|
||||
#include <mesosphere/arch/arm64/kern_k_process_page_table.hpp>
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KPageTable;
|
||||
using ams::kern::arm64::KSupervisorPageTable;
|
||||
using ams::kern::arm64::KProcessPageTable;
|
||||
using ams::kern::arch::arm64::KPageTable;
|
||||
using ams::kern::arch::arm64::KSupervisorPageTable;
|
||||
using ams::kern::arch::arm64::KProcessPageTable;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include <mesosphere/arch/arm64/kern_k_page_table_impl.hpp>
|
||||
namespace ams::kern {
|
||||
using ams::kern::arm64::KPageTableImpl;
|
||||
using ams::kern::arch::arm64::KPageTableImpl;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue