- Timestamp:
- 2005-08-29T20:31:23Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 81887b7
- Parents:
- 4dd0704
- Location:
- arch
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/asm.h
r4dd0704 r1fbbcd6 162 162 * Return the base address of the current stack. 163 163 * The stack is assumed to be STACK_SIZE bytes long. 164 * The stack must start on page boundary. 164 165 */ 165 166 static inline __address get_stack_base(void) -
arch/ia32/include/context.h
r4dd0704 r1fbbcd6 32 32 #include <arch/types.h> 33 33 34 #define STACK_ITEM_SIZE 4 35 34 36 /* 35 37 * Both context_save() and context_restore() eat two doublewords from the stack. 36 38 * First for pop of the saved register, second during ret instruction. 39 * 40 * One item is put onto stack to support get_stack_base(). 37 41 */ 38 #define SP_DELTA 842 #define SP_DELTA (8+STACK_ITEM_SIZE) 39 43 40 44 struct context { -
arch/ia32/include/cpu.h
r4dd0704 r1fbbcd6 30 30 #define __ia32_CPU_H__ 31 31 32 #include <config.h>33 #include <proc/thread.h>34 32 #include <typedefs.h> 35 33 #include <arch/pm.h> -
arch/ia64/include/asm.h
r4dd0704 r1fbbcd6 33 33 #include <config.h> 34 34 35 /* TODO: implement the real stuff */ 35 /** Return base address of current stack 36 * 37 * Return the base address of the current stack. 38 * The stack is assumed to be STACK_SIZE long. 39 * The stack must start on page boundary. 40 */ 36 41 static inline __address get_stack_base(void) 37 42 { 38 return NULL; 43 __u64 v; 44 45 __asm__ volatile ("and %0 = %1, r12" : "=r" (v) : "r" (~(STACK_SIZE-1))); 46 47 return v; 39 48 } 40 49 -
arch/ia64/include/context.h
r4dd0704 r1fbbcd6 32 32 #include <arch/types.h> 33 33 34 #define STACK_ITEM_SIZE 16 35 34 36 /* 35 37 * context_save() and context_restore() are both leaf procedures. 36 38 * No need to allocate scratch area. 39 * 40 * One item is put onto the stack to support get_stack_base(). 37 41 */ 38 #define SP_DELTA 042 #define SP_DELTA (0+STACK_ITEM_SIZE) 39 43 40 44 #ifdef context_set -
arch/mips/include/asm.h
r4dd0704 r1fbbcd6 39 39 * Return the base address of the current stack. 40 40 * The stack is assumed to be STACK_SIZE bytes long. 41 * The stack must start on page boundary. 41 42 */ 42 43 static inline __address get_stack_base(void) -
arch/mips/include/context.h
r4dd0704 r1fbbcd6 32 32 #include <arch/types.h> 33 33 34 #define SP_DELTA 0 34 #define STACK_ITEM_SIZE 4 35 36 /* 37 * Put one item onto the stack to support get_stack_base(). 38 */ 39 #define SP_DELTA (0+STACK_ITEM_SIZE) 35 40 36 41
Note:
See TracChangeset
for help on using the changeset viewer.