mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-28 04:07:32 +01:00
AT_SYSINFO points to the vsyscall location that the kernel provides. This AUXV value isn't used on x86-64. If we have VDSO installed then we can use the one provided from there, otherwise we need to provide a code page. It seems like some behaviour changed with glibc provided in Ubuntu 22.10 that it now requires AT_SYSINFO. Fixes wine 7.0 execution inside the Ubuntu 22.10 rootfs.
12 lines
363 B
C++
12 lines
363 B
C++
#pragma once
|
|
#include <FEXCore/IR/IR.h>
|
|
|
|
namespace FEX::VDSO {
|
|
using MapperFn = std::function<void *(void *addr, size_t length, int prot, int flags, int fd, off_t offset)>;
|
|
void* LoadVDSOThunks(bool Is64Bit, MapperFn Mapper);
|
|
|
|
uint64_t GetVSyscallEntry(const void* VDSOBase);
|
|
|
|
std::vector<FEXCore::IR::ThunkDefinition> const& GetVDSOThunkDefinitions();
|
|
}
|