diff options
author | Maria Matejka <mq@ucw.cz> | 2022-07-15 14:57:02 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-07-15 14:57:02 +0200 |
commit | 05673b16a87792baf8734dfcbf12ac2fd867f80b (patch) | |
tree | 7dd306058ea07dc41ec22d5429e8d1a9a6e7793b /lib/resource.h | |
parent | 1c2851ecfa94f3d0b732a267c6c2db8b817c37f4 (diff) | |
parent | c70b3198dc349127273d202ab8c36afeebb6d9d0 (diff) |
Merge commit 'c70b3198' into thread-next [lots of conflicts]
There were more conflicts that I'd like to see, most notably in route
export. If a bisect identifies this commit with something related, it
may be simply true that this commit introduces that bug. Let's hope it
doesn't happen.
Diffstat (limited to 'lib/resource.h')
-rw-r--r-- | lib/resource.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/resource.h b/lib/resource.h index 4cedbf00..8bb264b1 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -115,6 +115,7 @@ void sl_free(void *); void buffer_realloc(void **buf, unsigned *size, unsigned need, unsigned item_size); /* Allocator of whole pages; for use in slabs and other high-level allocators. */ +#define PAGE_HEAD(x) ((void *) (((uintptr_t) (x)) & ~(page_size-1))) extern long page_size; void *alloc_page(void); void free_page(void *); |