param.h 834 B

1234567891011121314151617181920212223242526272829303132
  1. /* $OpenBSD: param.h,v 1.3 2013/03/23 16:12:23 deraadt Exp $ */
  2. /* Public Domain */
  3. #ifndef _MACHINE_PARAM_H_
  4. #define _MACHINE_PARAM_H_
  5. #define MACHINE "loongson"
  6. #define _MACHINE loongson
  7. #define MACHINE_ARCH "mips64el" /* not the canonical endianness */
  8. #define _MACHINE_ARCH mips64el
  9. #define MACHINE_CPU "mips64"
  10. #define _MACHINE_CPU mips64
  11. #define MID_MACHINE MID_MIPS64
  12. #ifdef _KERNEL
  13. /*
  14. * The Loongson level 1 cache expects software to prevent virtual
  15. * aliases. Unfortunately, since this cache is physically tagged,
  16. * this would require all virtual address to have the same bits 14
  17. * and 13 as their physical addresses, which is not something the
  18. * kernel can guarantee unless the page size is at least 16KB.
  19. */
  20. #define PAGE_SHIFT 14
  21. #endif /* _KERNEL */
  22. #include <mips64/param.h>
  23. #endif /* _MACHINE_PARAM_H_ */