// Kernel supports flattened device tree and dtb file specified.
// Using Device Tree Blob to describe system configuration.
inform("Loading DTB file: %s at address %#x\n", params().dtb_filename,
- params().dtb_addr + _loadAddrOffset);
+ params().dtb_addr);
auto *dtb_file = new ::Loader::DtbFile(params().dtb_filename);
bootReleaseAddr = ra & ~ULL(0x7F);
dtb_file->buildImage().
- offset(params().dtb_addr + _loadAddrOffset).
+ offset(params().dtb_addr).
write(system->physProxy);
delete dtb_file;
for (auto *tc: system->threads) {
tc->setIntReg(0, 0);
tc->setIntReg(1, params().machine_type);
- tc->setIntReg(2, params().dtb_addr + _loadAddrOffset);
+ tc->setIntReg(2, params().dtb_addr);
}
}
DPRINTF(Loader, "Boot atags was %d bytes in total\n", size << 2);
DDUMP(Loader, boot_data, size << 2);
- system->physProxy.writeBlob(params().dtb_addr + _loadAddrOffset,
+ system->physProxy.writeBlob(params().dtb_addr,
boot_data, size << 2);
delete[] boot_data;
for (auto *tc: system->threads) {
tc->setIntReg(0, 0);
tc->setIntReg(1, params().machine_type);
- tc->setIntReg(2, params().dtb_addr + _loadAddrOffset);
+ tc->setIntReg(2, params().dtb_addr);
}
}
}