cregit-Linux how code gets into the kernel

Release 4.10 arch/x86/platform/efi/efi_32.c

/*
 * 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

PersonTokensPropCommitsCommitProp
matt flemingmatt fleming11100.00%1100.00%
Total11100.00%1100.00%


void efi_sync_low_kernel_mappings(void) {}

Contributors

PersonTokensPropCommitsCommitProp
borislav petkovborislav petkov6100.00%1100.00%
Total6100.00%1100.00%


void __init efi_dump_pagetable(void) {}

Contributors

PersonTokensPropCommitsCommitProp
borislav petkovborislav petkov7100.00%2100.00%
Total7100.00%2100.00%


int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
borislav petkovborislav petkov1593.75%266.67%
mathias krausemathias krause16.25%133.33%
Total16100.00%3100.00%


void __init efi_map_region(efi_memory_desc_t *md) { old_map_region(md); }

Contributors

PersonTokensPropCommitsCommitProp
borislav petkovborislav petkov15100.00%1100.00%
Total15100.00%1100.00%


void __init efi_map_region_fixed(efi_memory_desc_t *md) {}

Contributors

PersonTokensPropCommitsCommitProp
dave youngdave young9100.00%1100.00%
Total9100.00%1100.00%


void __init parse_efi_setup(u64 phys_addr, u32 data_len) {}

Contributors

PersonTokensPropCommitsCommitProp
dave youngdave young11100.00%1100.00%
Total11100.00%1100.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 = __pa(get_cpu_gdt_table(0)); gdt_descr.size = GDT_SIZE - 1; load_gdt(&gdt_descr); return save_pgd; }

Contributors

PersonTokensPropCommitsCommitProp
rusty russellrusty russell1728.81%111.11%
andrew mortonandrew morton1627.12%111.11%
ingo molnaringo molnar1423.73%111.11%
zachary amsdenzachary amsden46.78%111.11%
edgar hucekedgar hucek23.39%111.11%
matt flemingmatt fleming23.39%111.11%
mathias krausemathias krause23.39%111.11%
glauber de oliveira costaglauber de oliveira costa11.69%111.11%
huang yinghuang ying11.69%111.11%
Total59100.00%9100.00%


void __init efi_call_phys_epilog(pgd_t *save_pgd) { struct desc_ptr gdt_descr; gdt_descr.address = (unsigned long)get_cpu_gdt_table(0); gdt_descr.size = GDT_SIZE - 1; load_gdt(&gdt_descr); load_cr3(save_pgd); __flush_tlb_all(); }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton2040.82%220.00%
rusty russellrusty russell1530.61%110.00%
zachary amsdenzachary amsden48.16%110.00%
ingo molnaringo molnar48.16%110.00%
edgar hucekedgar hucek24.08%110.00%
huang yinghuang ying12.04%110.00%
mathias krausemathias krause12.04%110.00%
matt flemingmatt fleming12.04%110.00%
glauber de oliveira costaglauber de oliveira costa12.04%110.00%
Total49100.00%10100.00%


void __init efi_runtime_update_mappings(void) { if (__supported_pte_mask & _PAGE_NX) runtime_code_page_mkexec(); }

Contributors

PersonTokensPropCommitsCommitProp
borislav petkovborislav petkov1694.12%150.00%
sai praneethsai praneeth15.88%150.00%
Total17100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton6126.29%29.52%
borislav petkovborislav petkov5925.43%419.05%
rusty russellrusty russell3213.79%14.76%
dave youngdave young208.62%29.52%
ingo molnaringo molnar198.19%29.52%
matt flemingmatt fleming146.03%29.52%
zachary amsdenzachary amsden83.45%14.76%
mathias krausemathias krause41.72%14.76%
edgar hucekedgar hucek41.72%14.76%
paul gortmakerpaul gortmaker31.29%14.76%
harvey harrisonharvey harrison31.29%14.76%
huang yinghuang ying20.86%14.76%
glauber de oliveira costaglauber de oliveira costa20.86%14.76%
sai praneethsai praneeth10.43%14.76%
Total232100.00%21100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.