]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
refactor: extract x86 rdtsc from kernel/kaslr.c to HAL layer
authorTulio A M Mendes <[email protected]>
Thu, 12 Feb 2026 06:39:37 +0000 (03:39 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 02:44:55 +0000 (23:44 -0300)
commit5d477dd5c9c9b88854867c2c30d176ad17c2cec6
tree7b5ca80c23860ca8d2a730c51a14d6987087b80c
parent945f4be3858ce3c98d66e1fd6cd1ff51bab0bb69
refactor: extract x86 rdtsc from kernel/kaslr.c to HAL layer

Added hal_cpu_read_timestamp() to the HAL CPU API with x86
implementation using rdtsc and a fallback stub for other arches.

kernel/kaslr.c no longer contains x86 inline assembly — it calls
the generic HAL function for timestamp-based PRNG seeding.
include/hal/cpu.h
src/hal/x86/cpu.c
src/kernel/kaslr.c