[BOOT] Create input parameters structures.

This commit is contained in:
2024-06-06 09:40:58 -04:00
parent 42369f91ee
commit be6f37b4dc
6 changed files with 433 additions and 7 deletions

View File

@@ -146,4 +146,35 @@ typedef union ULARGE_INTEGER {
#define FIELD_OFFSET(type, field) ((ULONG)__builtin_offsetof(type, field))
#endif
//
// Alignment helpers.
//
#define ALIGN_DOWN(x, a) ((x) & ~((a) - 1))
#define ALIGN_UP(x, a) ALIGN_DOWN((x) + (a) - 1, a)
//
// Doubly-linked list entry.
//
typedef struct _LIST_ENTRY {
struct _LIST_ENTRY *ForwardLink;
struct _LIST_ENTRY *BackLink;
} LIST_ENTRY, *PLIST_ENTRY;
//
// Runtime library definitions.
//
PVOID
RtlCopyMemory (
PVOID Destination,
CONST PVOID Source,
ULONG Length
);
PVOID
RtlZeroMemory (
PVOID Destination,
ULONG Length
);
#endif