kernel: implement cpu IDs and per-cpu variables

This commit is contained in:
2023-03-18 19:35:00 +00:00
parent 56bc47f570
commit 57eaf4e01c
14 changed files with 232 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
#ifndef SOCKS_PERCPU_H_
#define SOCKS_PERCPU_H_
#include <socks/status.h>
#include <socks/compiler.h>
#define DEFINE_PERCPU_VAR(type, name) \
@@ -10,6 +11,7 @@
#define percpu_put(var)
extern kern_status_t init_per_cpu_areas(void);
extern void *__percpu_get(void *var);
#endif