bumblebee use eclic_mtip_handler as systick handler

This commit is contained in:
acevest
2019-10-16 18:16:42 +08:00
parent f41e287c2a
commit f4d5ff70b2
3 changed files with 6 additions and 18 deletions

View File

@@ -19,22 +19,6 @@
.global irq_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
irq_entry:
j irq_entry

View File

@@ -1,5 +1,7 @@
#include "tos.h"
void SysTick_IRQHandler() {
// systick handler
void eclic_mtip_handler() {
port_systick_config((uint32_t)k_cpu_cycle_per_tick);
if (tos_knl_is_running()) {
tos_knl_irq_enter();

View File

@@ -1,5 +1,7 @@
#include "tos.h"
void SysTick_IRQHandler() {
// systick handler
void eclic_mtip_handler() {
port_systick_config((uint32_t)k_cpu_cycle_per_tick);
if (tos_knl_is_running()) {
tos_knl_irq_enter();