File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
FreeRTOS/Demo/CORTEX_MPU_Static_Simulator_Keil_GCC Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ standard names. */
148
148
149
149
/* Normal assert() semantics without relying on the provision of an assert.h
150
150
header file. */
151
- #define configASSERT ( x ) if( ( x ) == 0UL ) { portDISABLE_INTERRUPTS(); for( ;; ); }
151
+ #define configASSERT ( x ) if( ! ( x ) ) { portDISABLE_INTERRUPTS(); for( ;; ); }
152
152
153
153
/* LED not used at present, so just increment a variable to keep a count of the
154
154
number of times the LED would otherwise have been toggled. */
@@ -166,6 +166,11 @@ solely for the purpose of ensuring parameters are passed into tasks correctly. *
166
166
#define configREG_TEST_TASK_3_PARAMETER ( ( void * ) 0x12345678 )
167
167
#define configREG_TEST_TASK_4_PARAMETER ( ( void * ) 0x87654321 )
168
168
169
+ /* Ensure that all system calls are coming from the kernel
170
+ Additionally allow unprivileged tasks to have critical sections. */
171
+ #define configENFORCE_SYSTEM_CALLS_FROM_KERNEL_ONLY 1
172
+ #define configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS 1
173
+
169
174
#ifdef __cplusplus
170
175
}
171
176
#endif
Original file line number Diff line number Diff line change @@ -156,6 +156,13 @@ SECTIONS
156
156
PROVIDE_HIDDEN (__fini_array_end = .);
157
157
. = ALIGN (4);
158
158
159
+ /* Set start of system calls to here */
160
+ __syscalls_flash_start__ = .;
161
+ /* Place all FreeRTOS System calls here */
162
+ *(freertos_system_calls)
163
+ __syscalls_flash_end__ = .;
164
+ /* Mark the end of the system calls */
165
+
159
166
. = ALIGN (4);
160
167
161
168
*(.text*) /* all remaining code */
Original file line number Diff line number Diff line change 4
4
* Version: V2.0
5
5
* Date: 16 August 2013
6
6
*
7
- / * Copyright (c) 2011 - 2013 ARM LIMITED
7
+ * Copyright (c) 2011 - 2013 ARM LIMITED
8
8
9
9
All rights reserved.
10
10
Redistribution and use in source and binary forms, with or without
You can’t perform that action at this time.
0 commit comments