Parcourir la source

Improved debug messages

tags/v0.9.3
Michael Brown il y a 19 ans
Parent
révision
bbcdf38214
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8
    0
      src/arch/i386/core/pci_io.c

+ 8
- 0
src/arch/i386/core/pci_io.c Voir le fichier

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

Chargement…
Annuler
Enregistrer