mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 23:46:48 +00:00
bug fix
This commit is contained in:
parent
e03cdea153
commit
c7b2d52c62
@ -699,6 +699,7 @@ struct vfs_filesystem_type_t fat32_fs_type =
|
|||||||
};
|
};
|
||||||
void fat32_init()
|
void fat32_init()
|
||||||
{
|
{
|
||||||
|
kinfo("Initializing FAT32...");
|
||||||
// 在VFS中注册fat32文件系统
|
// 在VFS中注册fat32文件系统
|
||||||
vfs_register_filesystem(&fat32_fs_type);
|
vfs_register_filesystem(&fat32_fs_type);
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ SECTIONS
|
|||||||
|
|
||||||
_edata = .;
|
_edata = .;
|
||||||
}
|
}
|
||||||
|
. = ALIGN(4096);
|
||||||
rodata_start_pa = .;
|
rodata_start_pa = .;
|
||||||
.rodata (rodata_start_pa): AT(rodata_start_pa - KERNEL_VMA)
|
.rodata (rodata_start_pa): AT(rodata_start_pa - KERNEL_VMA)
|
||||||
{
|
{
|
||||||
|
@ -52,11 +52,7 @@ void __switch_to(struct process_control_block *prev, struct process_control_bloc
|
|||||||
__asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs));
|
__asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs));
|
||||||
__asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs));
|
__asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs));
|
||||||
// wrmsr(0x175, next->thread->rbp);
|
// wrmsr(0x175, next->thread->rbp);
|
||||||
uint color;
|
|
||||||
if (proc_current_cpu_id == 0)
|
|
||||||
color = WHITE;
|
|
||||||
else
|
|
||||||
color = YELLOW;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user