haiku/headers/private/kernel/arch/ppc
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
..
board/sam460ex Sam460ex: Add cpu type and model defines to board_config.h 2012-06-02 01:25:53 +02:00
arch_atomic.h ppc/atomic.h: Readd arch atomic improperly removed in hrev51254 2017-07-03 09:55:51 -05:00
arch_cpu.h Fix definition of PAGESIZE and B_PAGE_SIZE 2021-01-08 12:02:16 +00:00
arch_debug.h kernel_ppc: Save caller's stack pointer in arch_debug_save_registers 2010-06-27 20:16:59 +00:00
arch_int.h Reworked the exception handling code. The former one ran into the 2006-01-09 03:30:52 +00:00
arch_kernel_args.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
arch_kernel.h kernel: tweak USER_SIZE. 2019-03-05 22:38:49 +00:00
arch_mmu_amcc440.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
arch_mmu.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
arch_platform.h PPC: Add a PPC_PLATFORM_U_BOOT platform type 2012-09-22 19:55:02 +02:00
arch_system_info.h Added missing arch_system_info.h header. 2005-01-20 18:00:33 +00:00
arch_thread_types.h ppc build fix 2011-05-30 19:51:45 +00:00
arch_thread.h Merged the signals branch into trunk, with these changes: 2011-01-10 21:54:38 +00:00
arch_user_debugger.h Added empty arch_user_debugger.h header. 2005-03-03 06:11:08 +00:00
arch_vm_translation_map.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
arch_vm_types.h The short story: we now have MTRR support on Intel and AMD CPUs (the latter 2005-12-13 16:34:29 +00:00
arch_vm.h * vm_page::offset is now called cache_offset and is now an uint32 instead of off_t; 2005-12-21 12:38:31 +00:00
ktypes.h It is accomplished ... 2002-07-09 12:24:59 +00:00
stage2_priv.h It is accomplished ... 2002-07-09 12:24:59 +00:00
types.h It is accomplished ... 2002-07-09 12:24:59 +00:00