Subversion Repositories HelenOS

Rev

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

Rev 207 Rev 210
Line 28... Line 28...
28
 
28
 
29
#ifndef __ppc_CONTEXT_H__
29
#ifndef __ppc_CONTEXT_H__
30
#define __ppc_CONTEXT_H__
30
#define __ppc_CONTEXT_H__
31
 
31
 
32
#include <arch/types.h>
32
#include <arch/types.h>
33
#include <arch/drivers/ofw.h>
-
 
34
 
33
 
35
#define SP_DELTA    8
34
#define SP_DELTA    8
36
 
35
 
37
#ifdef context_map_stack
-
 
38
#undef context_map_stack
-
 
39
#endif
-
 
40
 
-
 
41
#define context_map_stack(stack, size) \
-
 
42
    ofw_claim((void *) stack, size, 0);
-
 
43
 
-
 
44
struct context {
36
struct context {
45
    __u32 r0;
37
    __u32 r0;
46
    __u32 sp;
38
    __u32 sp;
47
    __u32 r2;
39
    __u32 r2;
48
    __u32 r3;
40
    __u32 r3;