All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Knorr <kraxel@bytesex.org>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: Jared Rhine <jared@wordzoo.com>,
	xen-devel@lists.sourceforge.net, ian.pratt@cl.cam.ac.uk
Subject: Re: VGA extended text modes
Date: 28 Feb 2005 18:25:46 +0100	[thread overview]
Message-ID: <87wtss1tr9.fsf@bytesex.org> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D1E32BF@liverpoolst.ad.cl.cam.ac.uk>

"Ian Pratt" <m+Ian.Pratt@cl.cam.ac.uk> writes:

> However, how does dom0 set the extended text mode? I presume it doesn't
> use a BIOS call.

Linux uses vesa bios calls in the 16bit startup code, at least for the
stuff settable via vga="...".  Mode info is passed to 32bit code in
struct screen_info (see Documentation/i386/zero-page.txt).  Thats why
the vga argument needs special treatment by the boot loaders, they
can't just pass it on on the kernel command line like most other args.
They have to set a byte in the kernel's boot sector for that.  See
also "man rdev".  That is really old stuff from the days you have
booted your new linux kernel using "cat zImage > /dev/fd0 && reboot".

For just more text lines you can simply load a smaller font than the
default one somewhere in the dom0 boot scripts to have the same
effect.  That doesn't work for 132col txt modes or graphic modes (=>
vesafb) though.

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  reply	other threads:[~2005-02-28 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26 21:20 VGA extended text modes Ian Pratt
2005-02-28 17:25 ` Gerd Knorr [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-12-16  3:10 help adding extended text modes in Hypervisor Ian Pratt
2004-12-16  5:11 ` Edward Middleton
2005-01-02 14:20   ` Jared Rhine
2005-01-27 18:07     ` VGA extended text mode on XenCD not functional Jared Rhine
2005-02-26  8:39       ` VGA extended text modes Jared Rhine
2005-02-27  0:12         ` B.G. Bruce

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=87wtss1tr9.fsf@bytesex.org \
    --to=kraxel@bytesex.org \
    --cc=ian.pratt@cl.cam.ac.uk \
    --cc=jared@wordzoo.com \
    --cc=m+Ian.Pratt@cl.cam.ac.uk \
    --cc=xen-devel@lists.sourceforge.net \
    /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.