mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Fix SyscallTable::get to return proper table
PiperOrigin-RevId: 344236195 Change-Id: Ie370c1a771f1896c98ea387c0a84231a433c9d8c
This commit is contained in:
parent
510b5079ed
commit
f6247aad9d
|
@ -1519,7 +1519,7 @@ constexpr std::array kSyscallDataArm64 = {
|
||||||
#undef SYSCALLS_UNUSED
|
#undef SYSCALLS_UNUSED
|
||||||
|
|
||||||
SyscallTable SyscallTable::get(cpu::Architecture arch) {
|
SyscallTable SyscallTable::get(cpu::Architecture arch) {
|
||||||
switch (host_cpu::Architecture()) {
|
switch (arch) {
|
||||||
case cpu::kX8664:
|
case cpu::kX8664:
|
||||||
return SyscallTable(kSyscallDataX8664);
|
return SyscallTable(kSyscallDataX8664);
|
||||||
case cpu::kX86:
|
case cpu::kX86:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user