ntdll/tests: Add ARM64 support for map protection tests.

This commit is contained in:
André Hentschel 2015-08-09 20:10:37 +02:00 committed by Alexandre Julliard
parent ef783d62cc
commit c4cd981a61
1 changed files with 2 additions and 0 deletions

View File

@ -1442,6 +1442,8 @@ static void test_mapprotection(void)
*(unsigned char*)addr = 0xc3; /* lret ... in both i386 and x86_64 */
#elif defined(__arm__)
*(unsigned long*)addr = 0xe12fff1e; /* bx lr */
#elif defined(__aarch64__)
*(unsigned long*)addr = 0xd65f03c0; /* ret */
#else
ok(0, "Add a return opcode for your architecture or expect a crash in this test\n");
#endif