uboot/arch/x86/cpu/intel_common/cpu_from_spl.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0
   2/*
   3 * Copyright (c) 2016 Google, Inc
   4 */
   5
   6#include <common.h>
   7#include <dm.h>
   8#include <errno.h>
   9#include <handoff.h>
  10#include <init.h>
  11#include <asm/cpu_common.h>
  12#include <asm/intel_regs.h>
  13#include <asm/lapic.h>
  14#include <asm/lpc_common.h>
  15#include <asm/msr.h>
  16#include <asm/mtrr.h>
  17#include <asm/post.h>
  18#include <asm/microcode.h>
  19
  20DECLARE_GLOBAL_DATA_PTR;
  21
  22int arch_cpu_init(void)
  23{
  24        int ret;
  25
  26#if CONFIG_IS_ENABLED(HANDOFF) && IS_ENABLED(CONFIG_USE_HOB)
  27        struct spl_handoff *ho = gd->spl_handoff;
  28
  29        gd->arch.hob_list = ho->arch.hob_list;
  30#endif
  31        ret = x86_cpu_reinit_f();
  32
  33        return ret;
  34}
  35