All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akio Takebe <takebe_akio@jp.fujitsu.com>
To: Sebastian Herbszt <herbszt@gmx.de>
Cc: bochs-developers@lists.sourceforge.net,
	xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [Bochs-developers] [Patch] [BIOS] support BCV for rombios
Date: Thu, 18 Dec 2008 15:17:50 +0900	[thread overview]
Message-ID: <4949EB0E.80902@jp.fujitsu.com> (raw)
In-Reply-To: <049E3278669E4B7BAD0653C10B0C5731@FSCPC>

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

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@jp.fujitsu.com>
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>

Best Regards,

Akio Takebe

[-- Attachment #2: bcv_bochs.2.patch --]
[-- Type: text/x-diff, Size: 1219 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

      reply	other threads:[~2008-12-18  6:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 11:35 [Patch] [BIOS] support BCV for rombios Akio Takebe
2008-12-11  0:02 ` Sebastian Herbszt
2008-12-11  4:57   ` Michael Brown
2008-12-11  5:55     ` [Bochs-developers] " Akio Takebe
2008-12-11  6:14   ` Akio Takebe
2008-12-17 20:59     ` Sebastian Herbszt
2008-12-18  6:17       ` Akio Takebe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4949EB0E.80902@jp.fujitsu.com \
    --to=takebe_akio@jp.fujitsu.com \
    --cc=bochs-developers@lists.sourceforge.net \
    --cc=herbszt@gmx.de \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.