删除一些日志

This commit is contained in:
fslongjin 2022-04-04 22:54:50 +08:00
parent d9c7ddec66
commit cac29db7c5
2 changed files with 2 additions and 1 deletions

View File

@ -271,6 +271,7 @@ void apic_local_apic_init()
*/ */
kdebug("All LVT Masked"); kdebug("All LVT Masked");
/*
// 获取TPR寄存器的值 // 获取TPR寄存器的值
__asm__ __volatile__("movq $0x808, %%rcx \n\t" __asm__ __volatile__("movq $0x808, %%rcx \n\t"
"rdmsr \n\t" "rdmsr \n\t"
@ -282,6 +283,7 @@ void apic_local_apic_init()
"rdmsr \n\t" "rdmsr \n\t"
: "=a"(eax), "=d"(edx)::"memory"); : "=a"(eax), "=d"(edx)::"memory");
kdebug("LVT_PPR=%#010x", eax); kdebug("LVT_PPR=%#010x", eax);
*/
} }
/** /**

View File

@ -449,7 +449,6 @@ void pci_init()
{ {
kinfo("[ pci device %d ] class code = %d\tsubclass=%d\tstatus=%#010lx\tcap_pointer=%#010lx", i, ptr->Class_code, ptr->SubClass, ptr->Status, ((struct pci_device_structure_general_device_t *)ptr)->Capabilities_Pointer); kinfo("[ pci device %d ] class code = %d\tsubclass=%d\tstatus=%#010lx\tcap_pointer=%#010lx", i, ptr->Class_code, ptr->SubClass, ptr->Status, ((struct pci_device_structure_general_device_t *)ptr)->Capabilities_Pointer);
uint32_t tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, ((struct pci_device_structure_general_device_t *)ptr)->Capabilities_Pointer); uint32_t tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, ((struct pci_device_structure_general_device_t *)ptr)->Capabilities_Pointer);
kdebug("cap+0x0 = %#010lx", tmp);
} }
else else
{ {