haiku/headers/private/kernel/arch
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
..
alpha Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
arm efi/dtb: Find potential FDT on UEFI 2020-12-23 13:51:25 +00:00
arm64 arm64: Implement IRQ masking for kernel 2019-09-13 23:07:02 +00:00
generic kernel: generic user_memcpy now saves the old state. 2018-05-16 06:58:33 +00:00
m68k Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
mipsel Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
ppc Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
riscv64 Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
sh4 Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
sparc Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
x86 Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
atomic.h kernel: No need for arch specific ifdefs in arch/atomic.h 2014-01-20 04:09:17 +01:00
cpu.h kernel: add generic wrapper for accessing user memory 2014-09-14 22:39:07 +02:00
debug_console.h * Added arch_debug_blue_screen_try_getchar() and arch_debug_serial_try_getchar() 2011-06-12 17:15:42 +00:00
debug.h Reimplemented the gdb stub support for the 'g' command (read registers): 2011-06-03 15:35:10 +00:00
elf.h system: Build using public elf.h header 2015-11-07 11:49:56 +13:00
int.h kernel: Allow reassigning IRQs to logical processors 2013-11-18 04:55:25 +01:00
platform.h
real_time_clock.h
smp.h x86: Make arch/smp.h a C++ only header 2013-12-20 22:05:26 +01:00
system_info.h kernel/cpu: add cpu_frequency() 2020-09-15 20:42:14 +00:00
thread_types.h
thread.h Revert the rest of the COMPAT_MODE changes (back to hrev52003.) 2018-06-15 00:20:56 -04:00
timer.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
user_debugger.h kernel: +arch_get_thread_debug_cpu_state() 2016-04-24 17:29:28 +02:00
user_memory.h M68K: drop the custom C arch_cpu_user_mem*() for the default impl 2016-07-20 21:57:19 +02:00
vm_translation_map.h s/Haiku License/MIT License/g. 2019-08-30 18:16:02 -04:00
vm_types.h
vm.h * First run through the kernel's private parts to use phys_{addr,size}_t 2010-05-25 21:34:08 +00:00