Subversion Repositories HelenOS

Rev

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

Rev 2345 Rev 2356
Line 28... Line 28...
28
 
28
 
29
/** @addtogroup arm32  
29
/** @addtogroup arm32  
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
-
 
33
 *  @brief Thread context.
33
 */
34
 */
34
 
35
 
35
#ifndef KERN_arm32_CONTEXT_H_
36
#ifndef KERN_arm32_CONTEXT_H_
36
#define KERN_arm32_CONTEXT_H_
37
#define KERN_arm32_CONTEXT_H_
37
 
38
 
38
#include <align.h>
39
#include <align.h>
39
#include <arch/stack.h>
40
#include <arch/stack.h>
40
 
41
 
41
 
-
 
42
/* Put one item onto the stack to support get_stack_base() and align it up. */
42
/* Put one item onto the stack to support get_stack_base() and align it up. */
43
#define SP_DELTA  (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
43
#define SP_DELTA  (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
44
 
44
 
45
 
-
 
46
#ifndef __ASM__
45
#ifndef __ASM__
47
 
46
 
48
#include <arch/types.h>
47
#include <arch/types.h>
49
 
48
 
50
 
-
 
51
/* Structure containing registers that must be preserved across function calls. */
49
/* Struct containing registers that must be preserved across function calls. */
52
typedef struct {
50
typedef struct {
53
    uint32_t cpu_mode;
51
    uint32_t cpu_mode;
54
    uintptr_t sp;
52
    uintptr_t sp;
55
    uintptr_t pc;
53
    uintptr_t pc;
56
   
54