From f7e83a72a90385449ee47b06b38ff4bee0945a6d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 16 Dec 2020 14:33:07 -0800 Subject: [PATCH] kern: fix generic KDevicePageTable --- .../generic/kern_k_device_page_table.hpp | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/libraries/libmesosphere/include/mesosphere/board/generic/kern_k_device_page_table.hpp b/libraries/libmesosphere/include/mesosphere/board/generic/kern_k_device_page_table.hpp index e87148680..461095614 100644 --- a/libraries/libmesosphere/include/mesosphere/board/generic/kern_k_device_page_table.hpp +++ b/libraries/libmesosphere/include/mesosphere/board/generic/kern_k_device_page_table.hpp @@ -27,14 +27,36 @@ namespace ams::kern::board::generic { public: constexpr KDevicePageTable() { /* ... */ } - Result ALWAYS_INLINE Initialize(u64 space_address, u64 space_size) { return ams::kern::svc::ResultNotImplemented(); } + Result ALWAYS_INLINE Initialize(u64 space_address, u64 space_size) { + MESOSPHERE_UNUSED(space_address, space_size); + return ams::kern::svc::ResultNotImplemented(); + } + void ALWAYS_INLINE Finalize() { /* ... */ } - Result ALWAYS_INLINE Attach(ams::svc::DeviceName device_name, u64 space_address, u64 space_size) { return ams::kern::svc::ResultNotImplemented(); } - Result ALWAYS_INLINE Detach(ams::svc::DeviceName device_name) { return ams::kern::svc::ResultNotImplemented(); } + Result ALWAYS_INLINE Attach(ams::svc::DeviceName device_name, u64 space_address, u64 space_size) { + MESOSPHERE_UNUSED(device_name, space_address, space_size); + return ams::kern::svc::ResultNotImplemented(); + } - Result ALWAYS_INLINE Map(size_t *out_mapped_size, const KPageGroup &pg, KDeviceVirtualAddress device_address, ams::svc::MemoryPermission device_perm, bool refresh_mappings) { return ams::kern::svc::ResultNotImplemented(); } - Result ALWAYS_INLINE Unmap(const KPageGroup &pg, KDeviceVirtualAddress device_address) { return ams::kern::svc::ResultNotImplemented(); } + Result ALWAYS_INLINE Detach(ams::svc::DeviceName device_name) { + MESOSPHERE_UNUSED(device_name); + return ams::kern::svc::ResultNotImplemented(); + } + + Result ALWAYS_INLINE Map(size_t *out_mapped_size, const KPageGroup &pg, KDeviceVirtualAddress device_address, ams::svc::MemoryPermission device_perm, bool refresh_mappings) { + MESOSPHERE_UNUSED(out_mapped_size, pg, device_address, device_perm, refresh_mappings); + return ams::kern::svc::ResultNotImplemented(); + } + + Result ALWAYS_INLINE Unmap(const KPageGroup &pg, KDeviceVirtualAddress device_address) { + MESOSPHERE_UNUSED(pg, device_address); + return ams::kern::svc::ResultNotImplemented(); + } + + void ALWAYS_INLINE Unmap(KDeviceVirtualAddress device_address, size_t size) { + MESOSPHERE_UNUSED(device_address, size); + } public: static ALWAYS_INLINE void Initialize() { /* ... */ }