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

Commit 183f8b67 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 5a70fc24 f4baf600
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −6
Original line number Diff line number Diff line
@@ -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

+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>

+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.
@@ -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 */
@@ -82,6 +69,5 @@ inline bool is_secure_mode(void)

	return false;
}
#endif

#endif /* _MC_ARM_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