From 5b366121157051691dd1c89d80f6a405f9430f4a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 12 Jan 2024 00:06:41 -0500 Subject: kernel/amd64: vas: Add more documentation Signed-off-by: Ian Moffett --- sys/include/arch/amd64/vas.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys/include/arch') diff --git a/sys/include/arch/amd64/vas.h b/sys/include/arch/amd64/vas.h index 347bf92..b8eef89 100644 --- a/sys/include/arch/amd64/vas.h +++ b/sys/include/arch/amd64/vas.h @@ -33,6 +33,17 @@ #include #include +/* + * VAS structure - describes a virtual address space + * + * XXX: This structure shall exist per-process. + * + * TODO: As of now, VAS operations are *not* serialized!!! + * This must change once Hyra becomes multi-threaded + * or things will go wrong *very* quickly. Ensure of + * this or you will suffer the consequences of undefined + * behavior and you will not like it! + */ struct vas { size_t cr3_flags; /* CR3 flags */ uintptr_t top_level; /* PML5 if `use_l5_paging' true, otherwise PML4 */ -- cgit v1.2.3