minor changes for testing, committing to merge in new update from restfulOS_main
@@ -210,10 +210,24 @@ pub extern "C" fn rust_main(multiboot_information_physical_address: usize) {
println!("initialization done!");
+ for num in range(16){
+ for num in range(32){
+
+
+ }
+
+ }
//interrupts::enable_interrupts(); //apparently this line is unecessary
println!("enabled interrupts!");
+ let bus_array = pci::PCI_BUSES.try().expect("PCI_BUSES not initialized");
+ let ref bus_zero = bus_array[0];
+ let slot_zero = bus_zero.connected_devices[0];
+ println!("pci config data for bus 0, slot 0: dev id - {:#x}, class code - {:#x}", slot_zero.device_id, slot_zero.class_code);
+ println!("pci config data {:#x}",pci::pci_config_read(0,0,0,0x0c));
+ println!("{:?}", bus_zero);
+ println!("{:?}", bus_array);
// create a second task to test context switching
if true {
