WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] Re: [Bochs-developers] [Patch] [BIOS] support BCV for rombio

To: Sebastian Herbszt <herbszt@xxxxxx>
Subject: [Xen-devel] Re: [Bochs-developers] [Patch] [BIOS] support BCV for rombios
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: 2008年12月18日 15:17:50 +0900
Cc: bochs-developers@xxxxxxxxxxxxxxxxxxxxx, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2008年12月17日 22:18:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <049E3278669E4B7BAD0653C10B0C5731@FSCPC>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <0C959291A7343takebe_akio@xxxxxxxxxxxxxx> <BDF02097EE37479DB058D43E9F363B78@FSCPC> <15C95B57B24361takebe_akio@xxxxxxxxxxxxxx> <049E3278669E4B7BAD0653C10B0C5731@FSCPC>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.18 (X11/20081119)
Sebastian Herbszt wrote:
Akio Takebe wrote:
Hi,
+ /* jump to BCV function entry pointer */
+ mov bp, sp ;; Call ROM BCV routine using seg:off on stack
+ db 0xff ;; call_far ss:[bp+0]
+ db 0x5e
+ db 0
+ cli ;; In case expansion ROM BIOS turns IF on
+ add sp, #2 ;; Pop offset value
+ pop cx ;; Pop seg value (restore CX)
+ ja no_bev
ja? not jmp?
Oops. yes jmp.
Can you please resend a fixed version?
Thanks
Sebastian
Sorry, and thank you for your review. I updeted our patch.
Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Best Regards,
Akio Takebe
Index: bios/rombios.c
===================================================================
RCS file: /cvsroot/bochs/bochs/bios/rombios.c,v
retrieving revision 1.222
diff -u -r1.222 rombios.c
--- bios/rombios.c 15 Dec 2008 06:05:52 -0000 1.222
+++ bios/rombios.c 18 Dec 2008 06:15:52 -0000
@@ -10251,6 +10251,30 @@
 mov ax, 2[bx]
 cmp ax, #0x506e
 jne no_bev
+
+ mov ax, 0x16[bx] ;; 0x16 is the offset of Boot Connection Vector
+ cmp ax, #0x0000
+ je no_bcv
+
+ ;; Option ROM has BCV. Run it now.
+ push cx ;; Push seg
+ push ax ;; Push offset
+
+ ;; Point ES:DI at "$PnP", which tells the ROM that we are a PnP BIOS.
+ mov bx, #0xf000
+ mov es, bx
+ lea di, pnp_string
+ /* jump to BCV function entry pointer */
+ mov bp, sp ;; Call ROM BCV routine using seg:off on stack
+ db 0xff ;; call_far ss:[bp+0]
+ db 0x5e
+ db 0
+ cli ;; In case expansion ROM BIOS turns IF on
+ add sp, #2 ;; Pop offset value
+ pop cx ;; Pop seg value (restore CX)
+ jmp no_bev
+
+no_bcv:
 mov ax, 0x1a[bx] ;; 0x1A is also the offset into the expansion header of...
 cmp ax, #0x0000 ;; the Bootstrap Entry Vector, or zero if there is none.
 je no_bev
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Building GPLPV drivers? , Todd Deshane
Next by Date: [Xen-devel] [PATCH] ia64 mini-os compilation fix (FWD:[[Xen-ia64-devel] Re: MiniOS on ia64]) , Isaku Yamahata
Previous by Thread: [Xen-devel] Re: [Bochs-developers] [Patch] [BIOS] support BCV for rombios , Akio Takebe
Next by Thread: Re: [PATCH] fix ia64 breakage with PHYSDEVOP_pirq_eoi_mfn (was Re: [Xen-devel] [PATCH 2/2] linux/x86: use shared page indicating the need for an EOI notification) , Jan Beulich
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /