diff options
Diffstat (limited to 'results/scraper/launchpad-without-comments/1767146')
| -rw-r--r-- | results/scraper/launchpad-without-comments/1767146 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1767146 b/results/scraper/launchpad-without-comments/1767146 new file mode 100644 index 00000000..5180abd4 --- /dev/null +++ b/results/scraper/launchpad-without-comments/1767146 @@ -0,0 +1,35 @@ +No ACPI-table found, option -M 1.6 not found either + +Currently writing a small kernel, when trying to detect memory blocks that contain ACPI information, no such block is found. When ran in Oracle Virtualbox, code runs flawlessly. + +Code that is detecting the ACPI-Info (with a bit of debug-output): + +``` +multiboot_memory_map32_t* map = (multiboot_memory_map32_t*)mmap; +for (uint32_t i = 0; i < size; i++) { + Termutils::cout << map[i].type << "type of block "; + if (mmap[i].type == MULTIBOOT_MEMORY_ACPI_RECLAIMABLE) { + Termutils::cout << "WE ARE INSIDE\n"; + fadt = (FADT*)(map[i].base_addr_low); + //break; + } + if (i % 9 == 0) { + Termutils::cout << "\n"; + } +} +``` + + +command qemu is run with: + +qemu-img create build/objects/test 500M +qemu-system-i386 -hda $(APP_DIR)/clinl.iso -hdb ./build/objects/test + + +The iso-image is (zipped) included as attachment. + + +qemu-system-i386 --version: + +QEMU emulator version 2.10.1(qemu-2.10.1-3.fc27) +Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers \ No newline at end of file |