memory_account.h
资源名称:tizos.rar [点击查看]
上传用户:qddsws
上传日期:2022-06-22
资源大小:723k
文件大小:0k
源码类别:
操作系统开发
开发平台:
C/C++
- #ifndef MEMORY_ACCOUNT_H
- #define MEMORY_ACCOUNT_H
- #include <types.h>
- #define E801_BOOT_BASE 0x7000
- struct e801_memory {
- word lowmem; //Mem騬ia de 1Mb a 16Mb en Kb
- word highmem; //Mem騬ia per sobre de 16Mb en blocs de 64Kb
- } ;
- struct e820_entry {
- unsigned long BaseAddrLow;
- unsigned long BaseAddrHigh;
- unsigned long LengthLow;
- unsigned long LengthHigh;
- unsigned long Type;
- };
- unsigned long total_system_memory();
- void recover_boot_e801 (unsigned long base);
- #endif