ams: basic support for compiling with gcc 16
This commit is contained in:
@@ -729,6 +729,9 @@ namespace ams::kern::arch::arm64 {
|
||||
}
|
||||
}
|
||||
MESOSPHERE_ASSERT(mapped_pages == num_pages);
|
||||
|
||||
/* TODO: Unused variable. */
|
||||
AMS_UNUSED(mapped_pages);
|
||||
|
||||
/* Perform what coalescing we can. */
|
||||
this->MergePages(orig_virt_addr, num_pages, page_list);
|
||||
|
||||
@@ -756,11 +756,13 @@ namespace ams::kern {
|
||||
case ams::svc::DebugException_UndefinedSystemCall:
|
||||
{
|
||||
MESOSPHERE_ASSERT(num_params >= 3);
|
||||
|
||||
info->info.exception.exception_address = params[1];
|
||||
|
||||
info->info.exception.exception_data_count = 1;
|
||||
info->info.exception.exception_data[0] = params[2];
|
||||
|
||||
/* Keep the compiler happy, even though the assert has us covered. */
|
||||
if (num_params >= 3) {
|
||||
info->info.exception.exception_address = params[1];
|
||||
info->info.exception.exception_data_count = 1;
|
||||
info->info.exception.exception_data[0] = params[2];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ams::svc::DebugException_DebuggerAttached:
|
||||
@@ -773,9 +775,12 @@ namespace ams::kern {
|
||||
case ams::svc::DebugException_UserBreak:
|
||||
{
|
||||
MESOSPHERE_ASSERT(num_params >= 2);
|
||||
|
||||
info->info.exception.exception_address = params[1];
|
||||
|
||||
|
||||
/* Keep the compiler happy, even though the assert has us covered. */
|
||||
if (num_params >= 2) {
|
||||
info->info.exception.exception_address = params[1];
|
||||
}
|
||||
|
||||
info->info.exception.exception_data_count = 0;
|
||||
for (size_t i = 2; i < num_params; ++i) {
|
||||
info->info.exception.exception_data[info->info.exception.exception_data_count++] = params[i];
|
||||
@@ -805,8 +810,11 @@ namespace ams::kern {
|
||||
default:
|
||||
{
|
||||
MESOSPHERE_ASSERT(num_params >= 2);
|
||||
|
||||
info->info.exception.exception_address = params[1];
|
||||
|
||||
/* Keep the compiler happy, even though the assert has us covered. */
|
||||
if (num_params >= 2) {
|
||||
info->info.exception.exception_address = params[1];
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user