Idan Horowitz
a9764dabee
Kernel: Add helpers for rdrand and rdseed
2022-03-21 23:33:42 +01:00
James Mintram
3e3c632969
Kernel: Add an x86 include check+error in x86/ASM_Wrapper.h
2021-12-01 11:22:04 -08:00
Andrew Kaster
a92132e44a
Kernel: Resolve clang-tidy readability-implicit-bool-conversion warnings
...
... In files included from Kernel/Process.cpp and Kernel/Thread.cpp
2021-11-14 22:52:35 +01:00
Andreas Kling
249d6a490d
Kernel: Add read_gs_value() and write_gs_value()
...
Co-authored-by: Tom <tomut@yahoo.com>
2021-08-29 12:26:40 +02:00
Gunnar Beutner
9964c106ad
Kernel: Disambiguate instruction size for mov in read_gs_ptr
...
Previously we allowed using immediate values here which is ambiguous
as to which specific mov instruction the compiler should choose.
2021-08-11 12:34:47 +02:00
Gunnar Beutner
741ca5477c
Kernel: Fix {read,write}_gs_ptr() for 64-bit addresses
2021-07-18 17:31:13 +02:00
Gunnar Beutner
52f9aaa823
Kernel: Use the GS segment for the per-CPU struct
...
Right now we're using the FS segment for our per-CPU struct. On x86_64
there's an instruction to switch between a kernel and usermode GS
segment (swapgs) which we could use.
This patch doesn't update the rest of the code to use swapgs but it
prepares for that by using the GS segment instead of the FS segment.
2021-07-02 23:33:17 +02:00
Gunnar Beutner
f630299d49
Kernel: Add support for setting up a x86_64 GDT once in C++ land
2021-06-26 11:08:52 +02:00
Hendiadyoin1
7ca3d413f7
Kernel: Pull apart CPU.h
...
This does not add any functional changes
2021-06-24 00:38:23 +02:00