2 Star 3 Fork 0

thor / unisim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mmu.h 491 Bytes
一键复制 编辑 原始数据 按行查看 历史
thor 提交于 2013-11-26 07:04 . prime test passed
#ifndef MMU_H
#define MMU_H
#include "loader.h"
#define STACK_START 0x1000000
#define STACK_SIZE 0x1000000
#define STACK_TOP 0x2000000
#define CS_START 0x2000004
#define CS_SIZE 0x1000000
#define CS_END 0x3000004
char *V2P(int addr);
void fetch_nbyte(int addr, void *dest, int len);
void fetch_dword(int addr, void *dest);
void write_word(int addr, int word);
void write_byte(int addr, char byte);
void write_hword(int addr, short hword);
int alloc_stack();
int alloc_cs();
#endif
C
1
https://gitee.com/thor/unisim.git
git@gitee.com:thor/unisim.git
thor
unisim
unisim
master

搜索帮助