memory_account.c
资源名称:tizos.rar [点击查看]
上传用户:qddsws
上传日期:2022-06-22
资源大小:723k
文件大小:0k
源码类别:
操作系统开发
开发平台:
C/C++
- #include <i386/memory_account.h>
- unsigned long total_memory; // En MBytes
- void recover_boot_e801 (unsigned long base) {
- struct e801_memory* mem=(struct e801_memory*) base;
- total_memory = (mem->lowmem/1024)+ 1 + mem->highmem*64/1024;
- }
- unsigned long total_system_memory() {
- return total_memory;
- }