Re: RE : Re: RE : Re: x86 setup code rewrite in C - revised

2007-07-16 Thread H. Peter Anvin
Etienne Lorrain wrote: > BUGS: some implementations (including the original IBM PC) have a bug which > destroys BP > the Trident TVGA8900CL (BIOS dated 1992/9/8) clears DS to h when > scrolling in an SVGA mode (800x600 or higher) "When scrolling in an SVGA mode", sounds

RE : Re: RE : Re: x86 setup code rewrite in C - revised

2007-07-16 Thread Etienne Lorrain
--- "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: > - Does not save and restore %ds when printing a char on the screen (%ds > is > destroyed only when the content of the screen scroll - only for some > video cards) > >> %ds? Aren't you confusing it with the old bug which woul

Re: RE : Re: x86 setup code rewrite in C - revised

2007-07-13 Thread Linus Torvalds
On Fri, 13 Jul 2007, Etienne Lorrain wrote: > > > >> Also, I do not know if "m" is right in here: > > >> static inline u8 rdfs8(addr_t addr) > > >> { > > >> u8 v; > > >> asm("movb %%fs:%1,%0" : "=r" (v) : "m" (*(u8 *)addr)); > > >> return v; > > >> } > > > > The "m" is correct right there. >

Re: RE : Re: x86 setup code rewrite in C - revised

2007-07-13 Thread H. Peter Anvin
Etienne Lorrain wrote: > --- "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: >> Chuck Ebbert wrote: > > Wrong name. > Have fun, this code: - do not open the fast A20 gate before checking if the slow A20 gate is open or >> closed. >> >> As does the current code; this is highly inte

RE : Re: x86 setup code rewrite in C - revised

2007-07-13 Thread Etienne Lorrain
--- "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: > Chuck Ebbert wrote: Wrong name. > >> Have fun, this code: > >> - do not open the fast A20 gate before checking if the slow A20 gate is > >> open or > closed. > > As does the current code; this is highly intentional behaviour since > there ar