Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _SPIDER_H
- #define _SPIDER_H
- #define START_SECTION __attribute__ ((section (".text.start"), naked))
- // make sure code is PIE
- #ifndef __PIE__
- #error "Must compile with -fPIE"
- #endif
- int (*svcSleepThread)(unsigned long long nanoseconds) = (void *)0x0023FFE8;
- int uvl_entry();
- int uvl_exit (int status);
- // TODO: move out into .c file
- int START_SECTION uvl_start() {
- __asm__ volatile (".word 0xE1A00000");
- uvl_entry();
- __asm__ volatile ("bx lr");
- }
- // TODO: move out into .c file
- int uvl_exit(int status) {
- return 0;
- }
- #endif /* _SPIDER_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement