mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
kernel: Add support for CFI (#2839)
Add basic support for the CFI value being passed in X18 since 11.0.0 by the official kernel. We do not implement any random generator atm in the kernel and as such the KSystemControl.GenerateRandom function is stubbed
This commit is contained in:
parent
8268ec6cfc
commit
46a850c547
2 changed files with 7 additions and 0 deletions
|
@ -187,6 +187,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
|||
|
||||
if (is64Bits)
|
||||
{
|
||||
Context.SetX(18, KSystemControl.GenerateRandom() | 1);
|
||||
Context.SetX(31, stackTop);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue