kernel: misc fixes

This commit is contained in:
Matheus
2023-07-25 19:02:59 -03:00
parent 6653b01e23
commit c1aa09eade
4 changed files with 14 additions and 5 deletions
+6
View File
@@ -1,6 +1,10 @@
#ifndef _UTIL_H
#define _UTIL_H
#include <stdint.h>
#define UTIL_ZEROBUFFERSIZE (1024 * 64)
#define ROUND_DOWN(v, n) ((v) - ((v) % (n)))
#define ROUND_UP(v, n) ROUND_DOWN((v) + (n) - 1, n)
@@ -16,4 +20,6 @@ static inline long min(long x, long y) {
return x > y ? y : x;
}
extern uint8_t util_zerobuffer[];
#endif