|
ArvernOS
|
Data Structures | |
| struct | atag_header_t |
| struct | atag_mem_t |
| struct | atag_cmdline_t |
| struct | atag_initrd2_t |
Functions | |
| void | atag_init (atag_header_t *ptr) |
| const char * | atag_get_cmdline () |
| atag_initrd2_t * | atag_get_initrd2_at (uint8_t index) |
| void | atag_get_boot_info (boot_info_t *info) |
ARM tags are used to pass information from the bootloader to the kernel. It is kind of legacy now because Linux uses Device Trees, but it is easier to implement in a project like ArvernOS.
| void atag_get_boot_info | ( | boot_info_t * | info | ) |
Fills the boot information from the parsed ARM tags.
| info | the boot information to fill |
| const char * atag_get_cmdline | ( | ) |
Returns the command line found in the ATAGs.
| atag_initrd2_t * atag_get_initrd2_at | ( | uint8_t | index | ) |
Returns the initrd2 entry at a specific index found in the ATAGs.
| index | the index of the initrd2 entry to retrieve |
| void atag_init | ( | atag_header_t * | ptr | ) |
Initializes the ATAGs module, which essentially parses the ATAGs and store information that can be queried later.
| ptr | a pointer to the first ATAG header |