chipsec : building for 32 bit systems
PATCH 1/1 chipsec : building for 32 bit systems
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(-)
source/drivers/linux/Makefile +1 -1
@@ -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
@@ -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