mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
Compare commits
23 Commits
31dbcf833c
...
bd136dcba4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd136dcba4 | ||
|
|
bc7335ce6c | ||
|
|
722093e2c4 | ||
|
|
ba7b36aa21 | ||
|
|
8b5ae877b8 | ||
|
|
2a0126b9d2 | ||
|
|
90d1551665 | ||
|
|
45c058c622 | ||
|
|
deb7c82872 | ||
|
|
2a61f88d8a | ||
|
|
a90a8bea67 | ||
|
|
6dc837db7c | ||
|
|
4dd9c6bce7 | ||
|
|
28c9558a7a | ||
|
|
96af1fdc88 | ||
|
|
0422be52fa | ||
|
|
e9f9035f89 | ||
|
|
1d87e3b699 | ||
|
|
fda382c6bc | ||
|
|
f52872f3b9 | ||
|
|
688a21e4ed | ||
|
|
f894fb15d5 | ||
|
|
38aab28025 |
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -1,6 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "bit_field"
|
||||
@@ -31,9 +31,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "bootloader"
|
||||
version = "0.9.29"
|
||||
version = "0.9.30"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "365861702868e2a37b4247aaecc7bd8f4389baec8d025497ad8ba7ff37ee9440"
|
||||
checksum = "8a9c8b93781debeb5bc44a12adc4be812aa9feb659d60eeafcd7e9bedb549561"
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
|
||||
@@ -9,6 +9,7 @@ extern crate alloc;
|
||||
use alloc::{boxed::Box, vec::Vec};
|
||||
use blog_os::allocator::HEAP_SIZE;
|
||||
use bootloader::{entry_point, BootInfo};
|
||||
use core::hint::black_box;
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
entry_point!(main);
|
||||
@@ -61,6 +62,7 @@ fn many_boxes_long_lived() {
|
||||
let x = Box::new(i);
|
||||
assert_eq!(*x, i);
|
||||
}
|
||||
black_box(&long_lived); // new - ensures long_lived isn't optimized away
|
||||
assert_eq!(*long_lived, 1); // new
|
||||
}
|
||||
|
||||
|
||||
@@ -11,5 +11,6 @@
|
||||
"linker": "rust-lld",
|
||||
"panic-strategy": "abort",
|
||||
"disable-redzone": true,
|
||||
"features": "-mmx,-sse,+soft-float"
|
||||
"features": "-mmx,-sse,+soft-float",
|
||||
"rustc-abi": "x86-softfloat"
|
||||
}
|
||||
Reference in New Issue
Block a user