2002-08-14 Joel Sherrill <joel@OARcorp.com>

* start/start16.S: Per PR259, added code to test for video present
	before touching the adapter.  Eric Norum <eric.norum@usask.ca>
	tested this patch.
This commit is contained in:
Joel Sherrill
2002-08-14 22:43:10 +00:00
parent 2129ac821d
commit 37bb9bfd02
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2002-08-14 Joel Sherrill <joel@OARcorp.com>
* start/start16.S: Per PR259, added code to test for video present
before touching the adapter. Eric Norum <eric.norum@usask.ca>
tested this patch.
2002-08-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* console/ps2_mouse.c: Include <string.h> (for abort/exit).

View File

@@ -54,6 +54,11 @@ _start16:
#if defined(RTEMS_VIDEO_80x50)
movl $0x0040,%eax # use 32 bit constant to ensure 16 MSB=0
mov %ax,%es
movw %es:0x4a, %ax # get 16 bit number of columns
cmpw $0, %ax # or 0 if no video adapter
je 1f # if no video, skip touching it
/*---------------------------------------------------------------------+
| Switch VGA video to 80 lines x 50 columns mode. Has to be done before
| turning protected mode on since it uses BIOS int 10h (video) services.
@@ -71,6 +76,7 @@ _start16:
movw $0x0007, %cx
int $0x10
+1:
#endif /* RTEMS_VIDEO_80x50 */
/*---------------------------------------------------------------------+