[SeaBIOS] [PATCH 2/4] Check if we run already and abort if needed.

Christian Gmeiner christian.gmeiner at gmail.com
Fri Aug 31 15:36:45 CEST 2012


Every other vbios impl in seabios does this so we should
do it too.
Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
 vgasrc/geodevga.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c
index c634f79..f7fd895 100644
--- a/vgasrc/geodevga.c
+++ b/vgasrc/geodevga.c
@@ -345,6 +345,9 @@ int geodevga_init(void)
         dprintf(1,"GEODEVGA_INIT legacyio_check=0x%x\n",ret);
     }

+    if (GET_GLOBAL(HaveRunInit))
+        return 0;
+
     // Updated timings from geode datasheets, table 6-53 in particular
     static u8 *new_crtc[] VAR16 = {
         geode_crtc_01, geode_crtc_01, geode_crtc_03, geode_crtc_03,
-- 
1.7.11.rc2.5.g68f532f




More information about the SeaBIOS mailing list