Changeset e7b7be3f in mainline for kernel/arch/sparc64/src/fpu_context.c
- Timestamp:
- 2007-01-22T13:10:08Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f3fc9b
- Parents:
- 62c63fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/fpu_context.c
r62c63fc re7b7be3f 40 40 void fpu_context_save(fpu_context_t *fctx) 41 41 { 42 __asm__volatile (42 asm volatile ( 43 43 "std %%f0, %0\n" 44 44 "std %%f2, %1\n" … … 68 68 */ 69 69 70 __asm__volatile (70 asm volatile ( 71 71 "std %%f32, %0\n" 72 72 "std %%f34, %1\n" … … 91 91 ); 92 92 93 __asm__volatile ("stx %%fsr, %0\n" : "=m" (fctx->fsr));93 asm volatile ("stx %%fsr, %0\n" : "=m" (fctx->fsr)); 94 94 } 95 95 96 96 void fpu_context_restore(fpu_context_t *fctx) 97 97 { 98 __asm__volatile (98 asm volatile ( 99 99 "ldd %0, %%f0\n" 100 100 "ldd %1, %%f2\n" … … 125 125 */ 126 126 127 __asm__volatile (127 asm volatile ( 128 128 "ldd %0, %%f32\n" 129 129 "ldd %1, %%f34\n" … … 149 149 ); 150 150 151 __asm__volatile ("ldx %0, %%fsr\n" : : "m" (fctx->fsr));151 asm volatile ("ldx %0, %%fsr\n" : : "m" (fctx->fsr)); 152 152 } 153 153
Note:
See TracChangeset
for help on using the changeset viewer.