1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #9843 from gebart/pr/core-openocd-ro

core: Mark openocd info variables read-only
This commit is contained in:
Joakim Nohlgård 2018-08-29 09:24:21 +02:00 committed by GitHub
commit 92ef336259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,13 +65,13 @@ static uint32_t runqueue_bitcache = 0;
#endif
FORCE_USED_SECTION
uint8_t max_threads = sizeof(sched_threads) / sizeof(thread_t*);
const uint8_t max_threads = sizeof(sched_threads) / sizeof(thread_t*);
#ifdef DEVELHELP
/* OpenOCD can't determine struct offsets and additionally this member is only
* available if compiled with DEVELHELP */
FORCE_USED_SECTION
uint8_t _tcb_name_offset = offsetof(thread_t, name);
const uint8_t _tcb_name_offset = offsetof(thread_t, name);
#endif
#ifdef MODULE_SCHEDSTATISTICS