forked from PoliEcho-holding-org/kern
native features!
This commit is contained in:
+4
-2
@@ -30,6 +30,9 @@ __noreturn void _start(void) {
|
||||
cpuid(&eax, (void*)&s[0], (void*)&s[8], (void*)&s[4]);
|
||||
pr_info("[kernel] CPUID_GETVENDORID: %s\n", s);
|
||||
|
||||
// enable processor extensions
|
||||
detect_processor_features();
|
||||
|
||||
// System init
|
||||
if ((err = gdt_init()) < 0)
|
||||
panic(NULL, "Failed to initalize GDT. (%d)", err);
|
||||
@@ -43,8 +46,7 @@ __noreturn void _start(void) {
|
||||
if ((err = pag_init()) < 0)
|
||||
panic(NULL, "Failed to initalize Paging. (%d)", err);
|
||||
|
||||
// random number generation
|
||||
rand_init();
|
||||
|
||||
// test random number generation
|
||||
printk("Random number generation test:\n");
|
||||
for (uint8_t i = 0; i <= 16; i++) {
|
||||
|
||||
Reference in New Issue
Block a user