Subversion Repositories HelenOS

Rev

Rev 1865 | Rev 1881 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1865 Rev 1880
Line 220... Line 220...
220
 */
220
 */
221
static inline uintptr_t get_stack_base(void)
221
static inline uintptr_t get_stack_base(void)
222
{
222
{
223
    uintptr_t v;
223
    uintptr_t v;
224
   
224
   
225
    __asm__ volatile ("and %%sp, %1, %0\n" : "=r" (v) : "r" (~(STACK_SIZE-1)));
225
    __asm__ volatile ("andn %%sp, %1, %0\n" : "=r" (v) : "r" (STACK_SIZE-1));
226
   
226
   
227
    return v;
227
    return v;
228
}
228
}
229
 
229
 
230
/** Read Version Register.
230
/** Read Version Register.