david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src
Michael Brown c692a690da [settings] Expose memory map via settings mechanism
Allow memory map entries to be read using the syntax

  ${memmap/<region>.<properties>.<scale>}

where <region> is the index of the memory region, <properties> is a
bitmask where bit 0 represents the start address and bit 1 represents
the length (allowing the end address to be encoded by having both bits
0 and 1 set), and <scale> is the number of bits by which to shift the
result.

This allows for several values of interest to be encoded.  For
example:

  ${memmap/<region>.1.0:hexraw}   # 64-bit start address of <region>
  ${memmap/<region>.2.0:hexraw}   # 64-bit length of <region>, in bytes
  ${memmap/<region>.3.0:hexraw}   # 64-bit end address of <region>
  ${memmap/<region>.2.10:int32}   # Length of <region>, in kB
  ${memmap/<region>.2.20:int32}   # Length of <region>, in MB

The numeric encoding is slightly more sophisticated than described
here, allowing a single encoding to cover multiple regions.  (See the
source code for details.)  The primary use case for this feature is to
provide the total system memory size (in MB) via the "memsize"
predefined setting.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-08-12 22:00:36 +01:00
..
arch [settings] Expose CPUID instruction via settings mechanism 2013-08-07 12:06:28 +01:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [settings] Expose memory map via settings mechanism 2013-08-12 22:00:36 +01:00
core [settings] Expose memory map via settings mechanism 2013-08-12 22:00:36 +01:00
crypto [settings] Change "not-found" semantics of fetch_setting_copy() 2013-07-19 15:15:28 +01:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [pci] Add pci_find_next() to iterate over existent PCI devices 2013-08-05 13:51:16 +01:00
hci [cmdline] Add "pciscan" command to allow iteration over PCI devices 2013-08-05 13:51:21 +01:00
image [script] Allow commands following a script label 2013-07-25 13:22:43 +01:00
include [settings] Expose memory map via settings mechanism 2013-08-12 22:00:36 +01:00
interface [settings] Clarify usage of the term "named setting" 2013-07-18 15:50:02 +01:00
libgcc [build] Mark __intel_new_proc_init with __libgcc rather than cdecl 2009-08-03 15:56:10 +01:00
net [nfs] Fix an issue with the selection of a local port 2013-08-06 15:58:35 +01:00
tests [settings] Allow numeric_setting_value() to handle long setting values 2013-08-12 18:25:18 +01:00
usr [settings] Eliminate call to store_named_setting() in nslookup.c 2013-07-19 15:29:23 +01:00
util [libc] Redefine low 8 bits of error code as "platform error code" 2013-04-19 13:34:13 +01:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
Makefile [nfs] Add support for NFS protocol 2013-07-15 17:56:29 +02:00
Makefile.housekeeping [build] Fix %.licence build target 2013-07-16 00:50:54 +02:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00