Skip to content

Redox Cross Compilation #38401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Dec 23, 2016
Merged
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
341d2d1
Add redox target
jackpot51 Dec 13, 2016
c7aa284
Fix typo
jackpot51 Dec 13, 2016
a621d12
Fix issue with setting cfg(unix)
jackpot51 Dec 13, 2016
d2707aa
Use panic abort by default
jackpot51 Dec 13, 2016
ece703a
Add Redox make config
jackpot51 Dec 13, 2016
f86e014
Use alloc_system as default allocation crate
jackpot51 Dec 14, 2016
3e7543a
WIP: Cross-compilation for Redox target
jackpot51 Dec 15, 2016
773a0a2
Add start functions, switch allocation crate to ralloc
jackpot51 Dec 15, 2016
07e313d
Add openlibm to redox
jackpot51 Dec 15, 2016
6d7c2ec
Revert libstd/Cargo.toml to master
jackpot51 Dec 15, 2016
57bc1a9
Add arm syscalls
jackpot51 Dec 20, 2016
86f85c1
Move start functions into libstd/rt
jackpot51 Dec 20, 2016
01157e6
Link openlibm only in libstd
jackpot51 Dec 20, 2016
e55596f
Move rt into sys::rt, fix tidy
jackpot51 Dec 20, 2016
65eecf8
Readd statvfs
jackpot51 Dec 20, 2016
fd4bc88
Fix building without backtrace
jackpot51 Dec 21, 2016
7697c72
Static link openlibm
jackpot51 Dec 21, 2016
2ca1f0b
Switch back to alloc_system
jackpot51 Dec 21, 2016
bf50acb
Fix tidy
jackpot51 Dec 21, 2016
e909e43
Update liblibc, go back to lazy linking openlibm
jackpot51 Dec 21, 2016
92c8e0f
Merge branch 'redox_cross' of https://github.com/redox-os/rust into r…
jackpot51 Dec 21, 2016
7d3ae87
Add RawFd traits for net
jackpot51 Dec 22, 2016
e7b006d
In order to successfully build, go back to ralloc
jackpot51 Dec 22, 2016
1eb6c44
Remove start functions, use newlib instead of openlibm + ralloc
jackpot51 Dec 22, 2016
2ddd117
Revert rt.rs
jackpot51 Dec 22, 2016
474eb62
Do not build emutls on Redox
jackpot51 Dec 23, 2016
c59bb49
Correct target_family mess
jackpot51 Dec 23, 2016
4dcb867
Convert fam to Symbol
jackpot51 Dec 23, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/libstd/sys/redox/syscall/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ impl Deref for Stat {
type Target = [u8];
fn deref(&self) -> &[u8] {
unsafe {
slice::from_raw_parts(self as *const Stat as *const u8, mem::size_of::<Stat>()) as &[u8]
slice::from_raw_parts(self as *const Stat as *const u8,
mem::size_of::<Stat>()) as &[u8]
}
}
}
Expand All @@ -62,15 +63,17 @@ impl Deref for StatVfs {
type Target = [u8];
fn deref(&self) -> &[u8] {
unsafe {
slice::from_raw_parts(self as *const StatVfs as *const u8, mem::size_of::<StatVfs>()) as &[u8]
slice::from_raw_parts(self as *const StatVfs as *const u8,
mem::size_of::<StatVfs>()) as &[u8]
}
}
}

impl DerefMut for StatVfs {
fn deref_mut(&mut self) -> &mut [u8] {
unsafe {
slice::from_raw_parts_mut(self as *mut StatVfs as *mut u8, mem::size_of::<StatVfs>()) as &mut [u8]
slice::from_raw_parts_mut(self as *mut StatVfs as *mut u8,
mem::size_of::<StatVfs>()) as &mut [u8]
}
}
}
Expand Down