Skip to contentSkip to conversation

chipsec : building for 32 bit systems

PATCH New Megha Dey 1 participant 1 message Jan 6, 2016

lore
Share & tools
lore

Megha Dey

author
#0 lore raw

PATCH 1/1 chipsec : building for 32 bit systems

Fixing errors which arise when chipsec is built for 32 bit architectures.

---
 source/drivers/linux/Makefile     | 2 +-
 source/drivers/linux/chipsec_km.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
source/drivers/linux/Makefile +1 -1
index 4342977..bdc0acc 100644
@@ -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
source/drivers/linux/chipsec_km.c +2 -2
index e76f6a9..a9080ec 100644
@@ -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);
Signature · 1 line
1.9.1