build: add a "user" arch to allow the kernel to run as a program on the host machine

This commit is contained in:
2023-02-25 17:58:23 +00:00
parent 8c87e78797
commit eed73e2414
21 changed files with 286 additions and 26 deletions

View File

@@ -0,0 +1,15 @@
#ifndef SOCKS_USER_CPU_H_
#define SOCKS_USER_CPU_H_
typedef struct ml_cpu_block {
int cpu_reserved;
} ml_cpu_block;
extern int ml_init_bootcpu(void);
extern int ml_cpu_block_init(ml_cpu_block *p);
extern int ml_cpu_block_use(ml_cpu_block *p);
extern void ml_halt_cpu(void);
#endif