patch-2.1.29 linux/include/asm-sparc/winmacro.h
Next file: linux/include/asm-sparc64/asm_offsets.h
Previous file: linux/include/asm-sparc/unistd.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed Mar 5 17:04:33 1997
- Orig file:
v2.1.28/linux/include/asm-sparc/winmacro.h
- Orig date:
Sat Nov 9 00:30:28 1996
diff -u --recursive --new-file v2.1.28/linux/include/asm-sparc/winmacro.h linux/include/asm-sparc/winmacro.h
@@ -1,4 +1,4 @@
-/* $Id: winmacro.h,v 1.17 1996/09/19 20:27:44 davem Exp $
+/* $Id: winmacro.h,v 1.18 1997/03/04 16:27:27 jj Exp $
* winmacro.h: Window loading-unloading macros.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -98,18 +98,18 @@
STORE_PT_INS(base_reg)
#define SAVE_BOLIXED_USER_STACK(cur_reg, scratch) \
- ld [%cur_reg + THREAD_W_SAVED], %scratch; \
+ ld [%cur_reg + AOFF_task_tss + AOFF_thread_w_saved], %scratch; \
sll %scratch, 2, %scratch; \
add %scratch, %cur_reg, %scratch; \
- st %sp, [%scratch + THREAD_STACK_PTRS]; \
+ st %sp, [%scratch + AOFF_task_tss + AOFF_thread_rwbuf_stkptrs]; \
sub %scratch, %cur_reg, %scratch; \
sll %scratch, 4, %scratch; \
add %scratch, %cur_reg, %scratch; \
- STORE_WINDOW(scratch + THREAD_REG_WINDOW); \
+ STORE_WINDOW(scratch + AOFF_task_tss + AOFF_thread_reg_window); \
sub %scratch, %cur_reg, %scratch; \
srl %scratch, 6, %scratch; \
add %scratch, 1, %scratch; \
- st %scratch, [%cur_reg + THREAD_W_SAVED];
+ st %scratch, [%cur_reg + AOFF_task_tss + AOFF_thread_w_saved];
#ifdef __SMP__
#define LOAD_CURRENT(dest_reg, idreg) \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov