diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-03-08 10:56:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-03-08 10:56:19 -0600 |
commit | f4ba8bef4dfab0cc3f551ed36141b973e29886f6 (patch) | |
tree | 53b22394688976d0dc0142b6a1dd410a24008211 /nuttx/arch/x86 | |
parent | f2957cf0bbfceaab22d53f82e1f726add63b8eb4 (diff) | |
download | nuttx-f4ba8bef4dfab0cc3f551ed36141b973e29886f6.tar.gz nuttx-f4ba8bef4dfab0cc3f551ed36141b973e29886f6.tar.bz2 nuttx-f4ba8bef4dfab0cc3f551ed36141b973e29886f6.zip |
QEMU i486: Minor updates to VGA driver
Diffstat (limited to 'nuttx/arch/x86')
-rw-r--r-- | nuttx/arch/x86/src/qemu/Kconfig | 6 | ||||
-rw-r--r-- | nuttx/arch/x86/src/qemu/qemu_vga.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/arch/x86/src/qemu/Kconfig b/nuttx/arch/x86/src/qemu/Kconfig index 96e57bbb3..64933646c 100644 --- a/nuttx/arch/x86/src/qemu/Kconfig +++ b/nuttx/arch/x86/src/qemu/Kconfig @@ -19,4 +19,10 @@ config QEMU_VGA ---help--- Enable support for the QEMU VGA. See qemu_vga.h for interfaces. + NOTE: This VGA driver exports a character driver that can be used + to write into the VGA framebuffer. It does *NOT* support a NuttX + framebuffer interfaces and, hence, cannot be used with the NuttX + graphics subsystem. Such a conversion to the standard NuttX + framebuffer interface would, however, not be a big job. + endif diff --git a/nuttx/arch/x86/src/qemu/qemu_vga.c b/nuttx/arch/x86/src/qemu/qemu_vga.c index 0032b521a..f7b459bc1 100644 --- a/nuttx/arch/x86/src/qemu/qemu_vga.c +++ b/nuttx/arch/x86/src/qemu/qemu_vga.c @@ -458,6 +458,9 @@ static off_t vga_seek(FAR struct file *filp, off_t offset, int whence) case SEEK_END: /* From the end of the file */ newpos = (VGA_FBSIZE - 1) - offset; break; + + default: + return g_curpos; } /* Make sure that the new cursor position lies within the frame buffer */ |