git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13517 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
6e4e900e6c
commit
5e0daf6d1a
|
@ -33,7 +33,7 @@
|
||||||
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
|
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
|
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="brr-usart_init-(format)" val="4"/><content id="lr-sp-ctx-tp-chThdCreateStatic-(format)" val="4"/></contentList>"/>
|
<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><contentList><content id="lr-sp-ctx-tp-chThdCreateStatic-(format)" val="4"/><content id="brr-usart_init-(format)" val="4"/></contentList>"/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <globalVariableList/> "/>
|
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <globalVariableList/> "/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList> <memoryBlockExpressionItem> <expression text="0xe000a40"/> </memoryBlockExpressionItem> </memoryBlockExpressionList> "/>
|
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList> <memoryBlockExpressionItem> <expression text="0xe000a40"/> </memoryBlockExpressionItem> </memoryBlockExpressionList> "/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="./build/ch.elf"/>
|
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="./build/ch.elf"/>
|
||||||
|
|
|
@ -54,8 +54,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief Tail ISR context switch code.
|
* @brief Tail ISR context switch code.
|
||||||
*
|
*
|
||||||
* @param[in] sp the stack pointer being switched-out
|
* @return The thread being switched-in.
|
||||||
* @return The stack pointer being switched-in.
|
|
||||||
*/
|
*/
|
||||||
thread_t *port_schedule_next(void) {
|
thread_t *port_schedule_next(void) {
|
||||||
thread_t *ntp;
|
thread_t *ntp;
|
||||||
|
@ -63,7 +62,7 @@ thread_t *port_schedule_next(void) {
|
||||||
chSysLock();
|
chSysLock();
|
||||||
|
|
||||||
/* TODO statistics, tracing etc */
|
/* TODO statistics, tracing etc */
|
||||||
ntp = chSchRunAhead();
|
ntp = chSchSelectFirstI();
|
||||||
|
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,8 @@ SVC_Handler:
|
||||||
PendSV_Handler:
|
PendSV_Handler:
|
||||||
/* Pointer to the current thread.*/
|
/* Pointer to the current thread.*/
|
||||||
ldr r1, =ch
|
ldr r1, =ch
|
||||||
|
// movw r1, #:lower16:ch
|
||||||
|
// movt r1, #:upper16:ch
|
||||||
ldr r1, [r1, #CURRENT_OFFSET]
|
ldr r1, [r1, #CURRENT_OFFSET]
|
||||||
|
|
||||||
/* Saving callee context of thread being swapped out.*/
|
/* Saving callee context of thread being swapped out.*/
|
||||||
|
|
|
@ -724,7 +724,7 @@ static inline void chSchPreemption(void) {
|
||||||
*
|
*
|
||||||
* @special
|
* @special
|
||||||
*/
|
*/
|
||||||
static inline thread_t *chSchRunAhead(void) {
|
static inline thread_t *chSchSelectFirstI(void) {
|
||||||
thread_t *otp = currp;
|
thread_t *otp = currp;
|
||||||
thread_t *ntp;
|
thread_t *ntp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue