Unify process_alloc() and process_realloc() with PROCESS_ALLOC_MODE_REALLOC bit
[moveable_pool.git] / core.h
1 #ifndef _CORE_H
2 #define _CORE_H 1
3
4 //#define INDIRECT_CORE 1
5
6 #include <stdint.h>
7 #ifdef INDIRECT_CORE
8 #include "block_pool.h"
9 #endif /* INDIRECT_CORE */
10 #include "pool.h"
11
12 extern struct pool_head core_table;
13 #ifdef INDIRECT_CORE
14 extern int *core_table_mem;
15 extern struct block_pool core_block_pool;
16 #endif /* INDIRECT_CORE */
17
18 #ifndef INDIRECT_CORE
19 void core_init(int n_table);
20
21 // abstract
22 void core_copy(int src_base, int dest_base, int paras);
23 void core_copy_up(int src_limit, int dest_limit, int paras);
24 #else /* INDIRECT_CORE */
25 void core_init(int n_table, int n_blocks);
26 #endif /* INDIRECT_CORE */
27
28 #endif