haiku/headers/os/kernel
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
..
debugger.h arm64: Add more headers for code compilation 2019-09-01 03:02:49 +00:00
elf.h elf.h: add some missing defines 2020-12-28 22:20:43 +01:00
fs_attr.h * Introduced new fs_lopen_attr_dir() function that opens the attribute 2011-08-10 21:08:00 +00:00
fs_index.h * Updated license header. 2009-07-29 00:57:41 +00:00
fs_info.h NodeMonitor: Added B_WATCH_CHILDREN flag. 2016-03-28 14:31:27 +02:00
fs_query.h * Updated license header. 2009-07-29 00:57:41 +00:00
fs_volume.h * Updated license header. 2009-07-29 00:57:41 +00:00
image.h headers/kernel: Add argument names to initialization functions. 2019-02-02 18:10:54 -05:00
OS.h Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
scheduler.h kernel, libroot: Make scheduler modes interface public 2013-11-20 23:32:40 +01:00