Highlights this time around: - Add run time service (power control) support for PSCI (fixed in v3) - Add efi gop pointer exposure - SMBIOS support for EFI (on ARM) - efi pool memory unmap support (needed for 4.8) - initial x86 efi payload support (fixed up in v2) - various bug fixes -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJYBx6vAAoJECszeR4D/txgiNwQAJAcdx7m54D+c3juXR3wT3WR 9A0NIkyY9M/lwdG8MRZubaXV6b7s1iZhROvEGN6sZVKe+hR+c8KWbjNC34i/Mzd2 SLFTax+EWiNogSwPxBUG4R5rpPb4UFDreG9ava7L2A07E/zmXlOTJMj8YBPWKUMf FltmpLFm4lBpm5l/e47f1hotUnRcvwr44dp09G4hjYGh8cdusHeKebwlkyCPhhH7 GwYDI4Reg8dHQqbKNSPaAeK97zE30H+w6kzF4DH1Dl4W9gI9fIlJC3XVajt9qoDz 8CLAMr4ptqnYZlVq+LYPpNDFG9Pkpb78ksCBmolbs/xSo9Nd0s0WRQA6Jvg5oSpu aVDTJW3qWs3I1zfIDb0maX0yKer8QAm3D99zURxoyjALjNIS4++Tpa6TbgH/KvoQ Si+ExfGc+MsWFS9K2FMp6ukDhuPypirRF5VsliSXK7kwg2QWQ2DMS9LLgabK3y2e RxURzy9SJZf6NL7bUmCxvqdQd+S0+5sLJuc8n5sobiBRkvpmABHSelKKDg87C9OW IYDNI4iHZ1hJZb37Z2LO7R+PAUIX+vbRitnzWSXfXGNstR0Q48I4Lg2Ud1j7xkr2 +uUB0wqbAksaRnDfNNod6hNqBmgueJFK9eVvE2PP1Pl6B83sc6yBDgMNjngQ6hia 7nv3bhAqrnMTPoQkN7C+ =peNm -----END PGP SIGNATURE----- Merge tag 'signed-efi-next' of git://github.com/agraf/u-boot Patch queue for efi - 2016-10-19 Highlights this time around: - Add run time service (power control) support for PSCI (fixed in v3) - Add efi gop pointer exposure - SMBIOS support for EFI (on ARM) - efi pool memory unmap support (needed for 4.8) - initial x86 efi payload support (fixed up in v2) - various bug fixes Signed-off-by: Tom Rini <trini@konsulko.com> Conflicts: include/tables_csum.hmaster
commit
3431b392ad
@ -0,0 +1,12 @@ |
||||
/*
|
||||
* Copyright 2013 Albert ARIBAUD <albert.u.boot@aribaud.net> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
char __efi_runtime_start[0] __attribute__((section(".__efi_runtime_start"))); |
||||
char __efi_runtime_stop[0] __attribute__((section(".__efi_runtime_stop"))); |
||||
char __efi_runtime_rel_start[0] |
||||
__attribute__((section(".__efi_runtime_rel_start"))); |
||||
char __efi_runtime_rel_stop[0] |
||||
__attribute__((section(".__efi_runtime_rel_stop"))); |
@ -0,0 +1,32 @@ |
||||
/*
|
||||
* EFI application tables support |
||||
* |
||||
* Copyright (c) 2016 Alexander Graf |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
#include <common.h> |
||||
#include <efi_loader.h> |
||||
#include <inttypes.h> |
||||
#include <smbios.h> |
||||
|
||||
static const efi_guid_t smbios_guid = SMBIOS_TABLE_GUID; |
||||
|
||||
void efi_smbios_register(void) |
||||
{ |
||||
/* Map within the low 32 bits, to allow for 32bit SMBIOS tables */ |
||||
uint64_t dmi = 0xffffffff; |
||||
/* Reserve 4kb for SMBIOS */ |
||||
uint64_t pages = 1; |
||||
int memtype = EFI_RUNTIME_SERVICES_DATA; |
||||
|
||||
if (efi_allocate_pages(1, memtype, pages, &dmi) != EFI_SUCCESS) |
||||
return; |
||||
|
||||
/* Generate SMBIOS tables */ |
||||
write_smbios_table(dmi); |
||||
|
||||
/* And expose them to our EFI payload */ |
||||
efi_install_configuration_table(&smbios_guid, (void*)(uintptr_t)dmi); |
||||
} |
@ -0,0 +1,20 @@ |
||||
/*
|
||||
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
#include <common.h> |
||||
#include <linux/ctype.h> |
||||
|
||||
u8 table_compute_checksum(void *v, int len) |
||||
{ |
||||
u8 *bytes = v; |
||||
u8 checksum = 0; |
||||
int i; |
||||
|
||||
for (i = 0; i < len; i++) |
||||
checksum -= bytes[i]; |
||||
|
||||
return checksum; |
||||
} |
Loading…
Reference in new issue