mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-19 19:14:52 +00:00
ams: various fixes to support booting debug configuration
This commit is contained in:
parent
85fd13f724
commit
6125f40bdb
7 changed files with 7 additions and 7 deletions
|
@ -1214,7 +1214,7 @@ namespace ams::kern::board::nintendo::nx {
|
|||
for (size_t i = 0; i < map_count; ++i) {
|
||||
/* Get the physical address. */
|
||||
const KPhysicalAddress phys_addr = l2[l2_index + i].GetPhysicalAddress();
|
||||
MESOSPHERE_ASSERT(IsHeapPhysicalAddress(phys_addr));
|
||||
MESOSPHERE_ASSERT(phys_addr == Null<KPhysicalAddress> || IsHeapPhysicalAddress(phys_addr));
|
||||
|
||||
/* Fully invalidate the entry. */
|
||||
l2[l2_index + i].Invalidate();
|
||||
|
|
|
@ -95,7 +95,7 @@ namespace ams::impl {
|
|||
AMS_DEFINE_SYSTEM_THREAD(16, creport, Main);
|
||||
|
||||
/* ro. */
|
||||
AMS_DEFINE_SYSTEM_THREAD(16, ro, Main);
|
||||
AMS_DEFINE_SYSTEM_THREAD(21, ro, Main);
|
||||
|
||||
/* gpio. */
|
||||
AMS_DEFINE_SYSTEM_THREAD(-12, gpio, InterruptHandler);
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace ams::ddsf {
|
|||
}
|
||||
|
||||
void DetachDevice() {
|
||||
AMS_ASSERT(this->IsOpen());
|
||||
/* AMS_ASSERT(this->IsOpen()); */
|
||||
m_device = nullptr;
|
||||
m_access_mode = AccessMode_None;
|
||||
AMS_ASSERT(!this->IsOpen());
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace ams::diag {
|
|||
|
||||
namespace impl {
|
||||
|
||||
constexpr inline size_t DebugPrintBufferLength = 0x80;
|
||||
constexpr inline size_t DebugPrintBufferLength = 0x100;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace ams::powctl {
|
|||
namespace {
|
||||
|
||||
impl::SessionImpl &GetOpenSessionImpl(Session &session) {
|
||||
AMS_ASSERT(session.has_session);
|
||||
/* AMS_ASSERT(session.has_session); */
|
||||
auto &impl = GetReference(session.impl_storage);
|
||||
AMS_ASSERT(impl.IsOpen());
|
||||
return impl;
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace ams::powctl {
|
|||
namespace {
|
||||
|
||||
impl::SessionImpl &GetOpenSessionImpl(Session &session) {
|
||||
AMS_ASSERT(session.has_session);
|
||||
/* AMS_ASSERT(session.has_session); */
|
||||
auto &impl = GetReference(session.impl_storage);
|
||||
AMS_ASSERT(impl.IsOpen());
|
||||
return impl;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
namespace ams {
|
||||
|
||||
constexpr inline size_t DefaultAlignment = alignof(max_align_t);
|
||||
constexpr inline size_t DefaultAlignment = /*alignof(max_align_t)*/ 0x8;
|
||||
|
||||
using AllocateFunction = void *(*)(size_t);
|
||||
using AllocateFunctionWithUserData = void *(*)(size_t, void *);
|
||||
|
|
Loading…
Add table
Reference in a new issue