Changeset ee69c49 in mainline for arch/sparc64/include/context.h
- Timestamp:
- 2005-12-01T10:36:02Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 74813216
- Parents:
- 5ff4f6b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/context.h
r5ff4f6b ree69c49 30 30 #define __sparc64_CONTEXT_H__ 31 31 32 #include <arch/stack.h> 33 32 34 #ifndef __sparc64_TYPES_H__ 33 35 # include <arch/types.h> … … 38 40 #endif 39 41 40 /** According to SPARC Compliance Definition, every stack frame is 16-byte aligned. */ 41 #define STACK_ALIGNMENT 16 42 43 #define STACK_ITEM_SIZE sizeof(__u64) 44 45 /** 46 * 16-extended-word save area for %i[0-7] and %l[0-7] registers. 47 */ 48 #define SAVE_AREA (16*STACK_ITEM_SIZE) 49 #define SP_DELTA SAVE_AREA 50 51 /** 52 * By convention, the actual top of the stack is %sp + BIAS. 53 */ 54 #define BIAS 2047 42 #define SP_DELTA STACK_WINDOW_SAVE_AREA_SIZE 55 43 56 44 #ifdef context_set … … 60 48 #define context_set(c, _pc, stack, size) \ 61 49 (c)->pc = ((__address) _pc) - 8; \ 62 (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - ( BIAS + SP_DELTA)50 (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA) 63 51 64 52 /*
Note:
See TracChangeset
for help on using the changeset viewer.