Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4baf600 authored by Keith Fallows's avatar Keith Fallows
Browse files

Revert "t-base-301: First release of t-base-301 Kernel Module and Kernel Api"



This reverts commit c2348aa9.

Revert change prior to re-submitting with the correct author.

Change-Id: I9c580a33952d792955586a6cfa8093742bb98875
Signed-off-by: default avatarKeith Fallows <keithf@codeaurora.org>
parent 06f59433
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -20,7 +20,7 @@ mcKernelApi-objs := MobiCoreKernelApi/main.o \
		MobiCoreKernelApi/connection.o
		MobiCoreKernelApi/connection.o


# Release mode by default
# 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-y += -Wno-declaration-after-statement


ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG
ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG
+1 −6
Original line number Original line Diff line number Diff line
@@ -8,18 +8,13 @@ else
    ccflags-y = -DDEBUG
    ccflags-y = -DDEBUG
endif # DEBUG/RELEASE
endif # DEBUG/RELEASE


# CFLAG for testable mode
ifeq ($(IS_TESTABLE),yes)
	ccflags-y = -DTEST
endif

# CFLAGS from the build script
# CFLAGS from the build script
ifdef MOBICORE_CFLAGS
ifdef MOBICORE_CFLAGS
	ccflags-y += $(MOBICORE_CFLAGS)
	ccflags-y += $(MOBICORE_CFLAGS)
endif
endif
#EXTRA_CFLAGS+=-DDEBUG_VERBOSE
#EXTRA_CFLAGS+=-DDEBUG_VERBOSE


ccflags-y += -Wall -D__$(PLATFORM)__
ccflags-y += -I$(M) -Wall -D__$(PLATFORM)__
# add our module to kernel.
# add our module to kernel.
obj-m += mcDrvModule.o
obj-m += mcDrvModule.o


+7 −10
Original line number Original line Diff line number Diff line
/*
/* MobiCore driver module.(interface to the secure world SWD)
 * Copyright (c) 2013 TRUSTONIC LIMITED
 * MobiCore Driver Kernel Module.
 * All Rights Reserved.
 *
 *
 * This program is free software; you can redistribute it and/or
 * <-- Copyright Giesecke & Devrient GmbH 2009-2012 -->
 * modify it under the terms of the GNU General Public License
 * <-- Copyright Trustonic Limited 2013 -->
 * version 2 as published by the Free Software Foundation.
 *
 *
 * This program is distributed in the hope that it will be useful,
 * This program is free software; you can redistribute it and/or modify
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * it under the terms of the GNU General Public License version 2 as
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * published by the Free Software Foundation.
 * GNU General Public License for more details.
 */
 */
#include <linux/module.h>
#include <linux/module.h>


+8 −22
Original line number Original line Diff line number Diff line
/*
/*
 * Copyright (c) 2013 TRUSTONIC LIMITED
 * MobiCore driver module.(interface to the secure world SWD)
 * All Rights Reserved.
 *
 *
 * This program is free software; you can redistribute it and/or
 * <-- Copyright Giesecke & Devrient GmbH 2009-2012 -->
 * modify it under the terms of the GNU General Public License
 * <-- Copyright Trustonic Limited 2013 -->
 * version 2 as published by the Free Software Foundation.
 *
 *
 * This program is distributed in the hope that it will be useful,
 * This program is free software; you can redistribute it and/or modify
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * it under the terms of the GNU General Public License version 2 as
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * published by the Free Software Foundation.
 * GNU General Public License for more details.
 */
 */

#ifndef _MC_ARM_H_
#ifndef _MC_ARM_H_
#define _MC_ARM_H_
#define _MC_ARM_H_


#include "debug.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
 * ARM Trustzone specific masks and modes
 * Vanilla Linux is unaware of TrustZone extension.
 * Vanilla Linux is unaware of TrustZone extension.
@@ -34,7 +21,7 @@ inline bool is_secure_mode(void)
 * Also TZ bits in cpuid are not defined, ARM port uses magic numbers,
 * Also TZ bits in cpuid are not defined, ARM port uses magic numbers,
 * see arch/arm/kernel/setup.c
 * see arch/arm/kernel/setup.c
 */
 */
#define ARM_MONITOR_MODE		(0x16) /*(0b10110)*/
#define ARM_MONITOR_MODE		(0b10110)
#define ARM_SECURITY_EXTENSION_MASK	(0x30)
#define ARM_SECURITY_EXTENSION_MASK	(0x30)


/* check if CPU supports the ARM TrustZone Security Extensions */
/* check if CPU supports the ARM TrustZone Security Extensions */
@@ -82,6 +69,5 @@ inline bool is_secure_mode(void)


	return false;
	return false;
}
}
#endif


#endif /* _MC_ARM_H_ */
#endif /* _MC_ARM_H_ */
+7 −9
Original line number Original line Diff line number Diff line
/*
/*
 * Copyright (c) 2013 TRUSTONIC LIMITED
 * MobiCore driver module.(interface to the secure world SWD)
 * All Rights Reserved.
 *
 *
 * This program is free software; you can redistribute it and/or
 * <-- Copyright Giesecke & Devrient GmbH 2009-2012 -->
 * modify it under the terms of the GNU General Public License
 * <-- Copyright Trustonic Limited 2013 -->
 * version 2 as published by the Free Software Foundation.
 *
 *
 * This program is distributed in the hope that it will be useful,
 * This program is free software; you can redistribute it and/or modify
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * it under the terms of the GNU General Public License version 2 as
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * published by the Free Software Foundation.
 * GNU General Public License for more details.
 */
 */

#ifndef _MC_DEBUG_H_
#ifndef _MC_DEBUG_H_
#define _MC_DEBUG_H_
#define _MC_DEBUG_H_
/* Found in main.c */
/* Found in main.c */
Loading