Changeset 44eb9893 in rtems


Ignore:
Timestamp:
Sep 10, 2015, 3:20:41 PM (4 years ago)
Author:
Marcos Diaz <marcos.diaz@…>
Branches:
4.11
Children:
deb3f29
Parents:
ccebc571
git-author:
Marcos Diaz <marcos.diaz@…> (09/10/15 15:20:41)
git-committer:
Joel Sherrill <joel.sherrill@…> (09/10/15 18:30:43)
Message:

Beaglebone: fix missing clobber in inline assembly.

flush_data_cache uses R0 directly but doesn't list it as a clobbered
register. Compiling with -O3 made this code break, since the function
that calls flush_data_cache already uses r0.

closes #2416.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/beagle/include/bsp.h

    rccebc571 r44eb9893  
    112112static inline void flush_data_cache(void)
    113113{
    114     asm volatile("mov r0, #0; mcr p15, #0, r0, c7, c10, #4" : : : "memory");
     114    asm volatile(
     115        "mov r0, #0\n"
     116        "mcr p15, #0, r0, c7, c10, #4\n"
     117        : /* No outputs */
     118        : /* No inputs */
     119        : "r0","memory"
     120    );
    115121}
    116122
Note: See TracChangeset for help on using the changeset viewer.