haiku/headers/private/kernel/arch
Ingo Weinhold 47c40a10a1 * Prefixed memset_physical() and memcpy_to_physical() with "vm_",
added vm_memcpy_from_physical() and vm_memcpy_physical_page(), and
  added respective functions to the vm_translation_map operations. The
  architecture specific implementation can now decide how to implement
  them most efficiently. Added generic implementations that can be used,
  though.
* Changed vm_{get,put}_physical_page(). The former no longer accepts
  flags (the only flag PHYSICAL_PAGE_DONT_WAIT wasn't needed anymore).
  Instead it returns an implementation-specific handle that has to be
  passed to the latter. Added vm_{get,put}_physical_page_current_cpu()
  and *_debug() variants, that work only for the current CPU,
  respectively when in the kernel debugger. Also adjusted the
  vm_translation_map operations accordingly.
* Made consequent use of the physical memory operations in the source
  tree.
* Also adjusted the m68k and ppc implementations with respect to the
  vm_translation_map operation changes, but they are probably broken,
  nevertheless.
* For x86 the generic physical page mapper isn't used anymore. It is
  suboptimal in any case. For systems with small memory it is too much
  overhead, since one can just map the complete physical memory (that's
  not done yet, though). For systems with large memory it counteracts
  the VM strategy to reuse the least recently used pages. Since those
  pages will most likely not be mapped by the page mapper anymore, it
  will keep remapping chunks. This was also the reason why building
  Haiku in Haiku was significantly faster with only 256 MB RAM (since
  that much could be kept mapped all the time).
  Now we're using a different strategy: We have small pools of virtual
  page slots per CPU that are used for the physical page operations
  (memset_physical(), memcpy_*_physical()) with CPU-pinned thread.
  Furthermore we have four slots per translation map, which are used to
  map page tables.

These changes speed up the Haiku image build in Haiku significantly. On
my Core2 Duo 2.2 GHz 2 GB machine about 40% to 20 min 40 s (KDEBUG
disabled, block cache debug disabled). Still more than factor 3 slower
than FreeBSD and Linux, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-20 00:06:09 +00:00
..
alpha It is accomplished ... 2002-07-09 12:24:59 +00:00
m68k ADd platform hooks to read RTC. platform code should mimic the PC CMOS chip. 2008-10-13 13:55:57 +00:00
ppc Remove PAGE_SIZE define for ppc and m68k from kernel private headers. It's not needed there and should be in public header anyway. 2008-06-11 01:16:48 +00:00
sh4 Merged changes from branch build_system_redesign at revision 14573. 2005-10-29 16:27:43 +00:00
sparc Removed execute property that was set accidently (since CVS days). 2005-03-18 01:50:45 +00:00
x86 * Prefixed memset_physical() and memcpy_to_physical() with "vm_", 2008-10-20 00:06:09 +00:00
cpu.h memory barrier functions available for drivers. 2008-04-26 15:18:04 +00:00
debug_console.h * Added the opportunity to add temporary debug interrupt handlers for 2006-06-12 22:24:53 +00:00
debug.h Added new parameter "skipIframes" to arch_debug_get_stack_trace(). That 2008-09-15 13:09:14 +00:00
elf.h Made C++ safe. 2006-01-11 14:36:43 +00:00
int.h Fully inline {disable,restore}_interrupts() and friends when including 2008-10-01 14:33:10 +00:00
platform.h Implemented first basic APM driver. Only tested with QEMU so far, that's why 2006-01-28 18:11:20 +00:00
real_time_clock.h The real_time_data structure contains an architecture specific 2006-01-04 02:17:59 +00:00
smp.h Applied NewOS change 1914: moved APIC setup into the kernel due to a 2004-03-14 22:54:00 +00:00
system_info.h Added our first x86-only syscall for get_cpuid(). 2004-12-01 03:54:23 +00:00
thread_types.h Replaced arch/thread_struct.h with arch/thread_types.h, and renamed 2005-12-20 16:07:27 +00:00
thread.h axeld + bonefish: 2008-02-17 15:48:30 +00:00
timer.h Replaced timer.h with a cpp safe version. 2004-03-14 21:08:25 +00:00
user_debugger.h Moved KERNEL_BREAKPOINTS to kernel_debug_config.h. 2008-10-16 21:43:32 +00:00
vm_translation_map.h - the arch_vm_translation_map.c exported functions now have the arch_ prefix 2004-10-19 23:19:10 +00:00
vm_types.h Preparation for MTRR support, code is completely untested, though. 2005-12-12 17:04:36 +00:00
vm.h * Added "from" address space parameter to vm_swap_address_space()/ 2008-10-07 21:39:19 +00:00