This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Software interrupt
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Antoine dot Amirault at esial dot uhp-nancy dot fr
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 28 Feb 2008 21:18:46 +0100
- Subject: Re: [ECOS] Software interrupt
- References: <20080228210144.4pk4awari84000go@venus.esial.uhp-nancy.fr>
On Thu, Feb 28, 2008 at 09:01:44PM +0100, Antoine.Amirault@esial.uhp-nancy.fr wrote:
> Hi!
>
> I'm trying to write on the VGA buffer of a PC at the 0xa0000 address on
> graphical mode (and not text).
>
> I wrote a C program using interruption in ASM, trying to switch into
> graphical mode :
>
> asm volatile ( " movl $0x0013,%eax; int $0x10; " )
>
> But apparently, it doesn't work.
> I think it's because the int mnemonic hasn't any effect.
>
> Do you know how to use software interrupt under eCos (with or without
> the HAL)?
>
> Or do you know another way to write something on a screen by writing on
> the video buffer?
> I've managed to print some characters by writing directly in the text
> buffer at the 0xb8000 address, but it doesn't work for the video buffer.
>
> In summary, is there another way to emit software interruption ?
Is this to do with real and protected mode? I no nothing about this,
but there has been some discussion about similar things in the
past. So check the email archive. But i think the processor is in the
wrong mode to be able to call the BIOS.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss