gem5
v20.1.0.0
|
#include <dtb_file.hh>
Public Member Functions | |
DtbFile (const std::string &name) | |
~DtbFile () | |
bool | addBootCmdLine (const char *_args, size_t len) |
Adds the passed in Command Line options for the kernel to the proper location in the device tree. More... | |
Addr | findReleaseAddr () |
Parse the DTB file enough to find the provided release address and return it. More... | |
MemoryImage | buildImage () const override |
Protected Attributes | |
bool | fileDataMmapped |
Bool marking if this dtb file has replaced the original read in DTB file with a new modified buffer. More... | |
uint8_t * | fileData = nullptr |
size_t | length = 0 |
Protected Attributes inherited from Loader::ImageFile | |
ImageFileDataPtr | imageData |
Additional Inherited Members | |
Protected Member Functions inherited from Loader::ImageFile | |
ImageFile (ImageFileDataPtr data) | |
virtual | ~ImageFile () |
Definition at line 42 of file dtb_file.hh.
Loader::DtbFile::DtbFile | ( | const std::string & | name | ) |
Definition at line 43 of file dtb_file.cc.
References fileData, fileDataMmapped, Loader::ImageFile::imageData, length, and panic_if.
Loader::DtbFile::~DtbFile | ( | ) |
Definition at line 53 of file dtb_file.cc.
References fileData, and fileDataMmapped.
bool Loader::DtbFile::addBootCmdLine | ( | const char * | _args, |
size_t | len | ||
) |
Adds the passed in Command Line options for the kernel to the proper location in the device tree.
_args | command line to append |
len | length of the command line string |
Definition at line 62 of file dtb_file.cc.
References fileData, fileDataMmapped, ArmISA::len, length, ArmISA::offset, and warn.
|
overridevirtual |
Implements Loader::ImageFile.
Definition at line 151 of file dtb_file.cc.
References fileData, fileDataMmapped, Loader::ImageFile::imageData, and length.
Addr Loader::DtbFile::findReleaseAddr | ( | ) |
Parse the DTB file enough to find the provided release address and return it.
Definition at line 130 of file dtb_file.cc.
References betoh(), ArmISA::fd, fileData, ArmISA::len, and ArmISA::offset.
|
protected |
Definition at line 49 of file dtb_file.hh.
Referenced by addBootCmdLine(), buildImage(), DtbFile(), findReleaseAddr(), and ~DtbFile().
|
protected |
Bool marking if this dtb file has replaced the original read in DTB file with a new modified buffer.
Definition at line 48 of file dtb_file.hh.
Referenced by addBootCmdLine(), buildImage(), DtbFile(), and ~DtbFile().
|
protected |
Definition at line 50 of file dtb_file.hh.
Referenced by addBootCmdLine(), buildImage(), and DtbFile().