From f37f5d86b74870e878f69bd41a3c70a59c4ce1c1 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 29 Apr 2021 15:01:54 +0200 Subject: Debug memory --- src/drivers/memtext.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/drivers/memtext.cc') diff --git a/src/drivers/memtext.cc b/src/drivers/memtext.cc index b5371b1..f010271 100644 --- a/src/drivers/memtext.cc +++ b/src/drivers/memtext.cc @@ -4,13 +4,12 @@ #include "libs/string.hpp" - char memtext_buffer[MEMTEXT_BUFFER_SIZE]; u64 memtext_x=0; void memtext_init(){ - PAGING_MAP2_RANGE(MEMTEXT_ADDR_LOCATION,0x0,8); - u64* p_addr=(u64*)MEMTEXT_ADDR_LOCATION; + PAGE_RMAP(MEMTEXT_ADDR_LOCATION,8); + u64* p_addr=(u64*)VIRT(MEMTEXT_ADDR_LOCATION); *p_addr=(u64)memtext_buffer; // Cleaning buffer -- cgit v1.2.3