[mustang] enable building debug images

Use a larger file size so that debug images can be built.

the UEFI shell may or may not work on debug images, and directly booting
into grub is broken due to an SNP assert. This is mostly a convenience
patch for UEFI developers.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
dhcp: use 64 bits for Smbios addresses

64-bit machines need to use 64-bit addresses. Make sure that the Smbios
data is addressed using the full 64-bit address.

This was originally an APM patch but needs to be pushed upstream.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
[mustang] retrieve RGMII_MAC0 address from UEFI shell variable

installers can set RGMII_MAC0 address from the UEFI shell with
`set RGMII_MAC0 xx:xx:xx:xx:xx:xx`

Doing so will persistently change the MAC0 address in ACPI.

Originally an APM patch.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Merge branch 'pxe_bug' into apm-scratch

Adds the fixes to allow PXE boot on mustang.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
APMXGeneRTCLib: Get base address from PcdApmRtcBase

From: Mark Salter <msalter@redhat.com>

The existing PcdApmRtcBase is not used by the RTC driver. Furthermore it is
not properly defined (address value in token field). This patch fixes the
definition of PcdApmRtcBase and has the RTC driver use it to get the base
address of the RTC registers.

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
APMXGeneRTCLib: fix RTC driver runtime support for OS

From: Mark Salter <msalter@redhat.com>

The existing XGene RTC driver causes a Linux kernel Oops:

  Unable to handle kernel paging request at virtual address 10510000
  pgd = ffffffc00007d000
  [10510000] *pgd=00000043e801c003, *pmd=0000000000000000
  Internal error: Oops: 96000005 [#1] SMP
  ...
  Call trace:
  [<ffffffc3fade3840>] 0xffffffc3fade3840
  [<ffffffc0003f50a8>] platform_drv_probe+0x24/0x58
  [<ffffffc0003f36ec>] driver_probe_device+0x90/0x370
  [<ffffffc0003f3abc>] __driver_attach+0x9c/0xa0
  [<ffffffc0003f18dc>] bus_for_each_dev+0x58/0x98
  [<ffffffc0003f316c>] driver_attach+0x20/0x28
  [<ffffffc0003f2d5c>] bus_add_driver+0x168/0x240
  [<ffffffc0003f3eb8>] driver_register+0x68/0x130
  [<ffffffc0003f507c>] __platform_driver_register+0x60/0x68
  [<ffffffc0003f5120>] platform_driver_probe+0x2c/0xac
  [<ffffffc000909634>] efi_rtc_driver_init+0x1c/0x24
  [<ffffffc0000813fc>] do_one_initcall+0xc4/0x14c
  [<ffffffc0008d69d4>] kernel_init_freeable+0x1cc/0x26c
  [<ffffffc00063b848>] kernel_init+0x10/0x104

The faulting address is the physical address of the RTC register base.
This Oops happens after SetVirtualAddressMap() has been called. The
UEFI RTC driver is not creating a runtime MMIO region in the memory
map and not remapping the register base address in response to the
SetVirtualMemoryMap() event. This patch fixes these problems so that
the kernel no longer Oopses.

Signed-off-by: Mark Salter <msalter@redhat.com>
conditionalize APM ACPI MAC hack

Signed-off-by: Mark Salter <msalter@redhat.com>
[mustang, foundation] Update version string

This is the -rh-0.9 release version.

Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Set version to 1.0.0-rh-0.10-rc0 to start next development train.

Signed-off-by: Al Stone <ahs3@redhat.com>
The make target "clean_basetools" was not removing all of the "*\.d" files

Signed-off-by: Al Stone <ahs3@redhat.com>
Correct a reference to the smbios data so that it can be located at an
address above 32-bits

Signed-off-by: Al Stone <ahs3@redhat.com>
Removed unused entries in Sec.inf; specifically:

  -- gArmTokenSpaceGuid.PcdArmScr
  -- gArmTokenSpaceGuid.PcdArmNsacr

Signed-off-by: Al Stone <ahs3@redhat.com>
Sync up this version of the file
MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf

Signed-off-by: Al Stone <ahs3@redhat.com>
Insert counter code from APM tianocore into
   ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c

Signed-off-by: Al Stone <ahs3@redhat.com>
Add in APM tianocore changes for the file:
   ArmPlatformPkg/PrePeiCore/AArch64/PrePeiCoreEntryPoint.S

Signed-off-by: Al Stone <ahs3@redhat.com>
Add in AArch64 exception info from APM tianocore

Signed-off-by: Al Stone <ahs3@redhat.com>
Sync up ArmPlatformPkg/PrePeiCore/AArch64/PrePeiCoreEntryPoint.S with
apm_tianocore version

Signed-off-by: Al Stone <ahs3@redhat.com>