mm.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* arch/x86/include/arch/mm.h
  2. *
  3. * This file is part of evx.
  4. *
  5. * evx is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * evx is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with evx. If not, see <https://www.gnu.org/licenses/>
  17. */
  18. #ifndef __ARCH_MM_H
  19. #define __ARCH_MM_H
  20. #ifndef __ASSEMBLER__
  21. #include <arch/archinfo.h>
  22. #define E820_ADDR ((struct e820_entry *) 0x90000)
  23. #define E820_TYPE_RAM 1
  24. #define E820_TYPE_ROM 2
  25. #define E820_TYPE_MAX 5
  26. struct e820_entry {
  27. __archptr_t addr;
  28. __archptr_t len;
  29. __uint32_t type;
  30. } __attribute__ ((packed));
  31. #endif
  32. #endif