Re: /boot/loader graphics support & extensibility

2008-02-23 Thread Oliver Fromme
Marcel Moolenaar wrote: > On Feb 22, 2008, at 12:39 PM, Oliver Fromme wrote: > > Yes, that'll work well for putting characters on the > > screen. But I don't think it is suitable for generic > > graphics operations, even (and especially) for drawing > > single pixels. > > True. What do you

Re: /boot/loader graphics support & extensibility

2008-02-22 Thread Marcel Moolenaar
On Feb 22, 2008, at 12:39 PM, Oliver Fromme wrote: At the same time the VGA driver is abstracted from any high-level details, like fonts or character sets. This means that it's easy to write an accelerated driver for some graphics hardware. You simply implement mode setting and bitblt and you're

Re: /boot/loader graphics support & extensibility

2008-02-22 Thread Oliver Fromme
Marcel Moolenaar wrote: > [Oliver explains bitblit, then Marcel explains bitblt.] OK, so we mean the same thing, bascially. > The higher lever TTY code simply calls bitblt with a > bit mask of the glyph to be printed and doesn't need to > know about the details of the display. As such, simple

Re: /boot/loader graphics support & extensibility

2008-02-21 Thread Marcel Moolenaar
On Feb 21, 2008, at 2:09 AM, Oliver Fromme wrote: Actually I don't plan to use a bitblit function at all, because it's not really feasible in standard VGA modes. What do you mean by that? Maybe we have different understandings what bitblit means. My understanding is that bitblit is a raster

Re: /boot/loader graphics support & extensibility

2008-02-21 Thread Oliver Fromme
Marcel Moolenaar wrote: > On Feb 20, 2008, at 12:08 PM, Oliver Fromme wrote: > > By the way: Will the standard i386 /boot/loader work > > on an EFI machine, or does it require a different loader > > binary? > > It needs a different loader. If you want to support EFI > the right way, it als

Re: /boot/loader graphics support & extensibility

2008-02-21 Thread Peter Jeremy
On Wed, Feb 20, 2008 at 01:44:42PM -0800, Marcel Moolenaar wrote: >control over everything. On top of that, we can't use any >code in the loader from the kernel, so whatever support we >add, we need to add to the kernel too. We can't re-use the same executable bytes but, with care, we should be ab

Re: /boot/loader graphics support & extensibility

2008-02-20 Thread Joshua Isom
On Feb 20, 2008, at 3:44 PM, Marcel Moolenaar wrote: That would be possible. But then there will be other problems. For example, lets say that the i386 loader decides to use 640x480 @4bit, and the sparc64 loader decides that 1152x900 @8bit is "best". The Forth code clearly needs a way to que

Re: /boot/loader graphics support & extensibility

2008-02-20 Thread Marcel Moolenaar
On Feb 20, 2008, at 12:08 PM, Oliver Fromme wrote: By the way: Will the standard i386 /boot/loader work on an EFI machine, or does it require a different loader binary? It needs a different loader. If you want to support EFI the right way, it also needs a different kernel -- one that respect

Re: /boot/loader graphics support & extensibility

2008-02-20 Thread Oliver Fromme
Marcel Moolenaar wrote: > Oliver Fromme wrote: > > I understand the "yes" part, but I do not understand the > > "see (a)/(b)" part. :-) What does the recursive reference > > mean? > > It means that they can be treated the same: Ah, OK. It's clear to me now. > > Just out of curiosity, w

Re: /boot/loader graphics support & extensibility

2008-02-20 Thread Marcel Moolenaar
On Feb 20, 2008, at 4:57 AM, Oliver Fromme wrote: Marcel Moolenaar wrote: Oliver Fromme wrote: It will not replace the current text menu ("beastie.4th"), so you can still use it on your Hercules monochrome or CGA machine or with serial console, of course. We can probably forget about those

Re: /boot/loader graphics support & extensibility

2008-02-20 Thread Oliver Fromme
Marcel Moolenaar wrote: > Oliver Fromme wrote: > > > It will not replace the current text menu ("beastie.4th"), > > so you can still use it on your Hercules monochrome or CGA > > machine or with serial console, of course. > > We can probably forget about those configurations. OK, maybe no

Re: /boot/loader graphics support & extensibility

2008-02-20 Thread Jonathan McKeown
On Tuesday 19 February 2008 22:27, Marcel Moolenaar wrote: > On Feb 19, 2008, at 11:43 AM, Oliver Fromme wrote: > > It will not replace the current text menu ("beastie.4th"), > > so you can still use it on your Hercules monochrome or CGA > > machine or with serial console, of course.

Re: /boot/loader graphics support & extensibility

2008-02-19 Thread Marcel Moolenaar
On Feb 19, 2008, at 11:43 AM, Oliver Fromme wrote: It will not replace the current text menu ("beastie.4th"), so you can still use it on your Hercules monochrome or CGA machine or with serial console, of course. We can probably forget about those configurations. This is a list of things tha

/boot/loader graphics support & extensibility

2008-02-19 Thread Oliver Fromme
Hi everyone, I'm currently working on adding graphics support to the boot loader. At the moment only the standard VGA mode 640 x 480 at 4 bit depth (16 colors) is supported, but support for other modes can be added in the future. Only i386 and amd64 machines with VGA BIOS are supported. Here's a