Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lurenjia1213 committed Oct 16, 2024
1 parent f9fe868 commit 01b1296
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# rCore-Camp-Code-2024A

## 注意,在这时候还没有分页什么鬼的
### Code
- [Soure Code of labs for 2024A](https://github.com/LearningOS/rCore-Camp-Code-2024A)
### Documents
Expand Down
5 changes: 3 additions & 2 deletions os/src/entry.asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ _start:
.section .bss.stack
.globl boot_stack_lower_bound
boot_stack_lower_bound:
#16K的启动栈
#64K的启动栈
.space 4096 * 16
.globl boot_stack_top
boot_stack_top:
boot_stack_top:
#栈顶地址被全局符号 boot_stack_top 标识(sp寄存器),栈底则被全局符号 boot_stack 标识。
2 changes: 1 addition & 1 deletion os/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn clear_bss() {
}

/// the rust entry-point of os
#[no_mangle]
#[no_mangle]//禁用名称修改,以便链接
pub fn rust_main() -> ! {
extern "C" {
fn stext(); // begin addr of text segment
Expand Down

0 comments on commit 01b1296

Please sign in to comment.