Index: kernel/arch/mips32/include/arch/context_struct.h
===================================================================
--- kernel/arch/mips32/include/arch/context_struct.h	(revision 7c3fb9bd77e4d2f6c10517a052e567f176fa91ee)
+++ kernel/arch/mips32/include/arch/context_struct.h	(revision 9d8307a94aa6d903e4fcaa8ae5c22e2fa48fddfb)
@@ -42,6 +42,7 @@
 #define CONTEXT_OFFSET_S8  0x28
 #define CONTEXT_OFFSET_GP  0x2c
-#define CONTEXT_OFFSET_IPL 0x30
-#define CONTEXT_SIZE       0x34
+#define CONTEXT_OFFSET_TP  0x30
+#define CONTEXT_OFFSET_IPL 0x34
+#define CONTEXT_SIZE       0x38
 
 #ifndef __ASSEMBLER__
@@ -63,4 +64,6 @@
 	uint32_t s8;
 	uint32_t gp;
+	/* We use the K1 register for userspace thread pointer. */
+	uint32_t tp;
 	ipl_t ipl;
 } context_t;
