freebsd-dev/sys
Marcel Moolenaar 662d34aff2 Hide the creation of phys_avail behind an API to make it easier to do it
correctly. We now iterate the EFI memory descriptors once and collect all
the information in a single pass. This includes:
1.  The I/O port base address,
2.  The PAL memory region. Have the physmem API track this.
3.  Memory descriptors of memory we can't use, like bad memory, runtime
    services code & data, etc. Have the physmem API track these.
4.  memory descriptors of memory we can use or re-use, such as free
    memory, boot time services code & data, loader code & data, etc.
    These are added by the physmem API.

Since the PBVM page table and pages are in memory described as loader
data, inform the physmem API of chunks that need to be delated from the
available physical memory.

While here, remove Maxmem and replace it with the better named paddr_max.
Maxmem was defined as physmem, which is generally wrong. Now, paddr_max
is properly defined as the largesty physical address.

The upshot of all this is that:
1.  We properly determine realmem.
2.  We maximize physmem by re-using memory where possible.
3.  We remove complexity from ia64_init() in machdep.c.
4.  Remove confusion about realmem, physmem & Maxmem.

The new ia64_physmem_alloc() is to replace pmap_steal_memory() in pmap.c,
as well as replace the handcrafted allocation of the VHPT for the BSP in
pmap_bootstrap() in pmap.c. This is step 2 and addresses the manipulation
of phys_avail after it is being created.
2012-07-07 00:25:17 +00:00
..
amd64 Use assembler mnemonic instead of manually assembling, contination for r238142. 2012-07-06 20:11:58 +00:00
arm Fix LINT. 2012-07-05 15:23:45 +00:00
boot MFV: Update zlib to 1.2.7. 2012-06-21 21:47:08 +00:00
bsm
cam Add a loader tunable, kern.cam.ctl.disable, that will disable 2012-06-28 19:39:30 +00:00
cddl r237748 continuation: fix nopw (0f 1f) behavior with respect to modifiers 2012-07-06 14:45:30 +00:00
compat Extend the KPI to lock and unlock f_offset member of struct file. It 2012-07-02 21:01:03 +00:00
conf Hide the creation of phys_avail behind an API to make it easier to do it 2012-07-07 00:25:17 +00:00
contrib MFV: r237650 2012-06-27 16:15:13 +00:00
crypto
ddb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
dev agp.c: 2012-07-06 15:57:03 +00:00
fs Fix a typo 2012-07-03 08:03:07 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom Fix typo in the comment. 2012-07-06 15:46:38 +00:00
gnu/fs Fix build: 2012-05-23 06:49:50 +00:00
i386 Fix XEN build, broken in r237924. 2012-07-02 14:03:19 +00:00
ia64 Hide the creation of phys_avail behind an API to make it easier to do it 2012-07-07 00:25:17 +00:00
isa
kern Fix KASSERT message. 2012-07-03 19:08:02 +00:00
kgssapi
libkern Fix unloading of libiconv module. 2012-06-11 17:42:39 +00:00
mips octeon_uart_class was removed some time ago everywhere but here. 2012-06-28 06:49:04 +00:00
modules Add a source file needed for module linking. 2012-07-06 20:14:27 +00:00
net Implement SIOCGIFMEDIA for if_tap(4) 2012-07-06 23:17:30 +00:00
net80211 Add a check for dynamic OFDM/CCK channel types. 2012-07-01 04:25:49 +00:00
netatalk
netgraph Make radix lookup on src and dst flow addresses optional 2012-06-18 13:56:36 +00:00
netinet Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT. 2012-07-04 20:59:30 +00:00
netinet6 When ip_output()/ip6_output() is supplied a struct route *ro argument, 2012-07-04 07:37:53 +00:00
netipsec
netipx
netnatm
netncp Add characters mapping for codepages used in Germany. 2012-06-01 03:59:08 +00:00
netsmb When checking if file descriptor number is valid, explicitely check for 'fd' 2012-06-13 22:12:10 +00:00
nfs
nfsclient PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfsserver
nlm
ofed Fix clang warning when compiling iw_cxgb. 2012-06-25 16:52:27 +00:00
opencrypto
pc98 Implement mechanism to export some kernel timekeeping data to 2012-06-22 07:06:40 +00:00
pci intpm: add ATI IXP400 pci id 2012-04-16 10:33:46 +00:00
powerpc Replace all uses of the vm page queues lock by a r/w lock that is private 2012-07-06 02:18:49 +00:00
rpc
security Check vplabel for NULL before dereferencing it. Fixes a panic 2012-05-03 15:51:34 +00:00
sparc64 Switch back to the 4BSD scheduler for now. There is some more or less 2012-06-30 14:55:36 +00:00
sys Extend the KPI to lock and unlock f_offset member of struct file. It 2012-07-02 21:01:03 +00:00
teken
tools
ufs Extend the KPI to lock and unlock f_offset member of struct file. It 2012-07-02 21:01:03 +00:00
vm Style. 2012-07-06 20:13:16 +00:00
x86 Make the wchar_t type machine dependent. 2012-06-24 04:15:58 +00:00
xdr
xen
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00