mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-06 23:28:04 -04:00
move common files to root
This commit is contained in:
parent
f506842df2
commit
a86e9a3e58
25 changed files with 15 additions and 15 deletions
26
arm_linux.S
Normal file
26
arm_linux.S
Normal file
|
@ -0,0 +1,26 @@
|
|||
@ vim:filetype=armasm
|
||||
#include <sys/syscall.h>
|
||||
|
||||
|
||||
.global cache_flush_d_inval_i @ const void *start_addr, const void *end_addr
|
||||
|
||||
cache_flush_d_inval_i:
|
||||
mov r2, #0
|
||||
#ifdef __ARM_EABI__
|
||||
/* EABI version */
|
||||
str r7, [sp, #-4]!
|
||||
mov r7, #(__ARM_NR_cacheflush & 0xff)
|
||||
#if (__ARM_NR_cacheflush & 0x00ff00)
|
||||
orr r7, r7, #(__ARM_NR_cacheflush & 0x00ff00)
|
||||
#endif
|
||||
#if (__ARM_NR_cacheflush & 0xff0000)
|
||||
orr r7, r7, #(__ARM_NR_cacheflush & 0xff0000)
|
||||
#endif
|
||||
swi 0
|
||||
ldr r7, [sp], #4
|
||||
#else
|
||||
/* OABI */
|
||||
swi __ARM_NR_cacheflush
|
||||
#endif
|
||||
bx lr
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue