git: 9front

Download patch

ref: 7e87c3f791a92346dc2105db95f834178291ce1b
parent: 3c6c6fe7ff64163afe7f301b03f6210110645229
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Wed Jun 20 21:55:56 EDT 2012

e820: check for newer *e820= variable (old e820= might get removed in the future)

--- a/sys/src/9/pc/memory.c
+++ b/sys/src/9/pc/memory.c
@@ -650,8 +650,9 @@
 	int i;
 
 	/* passed by bootloader */
-	if((s = getconf("e820")) == nil)
-		return -1;
+	if((s = getconf("*e820")) == nil)
+		if((s = getconf("e820")) == nil)
+			return -1;
 	for(nemap = 0; nemap < nelem(emap); nemap++){
 		if(*s == 0)
 			break;
--