CD Driver Errors
Posted: Wed May 05, 2010 8:59 am
Before I say anything, I did not write this code, a person working with me on this OS did. He is from Germany so his english isn't so good. the words between the /* */ are his words, I did correct his spelling though.
/*
The picture should show the Class Id followed by the Device Id of all devices at the pci busses 0-256 and device number on each bus from 0-32.
The import part of the code is in the main file the for loop (l.151) and in the pci.cpp the pci_read_config_word (line 51) (the pciConfigReadWord in line 10. is from osdev but it shows the same result). May also important are the outl and inl methods above line 51.
Problem: It do not show any Mass_storage_control with the class code 0x01.
Maybe errors: The wrong offset.
*/
Also there is another weird error:
On a macbook pro 15" (running mac os x 10.6.3) this code triple faults both vmware fusion (Virtual CPU has enter a shutdown state) and qemu (See versions below)
On Midi Tower ATX 420W Netzteil, Front USB it does not crash qemu (See version below)
Qemu version for macbook pro:
QEMU PC emulator version 0.12.3, Copyright (c) 2003-2008 Fabrice Bellard
Qemu version for Midi Tower:
QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008 Fabrice Bellard
I believe that the problem may not be written properly considering that it crashes the macbook pro's version of qemu not the ubuntu 10.04.
Here is the url for the movie of the triple faulting in qemu and the project plus the screen shot of it "working" on ubuntu 10.04:
"Working" on ubuntu 10.04
FrostOS
Movie
/*
The picture should show the Class Id followed by the Device Id of all devices at the pci busses 0-256 and device number on each bus from 0-32.
The import part of the code is in the main file the for loop (l.151) and in the pci.cpp the pci_read_config_word (line 51) (the pciConfigReadWord in line 10. is from osdev but it shows the same result). May also important are the outl and inl methods above line 51.
Problem: It do not show any Mass_storage_control with the class code 0x01.
Maybe errors: The wrong offset.
*/
Also there is another weird error:
On a macbook pro 15" (running mac os x 10.6.3) this code triple faults both vmware fusion (Virtual CPU has enter a shutdown state) and qemu (See versions below)
On Midi Tower ATX 420W Netzteil, Front USB it does not crash qemu (See version below)
Qemu version for macbook pro:
QEMU PC emulator version 0.12.3, Copyright (c) 2003-2008 Fabrice Bellard
Qemu version for Midi Tower:
QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008 Fabrice Bellard
I believe that the problem may not be written properly considering that it crashes the macbook pro's version of qemu not the ubuntu 10.04.
Here is the url for the movie of the triple faulting in qemu and the project plus the screen shot of it "working" on ubuntu 10.04:
"Working" on ubuntu 10.04
FrostOS
Movie