summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-09-05 22:04:21 +0200
committerRichard Braun <rbraun@sceen.net>2017-09-05 22:04:21 +0200
commit8b1b21a33dbe4b114400090ff385c4bf8daea0c8 (patch)
tree3aa9f196f4e3ad4c59507a7f9b884d9bf078c7e9 /test
parent1d6ea814d13a05fd4d64e0764acf667f67679092 (diff)
kern/xcall: make sure functions are always run from interrupt context
Diffstat (limited to 'test')
-rw-r--r--test/test_xcall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_xcall.c b/test/test_xcall.c
index 4e02d6f3..f516401e 100644
--- a/test/test_xcall.c
+++ b/test/test_xcall.c
@@ -37,6 +37,8 @@ test_fn(void *arg)
{
(void)arg;
+ assert(thread_interrupted());
+
printf("function called, running on cpu%u\n", cpu_id());
test_done = 1;
}