X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/61a1daa59589212608039e2734009870818bacd3..d96f52f65ecb90e26be9bd709fbdb1de54795db1:/lunaix-os/kernel/k_init.c diff --git a/lunaix-os/kernel/k_init.c b/lunaix-os/kernel/k_init.c index fc6c51c..ce4ac6a 100644 --- a/lunaix-os/kernel/k_init.c +++ b/lunaix-os/kernel/k_init.c @@ -78,6 +78,8 @@ _kernel_init() fsm_init(); input_init(); + vfs_export_attributes(); + if ((errno = vfs_mount_root("ramfs", NULL))) { panickf("Fail to mount root. (errno=%d)", errno); } @@ -162,6 +164,11 @@ spawn_proc0() : "i"(KSTACK_TOP), "i"(KCODE_SEG), "r"(proc0->intr_ctx.eip) : "%ebx", "memory"); + // 加载x87默认配置 + asm volatile("fninit\n" + "fxsave (%%eax)" ::"a"(proc0->fxstate) + : "memory"); + // 向调度器注册进程。 commit_process(proc0);