aboutsummaryrefslogtreecommitdiff
path: root/sys/ia64/include/param.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2012-07-07 00:25:17 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2012-07-07 00:25:17 +0000
commit662d34aff27a6fb9e11fce7d3f881a532ad0be64 (patch)
tree01586c6653c0e2a8b2640228e792f9511709fe0f /sys/ia64/include/param.h
parentd5fb967ab29f92a4380a40105162fee7520e8380 (diff)
downloadsrc-662d34aff27a6fb9e11fce7d3f881a532ad0be64.tar.gz
src-662d34aff27a6fb9e11fce7d3f881a532ad0be64.zip
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.
Notes
Notes: svn path=/head/; revision=238184
Diffstat (limited to 'sys/ia64/include/param.h')
-rw-r--r--sys/ia64/include/param.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/ia64/include/param.h b/sys/ia64/include/param.h
index d996441f6246..aa837d8c5ec4 100644
--- a/sys/ia64/include/param.h
+++ b/sys/ia64/include/param.h
@@ -110,9 +110,6 @@
#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT)
#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT)
-#define ia64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT)
-#define ia64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT)
-
#define pgtok(x) ((x) * (PAGE_SIZE / 1024))
#endif /* !_IA64_INCLUDE_PARAM_H_ */