shithub: riscv

Download patch

ref: fefc7b526da85c55d3cad66bfe8b565ac40f78d1
parent: bfbb68a71290a31d373756dc5ca8da54094875bd
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Feb 3 17:39:07 EST 2014

libmach: change mach pgsize back from 4K to 2MB for amd64

the Mach page size is used to calculate segment alignment. its
not the real effective page size used by the kernel.

this fixes acid.

--- a/sys/src/libmach/6.c
+++ b/sys/src/libmach/6.c
@@ -105,7 +105,7 @@
 	0,			/* link register */
 	"setSB",		/* static base register name (bogus anyways) */
 	0,			/* static base register value */
-	0x1000,			/* page size */
+	0x200000,		/* page size (for segment alignment) */
 	0xffffffff80110000ull,	/* kernel base */
 	0xffff800000000000ull,	/* kernel text mask */
 	0x00007ffffffff000ull,	/* user stack top */
--