haiku/headers/private/kernel/arch/m68k
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_030_mmu.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
arch_040_mmu.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
arch_atomic.h M68K: add arch_atomic.h 2016-07-20 20:26:29 +02:00
arch_cpu.h s/Haiku License/MIT License/g. 2019-08-30 18:16:02 -04:00
arch_debug.h * Changed arch_debug_save_registers() to take an arch-specific structure 2010-03-18 17:20:06 +00:00
arch_int.h * get rid of ppc stuff 2008-02-03 11:39:28 +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.h s/OpenBeOS License/MIT License/ universally, as they're the same thing. 2017-02-09 22:09:56 -05:00
arch_platform.h M68K: drop the platform_type field, the enum is gone from OS.h 2016-07-20 20:31:14 +02:00
arch_system_info.h Headers (unfinished) for an m68k port (yes I do know it's useless, it's just for the l33t factor). 2007-10-21 23:42:09 +00:00
arch_thread_types.h - add fpu states 2008-06-22 01:36:52 +00:00
arch_thread.h Fix building the m68k kernel 2012-04-13 00:53:09 +02:00
arch_user_debugger.h Headers (unfinished) for an m68k port (yes I do know it's useless, it's just for the l33t factor). 2007-10-21 23:42:09 +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 Headers (unfinished) for an m68k port (yes I do know it's useless, it's just for the l33t factor). 2007-10-21 23:42:09 +00:00
arch_vm.h Fix building the m68k kernel 2012-04-13 00:53:09 +02:00
ktypes.h Headers (unfinished) for an m68k port (yes I do know it's useless, it's just for the l33t factor). 2007-10-21 23:42:09 +00:00
stage2_priv.h Headers (unfinished) for an m68k port (yes I do know it's useless, it's just for the l33t factor). 2007-10-21 23:42:09 +00:00
types.h Headers (unfinished) for an m68k port (yes I do know it's useless, it's just for the l33t factor). 2007-10-21 23:42:09 +00:00