Log about additional CPU/APICs

This commit is contained in:
Justin C. Miller
2019-04-08 14:33:10 -07:00
parent e050d6f151
commit cd13b88540
3 changed files with 13 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ exec qemu-system-x86_64 \
-drive "if=pflash,format=raw,file=${build}/${flash_name}.fd" \
-drive "format=raw,file=${build}/popcorn.img" \
-monitor telnet:localhost:45454,server,nowait \
-smp 1 \
-smp 4 \
-m 512 \
-d mmu,int,guest_errors \
-D popcorn.log \

View File

@@ -1,9 +1,9 @@
LOG(apic, info);
LOG(device, info);
LOG(paging, info);
LOG(paging, warn);
LOG(driver, info);
LOG(memory, debug);
LOG(memory, info);
LOG(fs, info);
LOG(task, debug);
LOG(boot, debug);
LOG(syscall,debug);
LOG(task, info);
LOG(boot, info);
LOG(syscall,info);

View File

@@ -167,7 +167,13 @@ device_manager::load_apic(const acpi_apic *apic)
const uint8_t length = p[1];
switch (type) {
case 0: // Local APIC
case 0: { // Local APIC
uint8_t uid = kutil::read_from<uint8_t>(p+2);
uint8_t id = kutil::read_from<uint8_t>(p+3);
log::debug(logs::device, " Local APIC uid %x id %x", id);
}
break;
case 1: // I/O APIC
break;