Browse Source

Improved debug messages

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
bbcdf38214
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/arch/i386/core/pci_io.c

+ 8
- 0
src/arch/i386/core/pci_io.c View File

@@ -165,6 +165,7 @@ static void find_pcibios16 ( void ) {
165 165
 	}
166 166
 
167 167
 	/* We have a PCI BIOS */
168
+	DBG ( "Found 16-bit PCI BIOS interface\n" );
168 169
 	have_pcibios = 1;
169 170
 	return;
170 171
 }
@@ -264,6 +265,8 @@ static unsigned long find_bios32_service ( struct bios32 * bios32,
264 265
 
265 266
 	switch ( return_code ) {
266 267
 	case BIOS32_SERVICE_PRESENT:
268
+		DBG ( "BIOS32 service %c%c%c%c present at %#x\n",
269
+		      PRINT_BIOS_SIG ( service ), ( address + entry ) );
267 270
 		return ( address + entry );
268 271
 	case BIOS32_SERVICE_NOT_PRESENT:
269 272
 		DBG ( "BIOS32 service %c%c%c%c : not present\n",
@@ -276,6 +279,10 @@ static unsigned long find_bios32_service ( struct bios32 * bios32,
276 279
 	}
277 280
 }
278 281
 
282
+/*
283
+ * Find the 32-bit PCI BIOS interface, if present.
284
+ *
285
+ */
279 286
 static void find_pcibios32 ( void ) {
280 287
 	struct bios32 *bios32;
281 288
 	uint32_t signature;
@@ -317,6 +324,7 @@ static void find_pcibios32 ( void ) {
317 324
 	}
318 325
 
319 326
 	/* We have a PCI BIOS */
327
+	DBG ( "Found 32-bit PCI BIOS interface at %#x\n", pcibios32_entry );
320 328
 	have_pcibios = 1;
321 329
 	return;
322 330
 }

Loading…
Cancel
Save