Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1780
Line 126... Line 126...
126
 *
126
 *
127
 * Return the base address of the current stack.
127
 * Return the base address of the current stack.
128
 * The stack is assumed to be STACK_SIZE bytes long.
128
 * The stack is assumed to be STACK_SIZE bytes long.
129
 * The stack must start on page boundary.
129
 * The stack must start on page boundary.
130
 */
130
 */
131
static inline __address get_stack_base(void)
131
static inline uintptr_t get_stack_base(void)
132
{
132
{
133
    __address v;
133
    uintptr_t v;
134
   
134
   
135
    asm volatile (
135
    asm volatile (
136
        "and %0, %%sp, %1\n"
136
        "and %0, %%sp, %1\n"
137
        : "=r" (v)
137
        : "=r" (v)
138
        : "r" (~(STACK_SIZE - 1))
138
        : "r" (~(STACK_SIZE - 1))
Line 149... Line 149...
149
    asm volatile (
149
    asm volatile (
150
        "b 0\n"
150
        "b 0\n"
151
    );
151
    );
152
}
152
}
153
 
153
 
154
void asm_delay_loop(__u32 t);
154
void asm_delay_loop(uint32_t t);
155
 
155
 
156
extern void userspace_asm(__address uspace_uarg, __address stack, __address entry);
156
extern void userspace_asm(uintptr_t uspace_uarg, uintptr_t stack, uintptr_t entry);
157
 
157
 
158
#endif
158
#endif
159
 
159
 
160
 /** @}
160
 /** @}
161
 */
161
 */