* [PATCH] chipsec : building for 32 bit systems
@ 2016-01-06 1:33 Megha Dey
0 siblings, 0 replies; only message in thread
From: Megha Dey @ 2016-01-06 1:33 UTC (permalink / raw)
To: chipsec
[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]
Fixing errors which arise when chipsec is built for 32 bit
architectures.
Signed-off-by: Megha Dey <megha.dey@intel.com>
---
source/drivers/linux/Makefile | 2 +-
source/drivers/linux/chipsec_km.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/source/drivers/linux/Makefile b/source/drivers/linux/Makefile
index 4342977..bdc0acc 100644
--- a/source/drivers/linux/Makefile
+++ b/source/drivers/linux/Makefile
@@ -10,7 +10,7 @@ VERSION=
#ifeq ($(shell uname -m),x86_64)
ifeq ($(ARCH),i386)
obj-m += chipsec.o
-chipsec-objs := chipsec_ko.o i386/cpu.o
+chipsec-objs := chipsec_km.o i386/cpu.o
all: clean chipsec32
else
obj-m += chipsec.o
diff --git a/source/drivers/linux/chipsec_km.c b/source/drivers/linux/chipsec_km.c
index e76f6a9..a9080ec 100644
--- a/source/drivers/linux/chipsec_km.c
+++ b/source/drivers/linux/chipsec_km.c
@@ -946,7 +946,7 @@ static long d_ioctl(struct file *file, unsigned int ioctl_num, unsigned long ioc
#ifdef __x86_64__
ptr[1] = (uint32_t)(dtr.base >> 32);
#else
- ptr[1] = 0
+ ptr[1] = 0;
#endif
ptr[2] = (uint32_t)dtr.base;
@@ -1368,8 +1368,8 @@ static long d_ioctl(struct file *file, unsigned int ioctl_num, unsigned long ioc
first = ioread32(ioaddr);
second = ioread32( ioaddr + 4 );
ptr[0] = first | (second << 32);
- break;
#endif
+ break;
}
my_unxlate_dev_mem_ptr(addr, ioaddr);
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-06 1:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-06 1:33 [PATCH] chipsec : building for 32 bit systems Megha Dey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).