[PATCH] chipsec : building for 32 bit systems
Megha Dey <[email protected]> Tue, 05 Jan 2016 17:33:23 -0800
| Newsgroups | dev.linux.lists.oe-chipsec |
|---|---|
| Message-ID | <[email protected]> |
--===============2009327599101458759== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Fixing errors which arise when chipsec is built for 32 bit architectures. Signed-off-by: Megha Dey <[email protected]> --- 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=3D #ifeq ($(shell uname -m),x86_64) ifeq ($(ARCH),i386) obj-m +=3D chipsec.o -chipsec-objs :=3D chipsec_ko.o i386/cpu.o +chipsec-objs :=3D chipsec_km.o i386/cpu.o all: clean chipsec32 else obj-m +=3D chipsec.o diff --git a/source/drivers/linux/chipsec_km.c b/source/drivers/linux/chips= ec_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 ioc= tl_num, unsigned long ioc #ifdef __x86_64__ ptr[1] =3D (uint32_t)(dtr.base >> 32); #else - ptr[1] =3D 0 + ptr[1] =3D 0; #endif ptr[2] =3D (uint32_t)dtr.base; = @@ -1368,8 +1368,8 @@ static long d_ioctl(struct file *file, unsigned int i= octl_num, unsigned long ioc first =3D ioread32(ioaddr); second =3D ioread32( ioaddr + 4 ); ptr[0] =3D first | (second << 32); - break; #endif + break; } = my_unxlate_dev_mem_ptr(addr, ioaddr); -- = 1.9.1 --===============2009327599101458759==--