mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add rlibc dependency for memset, memcpy, etc.
This commit is contained in:
@@ -5,3 +5,6 @@ authors = ["Philipp Oppermann <dev@phil-opp.com>"]
|
|||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["staticlib"]
|
crate-type = ["staticlib"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
rlibc = "*"
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
#![feature(no_std, lang_items)]
|
#![feature(no_std, lang_items)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
extern crate rlibc;
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern fn main() {
|
pub extern fn main() {
|
||||||
// ATTENTION: we have a very small stack and no guard page
|
// ATTENTION: we have a very small stack and no guard page
|
||||||
|
|||||||
Reference in New Issue
Block a user