Some defintion improvments

This commit is contained in:
Mathieu Maret 2020-04-22 16:54:30 +02:00
parent 5b681b3d87
commit 79c1fda419
3 changed files with 6 additions and 5 deletions

View File

@ -10,7 +10,7 @@
#define IS_SELF_CONTAINED(desc) ((vaddr_t)((desc)->page) == (vaddr_t)(desc))
// Slab will contains object from sizeof(void *) to PAGE_SIZE/2 by pow2
#define SLUB_SIZE (PAGE_SHIFT)
struct slabDesc *slub;
static struct slabDesc *slub;
int allocSlab(struct slabDesc **desc, size_t size, int self_containing);
int allocSlabEntry(struct slabEntry **desc, size_t size, int selfContained);

View File

@ -96,8 +96,8 @@ static void core_routine(cpu_kstate_function_arg1_t *start_func, void *start_arg
}
int cpu_kstate_init(struct cpu_state **ctxt, cpu_kstate_function_arg1_t *start_func,
uint32_t start_arg, vaddr_t stack_bottom, size_t stack_size,
cpu_kstate_function_arg1_t *exit_func, uint32_t exit_arg)
vaddr_t start_arg, vaddr_t stack_bottom, size_t stack_size,
cpu_kstate_function_arg1_t *exit_func, vaddr_t exit_arg)
{
/* We are initializing a Kernel thread's context */
struct cpu_kstate *kctxt;

View File

@ -25,6 +25,7 @@
* be some kind of architecture-independent.
*/
#include "stdarg.h"
#include "types.h"
#include "errno.h"
@ -84,11 +85,11 @@ typedef void (cpu_kstate_function_arg1_t(void * arg1));
*/
int cpu_kstate_init(struct cpu_state **kctxt,
cpu_kstate_function_arg1_t *start_func,
uint32_t start_arg,
vaddr_t start_arg,
vaddr_t stack_bottom,
size_t stack_size,
cpu_kstate_function_arg1_t *exit_func,
uint32_t exit_arg);
vaddr_t exit_arg);
/**