Small changes.

git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11570 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
isiora 2018-02-27 00:11:17 +00:00
parent 83431f3c82
commit 742b166c69
3 changed files with 9 additions and 20 deletions

View File

@ -5,7 +5,7 @@
# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
USE_OPT = -Og -ggdb -fomit-frame-pointer -falign-functions=16
endif
# C specific options here (added to USE_OPT).

View File

@ -603,13 +603,6 @@
/* Port-specific settings (override port settings defaulted in chcore.h). */
/*===========================================================================*/
/**
* @brief Trust zone configuration.
* @details If enabled the kernel is configured for the secure world
* and can access specific devices.
*/
#define CH_CFG_SEC_WORLD TRUE
#endif /* CHCONF_H */
/** @} */

View File

@ -52,7 +52,7 @@ static const SerialConfig sdcfg = {
UART_MR_PAR_NO
};
/*
/**
* Dummy trust service thread.
*/
static THD_WORKING_AREA(waDummyTrustedService, 512);
@ -63,20 +63,16 @@ static THD_FUNCTION(DummyTrustedService, arg) {
smc_service_t *svcp;
chRegSetThreadName("DTS");
/*
* Register the trust service
*/
/* Register the trust service.*/
svcp = smcRegisterMeAsService("DummyTrustedService");
if (svcp == NULL) {
/*
* Error: the service is already registered
* or memory is exhausted.
*/
/* Error: the service is already registered
* or memory is exhausted.*/
return;
}
/*
* Wait and process requests
*/
/* Wait and process requests.*/
while (true) {
msg = smcServiceWaitRequest(svcp, MSG_OK);
if (msg == MSG_OK && svcp->svc_datalen > 0) {
@ -186,7 +182,7 @@ int main(void) {
* the secure world.
*/
chprintf((BaseSequentialStream*)&SD1, "Jumping in the non secure world\n\r");
_ns_trampoline(NSEC_MEMORY_START);
_ns_trampoline(NSEC_IMAGE_START_ADDR);
/*
* It never goes here
*/