📄 arch.h.svn-base
字号:
#ifndef __ARCH_H__#define __ARCH_H__/*lumit4510 memory layout16M SDRAM0x0 -- 0x1000000+------+ 0x1000000| | service entry description+------+ 0x0fffc00| || || || || || || || || |+------+ 0xa000 <-- kernel and service| |+------+ 0x8000 <-- bootloader| || || |+------+ 0x0000*//* Macro to adjust alignment */#define PAGE_SIZE 4096/* Page mapping */#define phys_to_virt(p_addr) p_addr#define virt_to_phys(v_addr) v_addr/** the start address of service description page */#define SERVICE_START 0x0fffc00#define SERVICE_SIZE 0x400/** the start address of service entry */#define ENTRY_START 0xa000struct mk_service;/** set arch memory information */void service_memory_init(struct mk_service* service);void rt_arch_init();char rt_getc();void rt_putc(const char c);void rt_puts(const char* str);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -