All pastes #2128937 Raw Edit

Mine

public text v1 · immutable
#2128937 ·published 2012-03-16 21:15 UTC
rendered paste body
Index: libc/arm/gen/_set_tp.c
===================================================================
--- libc/arm/gen/_set_tp.c      (revision 232878)
+++ libc/arm/gen/_set_tp.c      (working copy)
@@ -29,7 +29,10 @@
 #include <string.h>
 #include <stdint.h>

+#include <machine/sysarch.h>
+
 void
 _set_tp(void *tp)
 {
+       *((struct tcb **)ARM_TP_ADDRESS) = tp;
 }