shithub: riscv

Download patch

ref: eaafcf2187fbfb8516fe2c017bba4c349693d367
parent: 2b4706b6624bfd0281fce6c384804bb8458dab09
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 7 19:23:18 EST 2014

pc64: bump segment limit to 64GB

--- a/sys/src/9/pc64/mem.h
+++ b/sys/src/9/pc64/mem.h
@@ -128,9 +128,9 @@
  */
 #define	PTEMAPMEM	(1024*1024)	
 #define	PTEPERTAB	(PTEMAPMEM/BY2PG)
-#define	SEGMAPSIZE	1984
+#define	SEGMAPSIZE	65536
 #define	SSEGMAPSIZE	16
-#define	PPN(x)		((x)&~((uintptr)BY2PG-1))
+#define	PPN(x)		((x)&~(BY2PG-1))
 
 /*
  *  physical MMU