pc532mach.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Copyright (C) 2007-2022 Free Software Foundation, Inc.
  2. This file is part of BFD, the Binary File Descriptor library.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  14. MA 02110-1301, USA. */
  15. #include <machine/vmparam.h>
  16. #include <sys/param.h>
  17. /* This is an ugly way to hack around the incorrect
  18. * definition of UPAGES in ns532/machparam.h.
  19. *
  20. * The definition should specify the size reserved
  21. * for "struct user" in core files in PAGES,
  22. * but instead it gives it in 512-byte core-clicks
  23. * for ns532, i386 and i860. UPAGES is used only in trad-core.c.
  24. */
  25. #if UPAGES == 16
  26. #undef UPAGES
  27. #define UPAGES 2
  28. #endif
  29. #if UPAGES != 2
  30. #error UPAGES is neither 2 nor 16
  31. #endif
  32. #define HOST_PAGE_SIZE 1
  33. #define HOST_SEGMENT_SIZE NBPG
  34. #define HOST_TEXT_START_ADDR USRTEXT
  35. #define HOST_STACK_END_ADDR USRSTACK