Release 4.14 arch/x86/platform/efi/efi_32.c
// SPDX-License-Identifier: GPL-2.0
/*
* Extensible Firmware Interface
*
* Based on Extensible Firmware Interface Specification version 1.0
*
* Copyright (C) 1999 VA Linux Systems
* Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
* Copyright (C) 1999-2002 Hewlett-Packard Co.
* David Mosberger-Tang <davidm@hpl.hp.com>
* Stephane Eranian <eranian@hpl.hp.com>
*
* All EFI Runtime Services are not implemented yet as EFI only
* supports physical mode addressing on SoftSDV. This is to be fixed
* in a future version. --drummond 1999-07-20
*
* Implemented EFI runtime services and virtual mode calls. --davidm
*
* Goutham Rao: <goutham.rao@intel.com>
* Skip non-WB memory and ignore empty memory ranges.
*/
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/ioport.h>
#include <linux/efi.h>
#include <asm/io.h>
#include <asm/desc.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/tlbflush.h>
#include <asm/efi.h>
/*
* To make EFI call EFI runtime service in physical addressing mode we need
* prolog/epilog before/after the invocation to claim the EFI runtime service
* handler exclusively and to duplicate a memory mapping in low memory space,
* say 0 - 3G.
*/
int __init efi_alloc_page_tables(void)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Matt Fleming | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
void efi_sync_low_kernel_mappings(void) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Borislav Petkov | 6 | 100.00% | 1 | 100.00% |
Total | 6 | 100.00% | 1 | 100.00% |
void __init efi_dump_pagetable(void)
{
#ifdef CONFIG_EFI_PGT_DUMP
ptdump_walk_pgd_level(NULL, swapper_pg_dir);
#endif
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Sai Praneeth | 14 | 70.00% | 1 | 33.33% |
Borislav Petkov | 6 | 30.00% | 2 | 66.67% |
Total | 20 | 100.00% | 3 | 100.00% |
int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Borislav Petkov | 15 | 93.75% | 2 | 66.67% |
Mathias Krause | 1 | 6.25% | 1 | 33.33% |
Total | 16 | 100.00% | 3 | 100.00% |
void __init efi_map_region(efi_memory_desc_t *md)
{
old_map_region(md);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Borislav Petkov | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
void __init efi_map_region_fixed(efi_memory_desc_t *md) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dave Young | 9 | 100.00% | 1 | 100.00% |
Total | 9 | 100.00% | 1 | 100.00% |
void __init parse_efi_setup(u64 phys_addr, u32 data_len) {}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dave Young | 11 | 100.00% | 1 | 100.00% |
Total | 11 | 100.00% | 1 | 100.00% |
pgd_t * __init efi_call_phys_prolog(void)
{
struct desc_ptr gdt_descr;
pgd_t *save_pgd;
/* Current pgd is swapper_pg_dir, we'll restore it later: */
save_pgd = swapper_pg_dir;
load_cr3(initial_page_table);
__flush_tlb_all();
gdt_descr.address = get_cpu_gdt_paddr(0);
gdt_descr.size = GDT_SIZE - 1;
load_gdt(&gdt_descr);
return save_pgd;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Rusty Russell | 16 | 28.57% | 1 | 10.00% |
Ingo Molnar | 14 | 25.00% | 1 | 10.00% |
Andrew Morton | 13 | 23.21% | 1 | 10.00% |
Zachary Amsden | 4 | 7.14% | 1 | 10.00% |
Matt Fleming | 2 | 3.57% | 1 | 10.00% |
Mathias Krause | 2 | 3.57% | 1 | 10.00% |
Edgar (gimli) Hucek | 2 | 3.57% | 1 | 10.00% |
Andrew Lutomirski | 1 | 1.79% | 1 | 10.00% |
Glauber de Oliveira Costa | 1 | 1.79% | 1 | 10.00% |
Huang Ying | 1 | 1.79% | 1 | 10.00% |
Total | 56 | 100.00% | 10 | 100.00% |
void __init efi_call_phys_epilog(pgd_t *save_pgd)
{
struct desc_ptr gdt_descr;
gdt_descr.address = (unsigned long)get_cpu_gdt_rw(0);
gdt_descr.size = GDT_SIZE - 1;
load_gdt(&gdt_descr);
load_cr3(save_pgd);
__flush_tlb_all();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 20 | 40.82% | 2 | 18.18% |
Rusty Russell | 14 | 28.57% | 1 | 9.09% |
Ingo Molnar | 4 | 8.16% | 1 | 9.09% |
Zachary Amsden | 4 | 8.16% | 1 | 9.09% |
Edgar (gimli) Hucek | 2 | 4.08% | 1 | 9.09% |
Huang Ying | 1 | 2.04% | 1 | 9.09% |
Glauber de Oliveira Costa | 1 | 2.04% | 1 | 9.09% |
Matt Fleming | 1 | 2.04% | 1 | 9.09% |
Mathias Krause | 1 | 2.04% | 1 | 9.09% |
Thomas Garnier | 1 | 2.04% | 1 | 9.09% |
Total | 49 | 100.00% | 11 | 100.00% |
void __init efi_runtime_update_mappings(void)
{
if (__supported_pte_mask & _PAGE_NX)
runtime_code_page_mkexec();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Borislav Petkov | 16 | 94.12% | 1 | 50.00% |
Sai Praneeth | 1 | 5.88% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Morton | 58 | 23.87% | 2 | 8.00% |
Borislav Petkov | 58 | 23.87% | 4 | 16.00% |
Rusty Russell | 30 | 12.35% | 1 | 4.00% |
Dave Young | 20 | 8.23% | 2 | 8.00% |
Ingo Molnar | 19 | 7.82% | 2 | 8.00% |
Sai Praneeth | 15 | 6.17% | 2 | 8.00% |
Matt Fleming | 14 | 5.76% | 2 | 8.00% |
Zachary Amsden | 8 | 3.29% | 1 | 4.00% |
Edgar (gimli) Hucek | 4 | 1.65% | 1 | 4.00% |
Mathias Krause | 4 | 1.65% | 1 | 4.00% |
Harvey Harrison | 3 | 1.23% | 1 | 4.00% |
Paul Gortmaker | 3 | 1.23% | 1 | 4.00% |
Huang Ying | 2 | 0.82% | 1 | 4.00% |
Glauber de Oliveira Costa | 2 | 0.82% | 1 | 4.00% |
Thomas Garnier | 1 | 0.41% | 1 | 4.00% |
Andrew Lutomirski | 1 | 0.41% | 1 | 4.00% |
Greg Kroah-Hartman | 1 | 0.41% | 1 | 4.00% |
Total | 243 | 100.00% | 25 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.