Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-15 Thread Kevin O'Connor
On Mon, Feb 15, 2016 at 08:43:18AM +0200, Michael S. Tsirkin wrote: > On Mon, Feb 15, 2016 at 01:07:09AM +, Michael Brown wrote: > > On 14/02/16 19:52, Michael S. Tsirkin wrote: > > >On Sun, Feb 14, 2016 at 05:36:38PM +, Michael Brown wrote: > > >>On 14/02/16 15:53, Michael S. Tsirkin wrote

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 01:07:09AM +, Michael Brown wrote: > On 14/02/16 19:52, Michael S. Tsirkin wrote: > >On Sun, Feb 14, 2016 at 05:36:38PM +, Michael Brown wrote: > >>On 14/02/16 15:53, Michael S. Tsirkin wrote: > >>>do you think %DS should be zeroed when NBP is called then? > >> > >>N

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael Brown
On 14/02/16 19:52, Michael S. Tsirkin wrote: On Sun, Feb 14, 2016 at 05:36:38PM +, Michael Brown wrote: On 14/02/16 15:53, Michael S. Tsirkin wrote: do you think %DS should be zeroed when NBP is called then? Not according to the PXE spec. As far as I can tell, the initial value of %ds is

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael S. Tsirkin
On Sun, Feb 14, 2016 at 05:36:38PM +, Michael Brown wrote: > On 14/02/16 15:53, Michael S. Tsirkin wrote: > >>That's for execution of a PXE NBP, rather than a (SAN-booted) disk boot > >>sector. > > > >I actually thought the initial post was about iPXE calling NBP (starting > >at location 07C00h

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael Brown
On 14/02/16 15:53, Michael S. Tsirkin wrote: That's for execution of a PXE NBP, rather than a (SAN-booted) disk boot sector. I actually thought the initial post was about iPXE calling NBP (starting at location 07C00h) with a non-zero DS, not about booting from disk. The initial post mentioned

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael S. Tsirkin
On Sun, Feb 14, 2016 at 03:40:51PM +, Michael Brown wrote: > On 14/02/16 15:26, Michael S. Tsirkin wrote: > >>I'm not aware of any standard describing the content of %ds when jumping to > >>a boot sector at :7c00. Every boot sector that I have encountered > >>explicitly initialises %ds (an

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael Brown
On 14/02/16 15:26, Michael S. Tsirkin wrote: I'm not aware of any standard describing the content of %ds when jumping to a boot sector at :7c00. Every boot sector that I have encountered explicitly initialises %ds (and %es, and %ss:%sp) to known values. Sounds reasonable wrt %ds, but I th

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael S. Tsirkin
On Sun, Feb 14, 2016 at 12:41:31PM +, Michael Brown wrote: > On 14/02/16 10:52, Victor Kaplansky wrote: > >I've created a boot-sector which works just fine when loaded > >directly from BIOS, but doesn't work when loaded by ipxe: > > > >0: b8 ad demovax,0xdead >

[SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Victor Kaplansky
Hi, I've created a boot-sector which works just fine when loaded directly from BIOS, but doesn't work when loaded by ipxe: 0: b8 ad demovax,0xdead 3: a3 10 7cmovds:0x7c10,ax 0xdead is not written to :7c10. The reason is that BI

Re: [SeaBIOS] ipxe/seabios: segment register initialization

2016-02-14 Thread Michael Brown
On 14/02/16 10:52, Victor Kaplansky wrote: I've created a boot-sector which works just fine when loaded directly from BIOS, but doesn't work when loaded by ipxe: 0: b8 ad demovax,0xdead 3: a3 10 7cmovds:0x7c10,ax 0xdead is not