fix: correct calculating system shared memory size

do not exceed system memory region size when region is available

Related-To: HSD-18038050680
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-04-24 11:46:02 +00:00
committed by Compute-Runtime-Automation
parent 4be3230051
commit 25bed07989
6 changed files with 46 additions and 4 deletions

View File

@@ -193,5 +193,8 @@ int closedir(DIR *dir) {
off_t lseek(int fd, off_t offset, int whence) noexcept {
return ::lseek(fd, offset, whence);
}
long sysconf(int name) {
return ::sysconf(name);
}
} // namespace SysCalls
} // namespace NEO