mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Correct the filenames in comments for where _start() is. (#488)
This commit is contained in:
committed by
Philipp Oppermann
parent
1ed19359b5
commit
d6c812ea28
@@ -26,7 +26,7 @@ A double fault behaves like a normal exception. It has the vector number `8` and
|
|||||||
Let's provoke a double fault by triggering an exception for that we didn't define a handler function:
|
Let's provoke a double fault by triggering an exception for that we didn't define a handler function:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
// in src/lib.rs
|
// in src/main.rs
|
||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
@@ -155,7 +155,7 @@ So the CPU tries to call the _double fault handler_ now. However, on a double fa
|
|||||||
Let's try it ourselves! We can easily provoke a kernel stack overflow by calling a function that recurses endlessly:
|
Let's try it ourselves! We can easily provoke a kernel stack overflow by calling a function that recurses endlessly:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
// in src/lib.rs
|
// in src/main.rs
|
||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[no_mangle] // don't mangle the name of this function
|
#[no_mangle] // don't mangle the name of this function
|
||||||
|
|||||||
Reference in New Issue
Block a user