fslongjin 2 years ago
parent
commit
c7b2d52c62
3 changed files with 3 additions and 5 deletions
  1. 1 0
      kernel/filesystem/fat32/fat32.c
  2. 1 0
      kernel/link.lds
  3. 1 5
      kernel/process/process.c

+ 1 - 0
kernel/filesystem/fat32/fat32.c

@@ -699,6 +699,7 @@ struct vfs_filesystem_type_t fat32_fs_type =
 };
 void fat32_init()
 {
+    kinfo("Initializing FAT32...");
     // 在VFS中注册fat32文件系统
     vfs_register_filesystem(&fat32_fs_type);
 

+ 1 - 0
kernel/link.lds

@@ -37,6 +37,7 @@ SECTIONS
 
 		_edata = .;
 	}
+	. = ALIGN(4096);
 	rodata_start_pa = .;
 	.rodata (rodata_start_pa): AT(rodata_start_pa - KERNEL_VMA)
 	{

+ 1 - 5
kernel/process/process.c

@@ -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,	%%gs \n\t" ::"a"(next->thread->gs));
     // wrmsr(0x175, next->thread->rbp);
-    uint color;
-    if (proc_current_cpu_id == 0)
-        color = WHITE;
-    else
-        color = YELLOW;
+   
 }
 
 /**