Ver código fonte

Plan 9 from Bell Labs 2014-03-07

David du Colombier 10 anos atrás
pai
commit
69fcc64c80
2 arquivos alterados com 8 adições e 2 exclusões
  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))
 		if (!(b & Sysctla20ena))
 			outb(Sysctla, (b & ~Sysctlreset) | Sysctla20ena);
 			outb(Sysctla, (b & ~Sysctlreset) | Sysctla20ena);
 	}
 	}
-	if (!isa20on())
+	if (!isa20on()){
 		print("a20 didn't come on!\n");
 		print("a20 didn't come on!\n");
+		for(;;)
+			;
+	}
 }
 }
 
 
 void
 void

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

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