coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lockdown.c File Reference
#include <boot_device.h>
#include <commonlib/region.h>
#include <console/console.h>
#include <bootstate.h>
#include <fmap.h>
Include dependency graph for lockdown.c:

Go to the source code of this file.

Functions

void boot_device_security_lockdown (void)
 
static void lock (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_RESOURCES, BS_ON_ENTRY, lock, NULL)
 

Function Documentation

◆ boot_device_security_lockdown()

void boot_device_security_lockdown ( void  )

Definition at line 12 of file lockdown.c.

References BIOS_DEBUG, BIOS_ERR, BIOS_INFO, boot_device_ro(), boot_device_wp_region(), CONFIG, CTRLR_RWP, CTRLR_WP, fmap_locate_area_as_rdev(), MEDIA_WP, NULL, printk, and rdev.

Referenced by lock(), and verstage_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_RESOURCES  ,
BS_ON_ENTRY  ,
lock  ,
NULL   
)

◆ lock()

static void lock ( void unused)
static

Definition at line 58 of file lockdown.c.

References boot_device_security_lockdown().

Referenced by boot_device_wp_region(), init_pll(), pmic_protect_key_setting(), set_feature_ctrl_lock(), spin_lock(), spin_unlock(), spinlock_lock(), and spinlock_unlock().

Here is the call graph for this function:
Here is the caller graph for this function: