This commit is contained in:
fslongjin 2022-04-25 17:44:38 +08:00
parent e03cdea153
commit c7b2d52c62
3 changed files with 3 additions and 5 deletions

View File

@ -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);

View File

@ -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)
{ {

View File

@ -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;
} }
/** /**