Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2189 → Rev 2190

/branches/arm/kernel/arch/arm32/include/asm.h
36,10 → 36,12
#define KERN_arm32_ASM_H_
 
#include <arch/types.h>
#include <arch/stack.h>
#include <config.h>
 
static inline void cpu_sleep(void)
{
/* TODO */
// not implemented on gxemul
}
 
/** Return base address of current stack
50,8 → 52,9
*/
static inline uintptr_t get_stack_base(void)
{
/* TODO */
return NULL;
uintptr_t v;
asm volatile ("and %0, sp, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1)));
return v;
}
 
extern void cpu_halt(void);