Changeset b254b3b in mainline
- Timestamp:
- 2006-09-14T08:55:51Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 775df25
- Parents:
- da02e69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/asm.h
rda02e69 rb254b3b 42 42 #include <config.h> 43 43 #include <time/clock.h> 44 #include <arch/stack.h> 44 45 45 46 /** Read Processor State register. … … 245 246 static inline uintptr_t get_stack_base(void) 246 247 { 247 uintptr_t v;248 249 __asm__ volatile ("a ndn %%sp, %1, %0\n" : "=r" (v) : "r" (STACK_SIZE-1));250 251 return v;248 uintptr_t unbiased_sp; 249 250 __asm__ volatile ("add %%sp, %1, %0\n" : "=r" (unbiased_sp) : "i" (STACK_BIAS)); 251 252 return ALIGN_DOWN(unbiased_sp, STACK_SIZE); 252 253 } 253 254
Note:
See TracChangeset
for help on using the changeset viewer.