Changeset e762b43 in mainline for kernel/arch/arm32/include/asm.h


Ignore:
Timestamp:
2009-03-03T16:12:43Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
02fd705
Parents:
f24d300
Message:

better inline assembler readability using the new symbolic syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/asm.h

    rf24d300 re762b43  
    2727 */
    2828
    29 /** @addtogroup arm32   
     29/** @addtogroup arm32
    3030 * @{
    3131 */
    32 /** @file 
     32/** @file
    3333 *  @brief Declarations of functions implemented in assembly.
    3434 */
     
    7878
    7979/** Return base address of current stack.
    80  * 
     80 *
    8181 * Return the base address of the current stack.
    8282 * The stack is assumed to be STACK_SIZE bytes long.
    8383 * The stack must start on page boundary.
     84 *
    8485 */
    8586static inline uintptr_t get_stack_base(void)
     
    8788        uintptr_t v;
    8889        asm volatile (
    89                 "and %0, sp, %1\n"
    90                 : "=r" (v)
    91                 : "r" (~(STACK_SIZE - 1))
     90                "and %[v], sp, %[size]\n"
     91                : [v] "=r" (v)
     92                : [size] "r" (~(STACK_SIZE - 1))
    9293        );
    9394        return v;
Note: See TracChangeset for help on using the changeset viewer.