blob: a3b771915333fdbf159a30a515bade255659a52e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "aplos.h"
void
main(struct boot_info *info)
{
screen_init(&info->framebuffer);
print(u8"Starting ☺☻☺☻☺☻☺☻☺☻\n");
print(u8"CPU count: %u64\n", cpu_count());
setup_descriptors();
setup_paging(info);
int *x = (int*)0xBEEF;
*x = 4; /* This should give us a page fault, and trigger the panic function */
}
|