Remove legacy boot monitor vars

This commit is contained in:
Arun Thomas
2011-09-16 20:10:47 +02:00
parent 46581e701a
commit cb54d96eec
8 changed files with 21 additions and 50 deletions
+3 -7
View File
@@ -37,8 +37,6 @@
#define SUB_PER_DRIVE (NR_PARTITIONS * NR_PARTITIONS)
#define NR_SUBDEVS (MAX_DRIVES * SUB_PER_DRIVE)
PRIVATE int pc_at = 1; /* What about PC XTs? */
/* Variables. */
PRIVATE struct wini { /* main drive struct, one entry per drive */
unsigned cylinders; /* number of cylinders */
@@ -466,11 +464,9 @@ PRIVATE void w_init()
reg86.u.w.bx = 0x55AA;
reg86.u.b.dl = drive_id;
if (pc_at) {
r= sys_int86(&reg86);
if (r != OK)
panic("BIOS call failed: %d", r);
}
r= sys_int86(&reg86);
if (r != OK)
panic("BIOS call failed: %d", r);
if (!(reg86.u.w.f & 0x0001) && reg86.u.w.bx == 0xAA55
&& (reg86.u.w.cx & 0x0001)) {
+3 -4
View File
@@ -950,7 +950,7 @@ tty_t *tp;
vid_port = bios_crtbase;
scr_width = bios_columns;
font_lines = bios_fontlines;
scr_lines = machine.vdu_ega ? bios_rows+1 : 25;
scr_lines = bios_rows+1;
if (color) {
vid_base = COLOR_BASE;
@@ -959,8 +959,8 @@ tty_t *tp;
vid_base = MONO_BASE;
vid_size = MONO_SIZE;
}
if (machine.vdu_ega) vid_size = EGA_SIZE;
wrap = ! machine.vdu_ega;
vid_size = EGA_SIZE;
wrap = 0;
console_memory = vm_map_phys(SELF, (void *) vid_base, vid_size);
@@ -1202,7 +1202,6 @@ message *m;
seq2[6].value= color ? 0x0E : 0x0A;
if (!machine.vdu_ega) return(ENOTTY);
result = ga_program(seq1); /* bring font memory into view */
if(sys_safecopyfrom(m->m_source, (cp_grant_id_t) m->IO_GRANT, 0,
-1
View File
@@ -838,7 +838,6 @@ PRIVATE void set_leds()
{
/* Set the LEDs on the caps, num, and scroll lock keys */
int s;
if (! machine.pc_at) return; /* PC/XT doesn't have LEDs */
kb_wait(); /* wait for buffer empty */
if ((s=sys_outb(KEYBD, LED_CODE)) != OK)