Add TLS memory map

This commit is contained in:
Ryan Teal 2019-07-02 16:30:43 +01:00
parent 8c5a224af7
commit 67b2ee3ea5
No known key found for this signature in database
GPG Key ID: 8DBEE0F12C7E2D23

View File

@ -15,6 +15,9 @@ namespace core {
// Map stack memory
memory::Map(uc, 0x3000000, 0x1000000, "stack");
SetRegister(UC_ARM64_REG_SP, 0x3100000);
memory::Map(uc, 0x2000000, 0x1000, "tls");
SetRegister(UC_ARM64_REG_TPIDRRO_EL0, 0x2000000);
currentContext = this;
}