From: Akio Takebe Subject: Re: [Bochs-developers] [Patch] [BIOS] support BCV for rombios Date: Thu, 11 Dec 2008 15:14:16 +0900 Message-ID: <15C95B57B24361takebe_akio@jp.fujitsu.com> References: <0C959291A7343takebe_akio@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Sebastian Herbszt , xen-devel , bochs-developers@lists.sourceforge.net Cc: Akio Takebe List-Id: xen-devel@lists.xenproject.org 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. >> + 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 > Best Regards, Akio Takebe