mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-27 06:40:36 +00:00
2f1e7b3de8
* Use STACK and STACK_TOP everywhere * format * remove fake variable * bss * review Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * Update src/boot_O2_g3/boot_main.c Co-authored-by: Derek Hensley <hensley.derek58@gmail.com> * review * renames * more renames * and more * whoopsie, forgot those too * hopefully the last cleanup * forgot some stuff * a * bss --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
13 lines
199 B
C
13 lines
199 B
C
#ifndef STACK_H
|
|
#define STACK_H
|
|
|
|
#include "alignment.h"
|
|
|
|
#define STACK(stack, size) \
|
|
u64 stack[ALIGN8(size) / sizeof(u64)]
|
|
|
|
#define STACK_TOP(stack) \
|
|
((u8*)(stack) + sizeof(stack))
|
|
|
|
#endif
|