summaryrefslogtreecommitdiffstats
path: root/physmap.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2011-03-08 07:17:44 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-03-08 07:17:44 +0000
commitd9b2044f9981b420119032717ca39cd5ef572781 (patch)
tree726389fc8d2e3875645d8a3774f9899c4009faf0 /physmap.c
parent2fdef8e551b6c1c3f9b82372a497ba7f3240c097 (diff)
downloadflashrom-d9b2044f9981b420119032717ca39cd5ef572781.zip
flashrom-d9b2044f9981b420119032717ca39cd5ef572781.tar.gz
Fix and improve libpayload platform support
- Fix various minor compile issues (eg. include necessary standard headers) - Fix compilation of libpayload code paths - Provide libpayload support in Makefile - Add make target "libflashrom.a" which links non-CLI code to static library Tested-with-DOS-crosscompiler-by: Idwer Vollering <vidwer@gmail.com> Corresponding to flashrom svn r1280. Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'physmap.c')
-rw-r--r--physmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/physmap.c b/physmap.c
index 70156a6..bd3c59b 100644
--- a/physmap.c
+++ b/physmap.c
@@ -492,6 +492,7 @@ msr_t libpayload_rdmsr(int addr)
int libpayload_wrmsr(int addr, msr_t msr)
{
_wrmsr(addr, msr.lo | ((unsigned long long)msr.hi << 32));
+ return 0;
}
#else
msr_t rdmsr(int addr)
OpenPOWER on IntegriCloud