- Timestamp:
- Mar 9, 2007 10:54:02 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19353
- Location:
- trunk/src/VBox/Devices/PC/BIOS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/Makefile
r316 r1362 75 75 $(PATH_TARGET)/_rombios_.c: rombios.c logo.c apmbios.S 76 76 $(call MSG_L1,Precompiling $<,=> $@) 77 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(PATH_CURRENT)/.. - DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P $< > $@77 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(PATH_CURRENT)/.. -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P $< > $@ 78 78 79 79 # 2. compile to intermediate asm file. -
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r1342 r1362 125 125 #ifdef VBOX 126 126 #include "DevPcBios.h" 127 #include <VBox/version.h> 127 128 #endif 128 129 … … 212 213 #endif /* VBOX_SMP */ 213 214 215 #ifndef VBOX 214 216 #define PANIC_PORT 0x400 215 217 #define PANIC_PORT2 0x401 216 218 #define INFO_PORT 0x402 217 219 #define DEBUG_PORT 0x403 220 #else /* VBOX */ 221 /* Redirect INFO output to backdoor logging port. */ 222 #define PANIC_PORT 0x400 223 #define PANIC_PORT2 0x401 224 #define INFO_PORT 0x504 225 #define DEBUG_PORT 0x403 226 #endif /* VBOX */ 218 227 219 228 // define this if you want to make PCIBIOS working on a specific bridge only … … 954 963 #endif // BX_ELTORITO_BOOT 955 964 965 #ifdef VBOX 966 static char bios_cvs_version_string[] = "VirtualBox " VBOX_VERSION_STRING " built " __DATE__ " " __TIME__; 967 #define BIOS_COPYRIGHT_STRING "InnoTek VirtualBox BIOS" 968 #else /* !VBOX */ 956 969 static char bios_cvs_version_string[] = "$Revision: 1.176 $ $Date: 2006/12/30 17:13:17 $"; 957 970 958 #ifdef VBOX959 #define BIOS_COPYRIGHT_STRING "InnoTek VirtualBox BIOS"960 #else961 971 #define BIOS_COPYRIGHT_STRING "(c) 2002 MandrakeSoft S.A. Written by Kevin Lawton & the Bochs team." 962 #endif 972 #endif /* !VBOX */ 963 973 964 974 #define BIOS_PRINTF_HALT 1 … … 979 989 # define BX_DEBUG(format, p...) 980 990 #endif 991 #ifdef VBOX 992 #define BX_INFO(format, p...) bios_printf(BIOS_PRINTF_INFO, "BIOS: " format, ##p) 993 #else /* !VBOX */ 981 994 #define BX_INFO(format, p...) bios_printf(BIOS_PRINTF_INFO, format, ##p) 995 #endif /* !VBOX */ 982 996 #define BX_PANIC(format, p...) bios_printf(BIOS_PRINTF_DEBHALT, format, ##p) 983 997 … … 1949 1963 // lastdrive: 1 boot drive is the last one in boot sequence 1950 1964 1951 #ifdef VBOX1952 if (lastdrive == 1)1953 {1954 if (reason == 0)1955 {1956 BX_PANIC("No bootable medium found! System halted.\n");1957 }1958 else1959 {1960 BX_PANIC("Could not read from the boot medium! System halted.\n");1961 }1962 }1963 #else /* !VBOX */1964 1965 if (cdboot) 1966 #ifndef VBOX 1965 1967 bios_printf(BIOS_PRINTF_INFO | BIOS_PRINTF_SCREEN, "Boot from %s failed\n",drivetypes[2]); 1966 #ifdef VBOX 1968 #else /* VBOX */ 1969 BX_INFO("Boot from %s failed\n",drivetypes[2]); 1967 1970 else if (lanboot) 1968 bios_printf(BIOS_PRINTF_INFO | BIOS_PRINTF_SCREEN,"Boot from %s failed\n",drivetypes[3]);1971 BX_INFO("Boot from %s failed\n",drivetypes[3]); 1969 1972 #endif /* VBOX */ 1970 1973 else if (drive & 0x80) 1974 #ifndef VBOX 1971 1975 bios_printf(BIOS_PRINTF_INFO | BIOS_PRINTF_SCREEN, "Boot from %s %d failed\n", drivetypes[1],drivenum); 1976 #else /* VBOX */ 1977 BX_INFO("Boot from %s %d failed\n", drivetypes[1],drivenum); 1978 #endif /* VBOX */ 1972 1979 else 1980 #ifndef VBOX 1973 1981 bios_printf(BIOS_PRINTF_INFO | BIOS_PRINTF_SCREEN, "Boot from %s %d failed\n", drivetypes[0],drivenum); 1982 #else /* VBOX */ 1983 BX_INFO("Boot from %s %d failed\n", drivetypes[0],drivenum); 1984 #endif /* VBOX */ 1974 1985 1975 1986 if (lastdrive==1) { 1976 1987 if (reason==0) 1988 #ifndef VBOX 1977 1989 BX_PANIC("Not a bootable disk\n"); 1990 #else /* VBOX */ 1991 BX_PANIC("No bootable medium found! System halted.\n"); 1992 #endif /* VBOX */ 1978 1993 else 1994 #ifndef VBOX 1979 1995 BX_PANIC("Could not read the boot disk\n"); 1996 #else /* VBOX */ 1997 BX_PANIC("Could not read from the boot medium! System halted.\n"); 1998 #endif /* VBOX */ 1980 1999 } 1981 #endif /* !VBOX */1982 2000 } 1983 2001 … … 1992 2010 #ifndef VBOX 1993 2011 bios_printf(BIOS_PRINTF_SCREEN | BIOS_PRINTF_INFO, "CDROM boot failure code : %04x\n",code); 1994 #endif /* !VBOX */ 2012 #else /* VBOX */ 2013 BX_INFO("CDROM boot failure code : %04x\n",code); 2014 #endif /* VBOX */ 1995 2015 1996 2016 return; … … 2392 2412 switch (translation) { 2393 2413 case ATA_TRANSLATION_NONE: 2414 #ifndef VBOX 2394 2415 BX_INFO("none"); 2416 #else /* VBOX */ 2417 bios_printf(BIOS_PRINTF_INFO, "none"); 2418 #endif /* VBOX */ 2395 2419 break; 2396 2420 case ATA_TRANSLATION_LBA: 2421 #ifndef VBOX 2397 2422 BX_INFO("lba"); 2423 #else /* VBOX */ 2424 bios_printf(BIOS_PRINTF_INFO, "lba"); 2425 #endif /* VBOX */ 2398 2426 break; 2399 2427 case ATA_TRANSLATION_LARGE: 2428 #ifndef VBOX 2400 2429 BX_INFO("large"); 2430 #else /* VBOX */ 2431 bios_printf(BIOS_PRINTF_INFO, "large"); 2432 #endif /* VBOX */ 2401 2433 break; 2402 2434 case ATA_TRANSLATION_RECHS: 2435 #ifndef VBOX 2403 2436 BX_INFO("r-echs"); 2437 #else /* VBOX */ 2438 bios_printf(BIOS_PRINTF_INFO, "r-echs"); 2439 #endif /* VBOX */ 2404 2440 break; 2405 2441 } … … 2438 2474 // clip to 1024 cylinders in lchs 2439 2475 if (cylinders > 1024) cylinders=1024; 2476 #ifndef VBOX 2440 2477 BX_INFO(" LCHS=%d/%d/%d\n", cylinders, heads, spt); 2478 #else /* VBOX */ 2479 bios_printf(BIOS_PRINTF_INFO, " LCHS=%d/%d/%d\n", cylinders, heads, spt); 2480 #endif /* VBOX */ 2441 2481 2442 2482 write_word(ebda_seg,&EbdaData->ata.devices[device].lchs.heads, heads);
Note:
See TracChangeset
for help on using the changeset viewer.