Changeset 14184


Ignore:
Timestamp:
Aug 13, 2010, 11:01:07 AM (9 years ago)
Author:
gb
Message:

Change the signature of the ARM flush_cache_lines() - from
startptr,endptr to startptr,size - and implement the syscall
for iOS/Darwin.

Location:
trunk/source/lisp-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/arm-asmutils.s

    r14169 r14184  
    2222        _beginfile
    2323
    24 /* Force data from r0 to r1 into the icache */       
     24/* Force data from r0, size r1 into the icache */       
    2525_exportfn(C(flush_cache_lines))
    2626        __ifdef(`LINUX')
     27        __(add r1,r1,r0)
    2728        __(mov r2,#0)           /* options.  Pass as 0 until we know better */
    2829        __(mov r12,r7)          /* preserve r7 ;  r12 saved by syscall */
     
    3233        __(mov r7,r12)
    3334        __endif
     35        __ifdef(`DARWIN')
     36        __(mov r3,#0)
     37        __(mov r12,#0x80000000)
     38        __(svc #0)
     39        __endif               
    3440        __(bx lr)
    3541
  • trunk/source/lisp-kernel/pmcl-kernel.c

    r14167 r14184  
    19971997#endif
    19981998#ifdef ARM
    1999   extern void flush_cache_lines(void *, void *);
    2000   flush_cache_lines(start,((char *)start)+nbytes);
     1999  extern void flush_cache_lines(void *, size_t);
     2000  flush_cache_lines(start,nbytes);
    20012001#endif
    20022002}
Note: See TracChangeset for help on using the changeset viewer.