natrocx

Untitled

Feb 10th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /* Copyright (c) 2015 The Robigalia Project Developers
  2. * Licensed under the Apache License, Version 2.0
  3. * <LICENSE-APACHE or
  4. * http://www.apache.org/licenses/LICENSE-2.0> or the MIT
  5. * license <LICENSE-MIT or http://opensource.org/licenses/MIT>,
  6. * at your option. All files in the project carrying such
  7. * notice may not be copied, modified, or distributed except
  8. * according to those terms.
  9. */
  10. #![no_std]
  11.  
  12. extern crate sel4_start;
  13. extern crate sel4_sys;
  14.  
  15. fn println(s: &[u8]) {
  16. for &b in s {
  17. unsafe { sel4_sys::seL4_DebugPutChar(b) };
  18. }
  19. }
  20.  
  21. fn main() {
  22. println(b"Hello, world!\n");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment