code: 9ferno

Download patch

ref: ad13cd2e2d20c627be567e0556547236828f6a9d
parent: 2072db1e93779cb38f5228024ae0ee6a0128670b
author: 9ferno <gophone2015@gmail.com>
date: Fri Aug 6 03:58:53 EDT 2021

fix ramscan()

--- a/os/pc64/memory.c
+++ b/os/pc64/memory.c
@@ -477,6 +477,7 @@
 	pat = 0x12345678UL;
 	for(; pa < top; pa += chunk){
 		DP("ramscan pa 0x%p\n", pa);
+		v = (uintptr*)pa;
 		attr = mtrrattr(pa, nil);
 		if(attr != nil && strcmp(attr, "wb") != 0)
 			goto Skip;