1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Revert "Multipage allocation"

This reverts commit 6cd3771378.
This commit is contained in:
Maria Matejka
2022-03-09 09:13:20 +01:00
parent 1740ff57e8
commit 1c7df2c240
5 changed files with 4 additions and 62 deletions

View File

@@ -61,6 +61,7 @@ pool root_pool;
void *alloc_sys_page(void);
void free_sys_page(void *);
void resource_sys_init(void);
static int indent;
@@ -282,6 +283,7 @@ rlookup(unsigned long a)
void
resource_init(void)
{
resource_sys_init();
root_pool.r.class = &pool_class;
root_pool.name = "Root";
init_list(&root_pool.inside);

View File

@@ -178,7 +178,7 @@ struct sl_alignment { /* Magic structure for testing of alignment */
int x[0];
};
#define SL_GET_HEAD(x) ((struct sl_head *) PAGE_HEAD(x))
#define SL_GET_HEAD(x) ((struct sl_head *) (((uintptr_t) (x)) & ~(page_size-1)))
/**
* sl_new - create a new Slab