From: Helge Hafting <helgehaf@aitel.hist.no>
To: Kendall Bennett <KendallB@scitechsoft.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: VESA FBconsole driver?
Date: Fri, 14 Mar 2003 11:15:35 +0100 [thread overview]
Message-ID: <3E71ABC7.90500@aitel.hist.no> (raw)
In-Reply-To: 3E70A68F.1935.AF1549@localhost
Kendall Bennett wrote:
> Why is it ugly? IMHO it is very much needed, as it would provide a
> mechanism for the kernel to be able to properly restore the screen
> if a user land program goes astray.
First - the bios isn't always able to fix the screen - the program may
have programmed the video hardware in odd ways the bios don't know
about. Bioses aren't a magic fix.
Second, the proper way to do this is for the video driver to fix it up,
using more efficient code that runs under linux without special
consideration because it was written for that case.
> More tricks like what? All we need is the ability to call the BIOS and
> have it execute the necessary real mode code, just like we do on ia32
> machines in user land.
Ability to call the bios in real mode is no simple feat. And the bios
may screw up. That doesn't matter for a user program, it just crashes
and don't damage anything else. You don't want the kernel to crash -
ever. A broken bios is _no_ excuse here.
Bioses are generally too limited. They make a lot of stupid
assumptions, thinking it is ok to use legacy vga registers and things
like that. Consider a machine with two or more video cards. Linux
handles that fine, but a bios? Or really two bioses, one for each card?
Imagine a dual processor where one one processor executes one bios and
the other processor another bios , each trying to set up one card.
Somehow I think this won't work too well.
As for userspace tricks - userspace can do all sorts of nifty things
like actually open a file and read it. For example a file
with the latest list of bios oddities to work around.
Helge Hafting
next prev parent reply other threads:[~2003-03-14 10:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-12 16:07 "Cross" compilation for s390x Pete Zaitcev
2003-03-12 19:07 ` VESA FBconsole driver? Kendall Bennett
2003-03-13 21:31 ` Kendall Bennett
2003-03-13 22:11 ` Petr Vandrovec
2003-03-13 23:41 ` Kendall Bennett
2003-03-14 10:14 ` Geert Uytterhoeven
2003-03-14 18:25 ` Kendall Bennett
2003-03-14 10:21 ` Helge Hafting
2003-03-13 22:24 ` Gerd Knorr
2003-03-13 23:41 ` Kendall Bennett
2003-03-14 10:15 ` Helge Hafting [this message]
2003-03-14 18:25 ` Kendall Bennett
2003-03-15 18:04 ` Helge Hafting
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=3E71ABC7.90500@aitel.hist.no \
--to=helgehaf@aitel.hist.no \
--cc=KendallB@scitechsoft.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox