]> 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)
commitf7dc0d93e37c0bdae9f6fba9a1b8e42684431732
tree8ad99c845f46d0e0f72239c1a6a3f9c5da499be5
parent5c92d86010c8d572c9bd183e9647ede175d0faf3
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