32,7 → 32,7 |
*/ |
/** @file |
* @brief Boot related declarations. |
*/ |
*/ |
|
|
#ifndef BOOT_arm32_MAIN_H |
39,13 → 39,17 |
#define BOOT_arm32_MAIN_H |
|
|
/** Aligns to the nearest higher address. |
* |
* @param addr Address or number to be aligned. |
* @param align Size of alignment, must be power of 2. |
*/ |
#define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1)) |
|
/** Maximum number of tasks in the #bootinfo_t struct. */ |
#define TASKMAP_MAX_RECORDS 32 |
|
/** Size of buffer for storing task name in task_t. */ |
#define BOOTINFO_TASK_NAME_BUFLEN 32 |
|
|
/** Struct holding information about single loaded task. */ |
typedef struct { |
/** Address where the task was placed. */ |
52,8 → 56,6 |
void *addr; |
/** Size of the task's binary. */ |
unsigned int size; |
/** Task name. */ |
char name[BOOTINFO_TASK_NAME_BUFLEN]; |
} task_t; |
|
|
72,3 → 74,4 |
|
/** @} |
*/ |
|