mirror of
https://github.com/ptitSeb/box64.git
synced 2025-05-09 00:21:32 +08:00
Added handling of ARCH_GET_FS to arch_prctl
This commit is contained in:
parent
5494d417c0
commit
fbd9604dc1
@ -153,6 +153,9 @@ int my_arch_prctl(x64emu_t *emu, int code, void* addr)
|
||||
my_context->segtls[3].present = 1;
|
||||
pthread_setspecific(my_context->segtls[3].key, (void*)my_context->segtls[3].base);
|
||||
return 0;
|
||||
case ARCH_GET_FS:
|
||||
*(void**)addr = GetSegmentBase(emu->segs[_FS]);
|
||||
return 0;
|
||||
}
|
||||
// other are unsupported
|
||||
printf_log(LOG_INFO, "warning, call to unsupported arch_prctl(0x%x, %p)\n", code, addr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user