retire BIOS_SEG and umap_bios

. readbios call is now a physical copy with range check in
	  the kernel call instead of BIOS_SEG+umap_bios
	. requires all access to physical memory in bios range to go
	  through sys_readbios
	. drivers/dpeth: wasn't using it
	. adjusted printer
This commit is contained in:
Ben Gras
2012-05-09 18:34:40 +02:00
parent b611e4c226
commit cfb2d7bca5
10 changed files with 23 additions and 80 deletions

View File

@@ -366,9 +366,8 @@ static int do_probe(void)
/* See if there is a printer at all. */
/* Get the base port for first printer. */
if(sys_vircopy(SELF, BIOS_SEG, LPT1_IO_PORT_ADDR,
SELF, D, (vir_bytes) &port_base, LPT1_IO_PORT_SIZE) != OK) {
panic("do_initialize: sys_vircopy failed");
if(sys_readbios(LPT1_IO_PORT_ADDR, &port_base, LPT1_IO_PORT_SIZE) != OK) {
panic("do_initialize: sys_readbios failed");
}
/* If the port is zero, the parallel port is not available at all. */