2022-05-21 19:05:39 +00:00
|
|
|
# Patches for fio on SerenityOS
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
## `0001-Remove-non-existent-header-sys-ipc.h.patch`
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
Remove non existent header sys/ipc.h
|
2022-05-21 19:05:39 +00:00
|
|
|
|
|
|
|
Serenity doesn't currently have this header, and
|
|
|
|
it doesn't appear to be needed on our platform so
|
|
|
|
remove it for the port.
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
## `0002-Add-SerenityOS-platform-support.patch`
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
Add SerenityOS platform support
|
2022-05-21 19:05:39 +00:00
|
|
|
|
|
|
|
`fio` abstracts individual operating system support out into to an
|
|
|
|
`os/os-<name>.h` header where you can select which platform features
|
|
|
|
are available and implement missing function stubs for our operating
|
|
|
|
system.
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-05-21 19:05:39 +00:00
|
|
|
This patch implements basic OS support for Serenity just to get fio up
|
|
|
|
and running.
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
## `0003-Add-SerenityOS-support-to-configure.patch`
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
Add SerenityOS support to configure
|
2022-05-21 19:05:39 +00:00
|
|
|
|
|
|
|
This patch implements targetos detection for serenity, and also
|
|
|
|
disables shared memory support automatically for serenity, as it's not
|
|
|
|
currently supported.
|
2021-12-22 08:16:14 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
## `0004-Disable-rdtsc-support-for-serenity.patch`
|
2022-05-21 19:05:39 +00:00
|
|
|
|
2022-06-05 01:05:04 +00:00
|
|
|
Disable rdtsc support for serenity
|
2022-05-21 19:05:39 +00:00
|
|
|
|
|
|
|
This patch disables the function which uses `rdtsc` to get the current
|
|
|
|
clock time, as that instruction isn't allowed to be called from user
|
|
|
|
space by serenity.
|
2021-12-22 08:16:14 +00:00
|
|
|
|
|
|
|
If you did attempt to call it you would trip a segfault.
|
2022-05-21 19:05:39 +00:00
|
|
|
|