File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
zCore/src/arch/riscv/boot Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ impl LinuxProcess {
230
230
files. insert ( 2 . into ( ) , stdout) ;
231
231
232
232
LinuxProcess {
233
- root_inode : create_root_fs ( rootfs) ,
233
+ root_inode : create_root_fs ( rootfs) , //Arc::clone(&ROOT_INODE),访问磁盘可能更快?
234
234
parent : Weak :: default ( ) ,
235
235
inner : Mutex :: new ( LinuxProcessInner {
236
236
files,
Original file line number Diff line number Diff line change @@ -45,14 +45,15 @@ bootstacktop:
45
45
.section .data
46
46
.align 12 #12 位对齐
47
47
boot_page_table_sv39:
48
- #1G的一个大页: 0xffffffff_00000000 --> 0x00000000
48
+ #1G的一个大页: 0x00000000_80000000 --> 0x80000000
49
49
#1G的一个大页: 0xffffffff_80000000 --> 0x80000000
50
50
51
51
#前510 项置0
52
- .zero 8 * 508
53
-
54
- .quad (0x00000 << 10 ) | 0xef
55
52
.zero 8
53
+ .zero 8
54
+ .quad (0x80000 << 10 ) | 0xef #0x80000000 --> 0x80000000
55
+
56
+ .zero 8 * 507
56
57
#倒数第二项,PPN=0x80000(当转换为物理地址时还需左移12 位), 标志位DAG_XWRV置1
57
58
.quad (0x80000 << 10 ) | 0xef
58
59
.zero 8
You can’t perform that action at this time.
0 commit comments