Subversion Repositories HelenOS

Rev

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

Rev 2083 Rev 2774
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_amd64_CONTEXT_H_
35
#ifndef KERN_amd64_CONTEXT_H_
36
#define KERN_amd64_CONTEXT_H_
36
#define KERN_amd64_CONTEXT_H_
37
 
37
 
-
 
38
#ifdef KERNEL
-
 
39
 
38
#include <arch/types.h>
40
#include <arch/types.h>
39
 
41
 
40
/* According to ABI the stack MUST be aligned on
42
/* According to ABI the stack MUST be aligned on
41
 * 16-byte boundary. If it is not, the va_arg calling will
43
 * 16-byte boundary. If it is not, the va_arg calling will
42
 * panic sooner or later
44
 * panic sooner or later
43
 */
45
 */
44
#define SP_DELTA     16
46
#define SP_DELTA     16
45
 
47
 
-
 
48
#endif /* KERNEL */
-
 
49
 
46
/* We include only registers that must be preserved
50
/* We include only registers that must be preserved
47
 * during function call
51
 * during function call
48
 */
52
 */
49
typedef struct {
53
typedef struct {
50
    uintptr_t sp;
54
    uintptr_t sp;