Loading drivers/gud/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ mcKernelApi-objs := MobiCoreKernelApi/main.o \ MobiCoreKernelApi/connection.o # Release mode by default ccflags-y := -DNDEBUG -I$(GUD_ROOT_FOLDER) ccflags-y := -DNDEBUG -I$(GUD_ROOT_FOLDER)/build_tag.h ccflags-y += -Wno-declaration-after-statement ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG Loading drivers/gud/MobiCoreDriver/Makefile +1 −6 Original line number Diff line number Diff line Loading @@ -8,18 +8,13 @@ else ccflags-y = -DDEBUG endif # DEBUG/RELEASE # CFLAG for testable mode ifeq ($(IS_TESTABLE),yes) ccflags-y = -DTEST endif # CFLAGS from the build script ifdef MOBICORE_CFLAGS ccflags-y += $(MOBICORE_CFLAGS) endif #EXTRA_CFLAGS+=-DDEBUG_VERBOSE ccflags-y += -Wall -D__$(PLATFORM)__ ccflags-y += -I$(M) -Wall -D__$(PLATFORM)__ # add our module to kernel. obj-m += mcDrvModule.o Loading drivers/gud/MobiCoreDriver/api.c +7 −10 Original line number Diff line number Diff line /* * Copyright (c) 2013 TRUSTONIC LIMITED * All Rights Reserved. /* MobiCore driver module.(interface to the secure world SWD) * MobiCore Driver Kernel Module. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * <-- Copyright Giesecke & Devrient GmbH 2009-2012 --> * <-- Copyright Trustonic Limited 2013 --> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/module.h> Loading drivers/gud/MobiCoreDriver/arm.h +8 −22 Original line number Diff line number Diff line /* * Copyright (c) 2013 TRUSTONIC LIMITED * All Rights Reserved. * MobiCore driver module.(interface to the secure world SWD) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * <-- Copyright Giesecke & Devrient GmbH 2009-2012 --> * <-- Copyright Trustonic Limited 2013 --> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _MC_ARM_H_ #define _MC_ARM_H_ #include "debug.h" #ifdef CONFIG_ARM64 inline bool has_security_extensions(void) { return true; } inline bool is_secure_mode(void) { return false; } #else /* * ARM Trustzone specific masks and modes * Vanilla Linux is unaware of TrustZone extension. Loading @@ -34,7 +21,7 @@ inline bool is_secure_mode(void) * Also TZ bits in cpuid are not defined, ARM port uses magic numbers, * see arch/arm/kernel/setup.c */ #define ARM_MONITOR_MODE (0x16) /*(0b10110)*/ #define ARM_MONITOR_MODE (0b10110) #define ARM_SECURITY_EXTENSION_MASK (0x30) /* check if CPU supports the ARM TrustZone Security Extensions */ Loading Loading @@ -82,6 +69,5 @@ inline bool is_secure_mode(void) return false; } #endif #endif /* _MC_ARM_H_ */ drivers/gud/MobiCoreDriver/debug.h +7 −9 Original line number Diff line number Diff line /* * Copyright (c) 2013 TRUSTONIC LIMITED * All Rights Reserved. * MobiCore driver module.(interface to the secure world SWD) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * <-- Copyright Giesecke & Devrient GmbH 2009-2012 --> * <-- Copyright Trustonic Limited 2013 --> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _MC_DEBUG_H_ #define _MC_DEBUG_H_ /* Found in main.c */ Loading Loading
drivers/gud/Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ mcKernelApi-objs := MobiCoreKernelApi/main.o \ MobiCoreKernelApi/connection.o # Release mode by default ccflags-y := -DNDEBUG -I$(GUD_ROOT_FOLDER) ccflags-y := -DNDEBUG -I$(GUD_ROOT_FOLDER)/build_tag.h ccflags-y += -Wno-declaration-after-statement ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG Loading
drivers/gud/MobiCoreDriver/Makefile +1 −6 Original line number Diff line number Diff line Loading @@ -8,18 +8,13 @@ else ccflags-y = -DDEBUG endif # DEBUG/RELEASE # CFLAG for testable mode ifeq ($(IS_TESTABLE),yes) ccflags-y = -DTEST endif # CFLAGS from the build script ifdef MOBICORE_CFLAGS ccflags-y += $(MOBICORE_CFLAGS) endif #EXTRA_CFLAGS+=-DDEBUG_VERBOSE ccflags-y += -Wall -D__$(PLATFORM)__ ccflags-y += -I$(M) -Wall -D__$(PLATFORM)__ # add our module to kernel. obj-m += mcDrvModule.o Loading
drivers/gud/MobiCoreDriver/api.c +7 −10 Original line number Diff line number Diff line /* * Copyright (c) 2013 TRUSTONIC LIMITED * All Rights Reserved. /* MobiCore driver module.(interface to the secure world SWD) * MobiCore Driver Kernel Module. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * <-- Copyright Giesecke & Devrient GmbH 2009-2012 --> * <-- Copyright Trustonic Limited 2013 --> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux/module.h> Loading
drivers/gud/MobiCoreDriver/arm.h +8 −22 Original line number Diff line number Diff line /* * Copyright (c) 2013 TRUSTONIC LIMITED * All Rights Reserved. * MobiCore driver module.(interface to the secure world SWD) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * <-- Copyright Giesecke & Devrient GmbH 2009-2012 --> * <-- Copyright Trustonic Limited 2013 --> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _MC_ARM_H_ #define _MC_ARM_H_ #include "debug.h" #ifdef CONFIG_ARM64 inline bool has_security_extensions(void) { return true; } inline bool is_secure_mode(void) { return false; } #else /* * ARM Trustzone specific masks and modes * Vanilla Linux is unaware of TrustZone extension. Loading @@ -34,7 +21,7 @@ inline bool is_secure_mode(void) * Also TZ bits in cpuid are not defined, ARM port uses magic numbers, * see arch/arm/kernel/setup.c */ #define ARM_MONITOR_MODE (0x16) /*(0b10110)*/ #define ARM_MONITOR_MODE (0b10110) #define ARM_SECURITY_EXTENSION_MASK (0x30) /* check if CPU supports the ARM TrustZone Security Extensions */ Loading Loading @@ -82,6 +69,5 @@ inline bool is_secure_mode(void) return false; } #endif #endif /* _MC_ARM_H_ */
drivers/gud/MobiCoreDriver/debug.h +7 −9 Original line number Diff line number Diff line /* * Copyright (c) 2013 TRUSTONIC LIMITED * All Rights Reserved. * MobiCore driver module.(interface to the secure world SWD) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * <-- Copyright Giesecke & Devrient GmbH 2009-2012 --> * <-- Copyright Trustonic Limited 2013 --> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _MC_DEBUG_H_ #define _MC_DEBUG_H_ /* Found in main.c */ Loading