bumblebee use eclic_mtip_handler as systick handler
This commit is contained in:
@@ -19,22 +19,6 @@
|
|||||||
.global irq_entry
|
.global irq_entry
|
||||||
.global trap_entry
|
.global trap_entry
|
||||||
|
|
||||||
.extern SysTick_IRQHandler
|
|
||||||
|
|
||||||
.align 2
|
|
||||||
eclic_mtip_handler:
|
|
||||||
/* normal code */
|
|
||||||
// add sp, sp, -4
|
|
||||||
// sw ra, (sp)
|
|
||||||
// call SysTick_IRQHandler
|
|
||||||
// lw ra, (sp)
|
|
||||||
// add sp, sp, 4
|
|
||||||
// ret
|
|
||||||
|
|
||||||
/* the most efficient code */
|
|
||||||
j SysTick_IRQHandler
|
|
||||||
// the code will return to caller directly from SysTick_IRQHandler
|
|
||||||
|
|
||||||
.align 2
|
.align 2
|
||||||
irq_entry:
|
irq_entry:
|
||||||
j irq_entry
|
j irq_entry
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
#include "tos.h"
|
#include "tos.h"
|
||||||
void SysTick_IRQHandler() {
|
|
||||||
|
// systick handler
|
||||||
|
void eclic_mtip_handler() {
|
||||||
port_systick_config((uint32_t)k_cpu_cycle_per_tick);
|
port_systick_config((uint32_t)k_cpu_cycle_per_tick);
|
||||||
if (tos_knl_is_running()) {
|
if (tos_knl_is_running()) {
|
||||||
tos_knl_irq_enter();
|
tos_knl_irq_enter();
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
#include "tos.h"
|
#include "tos.h"
|
||||||
void SysTick_IRQHandler() {
|
|
||||||
|
// systick handler
|
||||||
|
void eclic_mtip_handler() {
|
||||||
port_systick_config((uint32_t)k_cpu_cycle_per_tick);
|
port_systick_config((uint32_t)k_cpu_cycle_per_tick);
|
||||||
if (tos_knl_is_running()) {
|
if (tos_knl_is_running()) {
|
||||||
tos_knl_irq_enter();
|
tos_knl_irq_enter();
|
||||||
|
Reference in New Issue
Block a user