Skip to content

Commit

Permalink
svsm: Make functions private
Browse files Browse the repository at this point in the history
Some functions have no need to be exposed externally so turn them
private.

Signed-off-by: Peter Fang <[email protected]>
  • Loading branch information
peterfang committed Dec 13, 2024
1 parent 2b8adef commit 9773714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/svsm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ global_asm!(
static CPUID_PAGE: ImmutAfterInitCell<SnpCpuidTable> = ImmutAfterInitCell::uninit();
static LAUNCH_INFO: ImmutAfterInitCell<KernelLaunchInfo> = ImmutAfterInitCell::uninit();

pub fn memory_init(launch_info: &KernelLaunchInfo) {
fn memory_init(launch_info: &KernelLaunchInfo) {
root_mem_init(
PhysAddr::from(launch_info.heap_area_phys_start),
VirtAddr::from(launch_info.heap_area_virt_start),
launch_info.heap_area_size as usize / PAGE_SIZE,
);
}

pub fn boot_stack_info() {
fn boot_stack_info() {
// SAFETY: this is only unsafe because `bsp_stack_end` is an extern
// static, but we're simply printing its address. We are not creating a
// reference so this is safe.
Expand Down

0 comments on commit 9773714

Please sign in to comment.