#include <stdint.h>
- See also
- http://www.simtec.co.uk/products/SWLINUX/files/booting_article.html
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.
◆ atag_get_cmdline()
const char * atag_get_cmdline |
( |
| ) |
|
Returns the command line found in the ATAGs.
- Returns
- a string containing the command line found in the ATAGS or
NULL
◆ atag_get_initrd2_at()
Returns the initrd2 entry at a specific index found in the ATAGs.
- Parameters
-
index | the index of the initrd2 entry to retrieve |
- Returns
- the initrd2 entry or
NULL
if not found (or index
is invalid)
◆ atag_init()
Initializes the ATAGs module, which essentially parses the ATAGs and store information that can be queried later.
- Parameters
-
ptr | a pointer to the first ATAG header |