Logo
Explore Help
Sign In
wash/mango
1
0
Fork 0
You've already forked mango
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
6019c9307d7f13e5348ea14ace54be24eb0f2bbb
mango/arch/user/cpu.c

25 lines
261 B
C
Raw Normal View History

build: add a "user" arch to allow the kernel to run as a program on the host machine
2023-02-25 17:58:23 +00:00
#include <unistd.h>
kernel: separate headers into kernel and user headers all kernel headers have been moved from include/mango to include/kernel and include definitions that are only relevant to kernel-space. any definitions that are relevant to both kernel- and user-space (i.e. type definitions, syscall IDs) have been moved to include/mango within libmango.
2026-02-19 18:54:48 +00:00
#include <kernel/machine/cpu.h>
build: add a "user" arch to allow the kernel to run as a program on the host machine
2023-02-25 17:58:23 +00:00
int ml_init_bootcpu(void)
{
return 0;
}
int ml_cpu_block_init(ml_cpu_block *p)
{
return 0;
}
int ml_cpu_block_use(ml_cpu_block *p)
{
return 0;
}
void ml_halt_cpu(void)
{
while (1) {
sleep(100);
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 26ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API