summaryrefslogtreecommitdiff
path: root/mm/include/stack.h
blob: 3667862cb66d33149779bcca420913799fba2462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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