提交 b1442772 编写于 作者: Z Zihao Yu

x86-sdi: add dummy cte and vme to compile amtest

上级 6960c1cc
......@@ -7,6 +7,8 @@ AM_SRCS += sdi/trm.c \
nemu/common/input.c \
nemu/common/timer.c \
nemu/common/video.c \
dummy/cte.c \
dummy/vme.c \
dummy/mpe.c \
CFLAGS += -mstringop-strategy=loop -I$(AM_HOME)/am/src/sdi/include
......
#include <am.h>
int _cte_init(_Context*(*handler)(_Event, _Context*)) {
return 0;
}
_Context* _kcontext(_Area kstack, void (*entry)(void *), void *arg) {
return NULL;
}
void _yield() {
}
int _intr_read() {
return 0;
}
void _intr_write(int enable) {
}
#include <am.h>
int _vme_init(void* (*pgalloc_f)(size_t), void (*pgfree_f)(void*)) {
return 0;
}
void _protect(_AddressSpace *as) {
}
void _unprotect(_AddressSpace *as) {
}
void _map(_AddressSpace *as, void *va, void *pa, int prot) {
}
_Context* _ucontext(_AddressSpace *as, _Area kstack, void *entry) {
return NULL;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册