bsp,abstract-machine: add dummy functions to pass linking
This commit is contained in:
parent
0369aa35c7
commit
d646fbfe58
3 changed files with 35 additions and 0 deletions
19
bsp/abstract-machine/src/context.c
Normal file
19
bsp/abstract-machine/src/context.c
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#include <klib.h>
|
||||||
|
#include <rtthread.h>
|
||||||
|
|
||||||
|
void rt_hw_context_switch_to(rt_ubase_t to) {
|
||||||
|
assert(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void rt_hw_context_switch(rt_ubase_t from, rt_ubase_t to) {
|
||||||
|
assert(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void rt_hw_context_switch_interrupt(void *context, rt_ubase_t from, rt_ubase_t to, struct rt_thread *to_thread) {
|
||||||
|
assert(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter, rt_uint8_t *stack_addr, void *texit) {
|
||||||
|
assert(0);
|
||||||
|
return NULL;
|
||||||
|
}
|
|
@ -1,3 +1,9 @@
|
||||||
|
#include <klib.h>
|
||||||
|
|
||||||
|
void rt_hw_board_init() {
|
||||||
|
assert(0);
|
||||||
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
extern int entry(void);
|
extern int entry(void);
|
||||||
entry();
|
entry();
|
||||||
|
|
10
bsp/abstract-machine/src/interrupt.c
Normal file
10
bsp/abstract-machine/src/interrupt.c
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#include <am.h>
|
||||||
|
#include <klib.h>
|
||||||
|
|
||||||
|
void rt_hw_interrupt_enable() {
|
||||||
|
assert(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void rt_hw_interrupt_disable() {
|
||||||
|
assert(0);
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue