From 61319c96803de4f86c664866a114f3cbc3ca6be6 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sat, 6 Dec 2014 00:02:44 -0700 Subject: [PATCH] smp: share: pruxffi.o --- README.txt | 5 ++++- src/microcode/pruxffi.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index e0eedc05b..9616a775b 100644 --- a/README.txt +++ b/README.txt @@ -892,10 +892,13 @@ command line. The remaining 12 belong to the 7 microcode modules and pruxffi.o: 00000004 b c_call_continue - 00000000 B cstack_depth + 00000000 B cstack_depth __thread 0000000c b return_to_c 00000008 b run_callback + OK. The primitive caches are single words, atomically + read/written. If a cache is filled twice, no harm done. + cmpint.o: 00000010 b builtin_names 0000000c b builtins diff --git a/src/microcode/pruxffi.c b/src/microcode/pruxffi.c index cc8f28ff6..b935c1572 100644 --- a/src/microcode/pruxffi.c +++ b/src/microcode/pruxffi.c @@ -402,7 +402,7 @@ cstack_pop (char * tos) } /* Number CStack frames, to detect slips. */ -int cstack_depth = 0; +__thread int cstack_depth = 0; /* Callouts */ -- 2.25.1