mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 18:47:32 +01:00
Fixed incorrect types for svcBreak
svcBreak reason should be a u32, not a u64.
This commit is contained in:
parent
bc6939beaa
commit
a4412c8e22
@ -303,13 +303,13 @@ static ResultCode ArbitrateUnlock(VAddr mutex_addr) {
|
|||||||
|
|
||||||
struct BreakReason {
|
struct BreakReason {
|
||||||
union {
|
union {
|
||||||
u64 raw;
|
u32 raw;
|
||||||
BitField<31, 1, u64> dont_kill_application;
|
BitField<31, 1, u32> dont_kill_application;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Break program execution
|
/// Break program execution
|
||||||
static void Break(u64 reason, u64 info1, u64 info2) {
|
static void Break(u32 reason, u64 info1, u64 info2) {
|
||||||
BreakReason break_reason{reason};
|
BreakReason break_reason{reason};
|
||||||
if (break_reason.dont_kill_application) {
|
if (break_reason.dont_kill_application) {
|
||||||
LOG_ERROR(
|
LOG_ERROR(
|
||||||
|
@ -239,4 +239,9 @@ void SvcWrap() {
|
|||||||
func(Param(0), Param(1), Param(2));
|
func(Param(0), Param(1), Param(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <void func(u32, u64, u64)>
|
||||||
|
void SvcWrap() {
|
||||||
|
func((u32)(Param(0) & 0xFFFFFFFF), Param(1), Param(2));
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Kernel
|
} // namespace Kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user