haiku/headers/build/os
Adrien Destugues 68d37cfb3a Fix definition of PAGESIZE and B_PAGE_SIZE
On sparc, the minimal page size we can use is 8K. Since B_PAGE_SIZE and
PAGESIZE defines were hardcoded to 4K, this resulted in a lot of
confusion in all code trying to manipulate pages.

- Remove cpu.h from headers/private/kernel/arch/*. It dates back from
  NewOS and was not used anymore since our kernel uses B_PAGE_SIZE
  (PAGE_SIZE was the only thing defined in this header).
- Add posix/arch/*/limits.h with the arch specific page size and include
  it from the main limits.h.
- Adjust bios_ia32/debug.cpp which was the only place using the
  PAGE_SIZE constant from the deleted headers.
- Change OS.h to define B_PAGE_SIZE to be the same as POSIX PAGESIZE.
- Define PAGESIZE in the build header if the host OS doesn't.

Change-Id: I8c3732cf952ea3c2f088aa16d216678fbf198b96
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3558
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-01-08 12:02:16 +00:00
..
add-ons/registrar
app headers/build: Reunify BeBuild.h and related cleanup. 2017-12-11 19:15:47 -05:00
drivers s/Haiku License/MIT License/g. 2019-08-30 18:16:02 -04:00
interface Build fix. 2020-07-14 19:33:20 +02:00
kernel Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
locale Package Kit: internationalize strings that may be displayed to the user 2020-04-13 09:00:10 +00:00
package
storage s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
support build: Add BufferIO stub header. 2020-06-02 00:03:18 -04:00
BeBuild.h build/BeBuild.h: Throw an error if the compatibility headers are not included. 2019-03-26 18:59:42 -04:00