Guest User

Untitled

a guest
Jun 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. pub unsafe fn reset_handler() {
  2. // Lots of stuff
  3. for (proc_num, proc_) in PROCESSES.as_ref().iter().enumerate() {
  4. match proc_ {
  5. Some(p) => {
  6. load_process_hook(proc_num as u32, p.package_name, p.flash_non_protected_start() as u32)
  7. },
  8. None => (),
  9. }
  10. }
  11. // Enter kernel
  12. }
  13.  
  14. #[no_mangle]
  15. pub extern fn load_process_hook(proc_num: u32, name: &str, text_addr: u32) {
  16. debug!("Loading app: index {}, name \"{}\", `.text` 0x{:08x}", proc_num, name, text_addr);
  17. }
Add Comment
Please, Sign In to add comment