haiku/headers/private/kernel/arch/sparc
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
..
arch_atomic.h sparc: remove unneeded atomic implementation 2021-01-01 22:04:13 +00:00
arch_cpu.h Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
arch_debug.h sparc: more platform headers 2019-03-03 20:56:20 +00:00
arch_int.h sparc: fix interrupt enable/disable code 2021-01-01 22:04:13 +00:00
arch_kernel_args.h sparc: add defines and minimum set of required files 2019-02-23 16:30:50 +00:00
arch_kernel.h sparc: More missing defines in platform headers 2019-03-30 15:23:15 +00:00
arch_mmu.h sparc: boot mmu support 2020-01-18 03:32:29 +00:00
arch_platform.h sparc: add kernel debug output 2021-01-01 22:10:43 +00:00
arch_system_info.h sparc: add defines and minimum set of required files 2019-02-23 16:30:50 +00:00
arch_thread_types.h kernel/arch/sparc: stubs to get the kernel to link 2019-03-03 20:56:20 +00:00
arch_thread.h sparc: implement thread local storage support 2021-01-01 00:45:13 +00:00
arch_user_debugger.h sparc: add defines and minimum set of required files 2019-02-23 16:30:50 +00:00
arch_vm_translation_map.h sparc: add defines and minimum set of required files 2019-02-23 16:30:50 +00:00
arch_vm_types.h sparc: add defines and minimum set of required files 2019-02-23 16:30:50 +00:00
arch_vm.h sparc: add defines and minimum set of required files 2019-02-23 16:30:50 +00:00
kernel.h It is accomplished ... 2002-07-09 12:24:59 +00:00
ktypes.h It is accomplished ... 2002-07-09 12:24:59 +00:00
sparcbootblock.h It is accomplished ... 2002-07-09 12:24:59 +00:00
stage2.h It is accomplished ... 2002-07-09 12:24:59 +00:00
thread_struct.h It is accomplished ... 2002-07-09 12:24:59 +00:00
types.h kernel/arch/sparc: stubs to get the kernel to link 2019-03-03 20:56:20 +00:00