Browse Source

Plan 9 from Bell Labs 2014-03-07

David du Colombier 10 years ago
parent
commit
69fcc64c80
2 changed files with 8 additions and 2 deletions
  1. 4 1
      sys/src/9/pcboot/expand.c
  2. 4 1
      sys/src/9/pcboot/main.c

+ 4 - 1
sys/src/9/pcboot/expand.c

@@ -144,8 +144,11 @@ a20init(void)
 		if (!(b & Sysctla20ena))
 			outb(Sysctla, (b & ~Sysctlreset) | Sysctla20ena);
 	}
-	if (!isa20on())
+	if (!isa20on()){
 		print("a20 didn't come on!\n");
+		for(;;)
+			;
+	}
 }
 
 void

+ 4 - 1
sys/src/9/pcboot/main.c

@@ -109,8 +109,11 @@ a20init(void)
 	b = inb(Sysctla);
 	if (!(b & Sysctla20ena))
 		outb(Sysctla, (b & ~Sysctlreset) | Sysctla20ena);
-	if (!isa20on())
+	if (!isa20on()){
 		iprint("a20 didn't come on!\n");
+		for(;;)
+			;
+	}
 }
 
 void