bps.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3. %
  4. % File: PXK:bps.c
  5. % Description: Declare bps space as a static array.
  6. % Author: Leigh Stoller
  7. % Created: 18-Dec-86
  8. % Package:
  9. % Status: Open Source: BSD License
  10. %
  11. % (c) Copyright 1982, University of Utah
  12. %
  13. % Redistribution and use in source and binary forms, with or without
  14. % modification, are permitted provided that the following conditions are met:
  15. %
  16. % * Redistributions of source code must retain the relevant copyright
  17. % notice, this list of conditions and the following disclaimer.
  18. % * Redistributions in binary form must reproduce the above copyright
  19. % notice, this list of conditions and the following disclaimer in the
  20. % documentation and/or other materials provided with the distribution.
  21. %
  22. % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  23. % AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  24. % THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  25. % PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNERS OR
  26. % CONTRIBUTORS
  27. % BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  28. % CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  29. % SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  30. % INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  31. % CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  32. % ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  33. % POSSIBILITY OF SUCH DAMAGE.
  34. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  35. %
  36. % Revisions:
  37. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  38. */
  39. /* The ukernel model had the problem that bps came after the data segment
  40. of the ukernel. This meant that unexec could not move the text/data
  41. boundary over code in bps, since it would write-protect the data segment,
  42. making it very difficult to change ukernel variables. This file is
  43. now inserted between main.s and dmain.s, making it possible to extend
  44. text boundry. See setupbps() in bpsheap.c for more info.
  45. */
  46. #include "psl.h"
  47. #ifndef BPSSIZE
  48. #define BPSSIZE 1600000 /* Minimum size in bytes */
  49. #endif
  50. char bps[BPSSIZE];
  51. /* end of bps.c */