HPCToolkit
hardware-thread-id.c
Go to the documentation of this file.
1 //
2 // Get hardware thread id
3 //
4 // !!! WARNING !!!
5 //
6 // As of 29 jul 2014, this simple function CANNOT be a 'static inline' in a .h file
7 // This function MUST BE compiled with a backend compiler. Using the #include mechanism
8 // would use the front end compiler.
9 //
10 // When this changes, remove this warning
11 //
12 // !!!! END WARNING !!!!!
13 //
14 
15 #include "hardware-thread-id.h"
16 #include <spi/include/kernel/location.h>
17 
18 int
20 {
21  return Kernel_ProcessorID();
22 }
int get_hw_tid(void)