intel/common/cpu: Add function to get microcode patch pointer
commitf771de445d6538d049f36c8522b9f42e8dd9c858
authorPratik Prajapati <pratikkumar.v.prajapati@intel.com>
Thu, 17 Aug 2017 01:22:08 +0000 (16 18:22 -0700)
committerAaron Durbin <adurbin@chromium.org>
Mon, 21 Aug 2017 15:58:42 +0000 (21 15:58 +0000)
tree4b8dd2d367d269f6fcf6fc9e6d754b9b1faafe17
parent6278867065e0849ba54ed7022fc9aab819daaaaf
intel/common/cpu: Add function to get microcode patch pointer

Add mp_current_microcode() function to get the microcode patch pointer.
Use this function to avoid reading the microcode patch from the boot
media. init_cpus() would initialize microcode_patch global variable to
point to microcode patch in boot media and this function can be used
to access the pointer.

Change-Id: Ia71395f4e5b2b4fcd4e4660b66e8beb99eda65b8
Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati@intel.com>
Reviewed-on: https://review.coreboot.org/21061
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/soc/intel/common/block/cpu/mp_init.c
src/soc/intel/common/block/include/intelblocks/mp_init.h