Changeset dfd735a1 in mainline for kernel/arch/arm32/src/userspace.c


Ignore:
Timestamp:
2010-07-16T11:40:06Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24697c3
Parents:
5c16ce7
Message:

Separate ldm(2) from instructions accessing banked registers with NOPs. This is forbidden and was corrupting the link register.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/userspace.c

    r5c16ce7 rdfd735a1  
    9898                "msr spsr_c, %[user_mode]\n"
    9999                "ldmfd sp, {r0-r12, sp, lr}^\n"
     100                "nop\n"         /* Cannot access sp immediately after ldm(2) */
    100101                "add sp, sp, #(15*4)\n"
    101102                "ldmfd sp!, {pc}^\n"
Note: See TracChangeset for help on using the changeset viewer.