From 31615f402551eaa9d77b94d2c79ed5110e825e85 Mon Sep 17 00:00:00 2001 From: Dean Sanner Date: Thu, 17 Jul 2014 07:52:24 -0500 Subject: Populate actual PVR value instead of architected version Change-Id: I5d19166fe949394fae536f5165ce6138be7f820b Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12277 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/lib/syscall_mmio.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/syscall_mmio.C b/src/lib/syscall_mmio.C index a15b1c9b4..541528e3b 100644 --- a/src/lib/syscall_mmio.C +++ b/src/lib/syscall_mmio.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2010,2014 */ +/* Contributors Listed Below - COPYRIGHT 2010,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -39,6 +41,11 @@ int mmio_dev_unmap(void *ea) return (int64_t) _syscall1(DEV_UNMAP, ea); } +uint64_t mmio_pvr_read() +{ + return (uint64_t) _syscall0(MMIO_PVR_READ); +} + uint64_t mmio_hmer_read() { return (uint64_t) _syscall0(MMIO_HMER_READ); -- cgit v1.2.1