Skip to contentSkip to conversation

Enable Option ROM write access

PATCH In review Akio Takebe 1 participant 2 messages Dec 25, 2008 – Dec 26, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable Option ROM write access

Hi,

This patch is enabling write access during rom_scan.

Best Regards,

Akio Takebe

tools/firmware/rombios/rombios.c +2 -0
diff -r e2f36d066b7b tools/firmware/rombios/rombios.c
@@ -11019,7 +11019,9 @@
 
   mov  cx, #0xc800  ;; init option roms
   mov  ax, #0xe000
+  call _enable_rom_write_access
   call rom_scan
+  call _disable_rom_write_access
 
 #if BX_ELTORITO_BOOT
   call _interactive_bootkey

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 5 lines · Akio Takebe

Hi,

This patch is enabling write access during rom_scan.

I think this patch is better than the previous one.

Best Regards,

Akio Takebe

tools/firmware/rombios/rombios.c +1 -2
diff -r e2f36d066b7b tools/firmware/rombios/rombios.c
@@ -11008,11 +11008,9 @@
 #endif // BX_ELTORITO_BOOT
 
 #ifdef HVMASSIST
-  call _enable_rom_write_access
   call _clobber_entry_point
   call _copy_e820_table
   call smbios_init
-  call _disable_rom_write_access
 #endif
 
   call _init_boot_vectors
@@ -11020,6 +11018,7 @@
   mov  cx, #0xc800  ;; init option roms
   mov  ax, #0xe000
   call rom_scan
+  call _disable_rom_write_access
 
 #if BX_ELTORITO_BOOT
   call _interactive_bootkey

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel