diff options
author | isiora <none@example.com> | 2018-01-20 22:26:16 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2018-01-20 22:26:16 +0000 |
commit | 5ca57c9aa2e09be26d9c849e51cc516701ac7d8e (patch) | |
tree | 9e480e6cd0d76adf6d341385a4935b8763ce0ad5 /demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.c | |
parent | be86ff8a8d0566530ac29a094f6f1aeee6b7a824 (diff) | |
download | ChibiOS-5ca57c9aa2e09be26d9c849e51cc516701ac7d8e.tar.gz ChibiOS-5ca57c9aa2e09be26d9c849e51cc516701ac7d8e.tar.bz2 ChibiOS-5ca57c9aa2e09be26d9c849e51cc516701ac7d8e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11373 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.c')
-rw-r--r-- | demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.c index 0cf00e217..8b9f0edeb 100644 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.c +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio.
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio.
This file is part of ChibiOS.
@@ -28,6 +28,8 @@ #include "ch.h"
#include "smcclient.h"
+msg_t smcInvoke(smc_service_t handle, smc_params_area_t data,
+ size_t size);
/*===========================================================================*/
/* Module local definitions. */
/*===========================================================================*/
@@ -57,7 +59,7 @@ msg_t smcInvokeService(smc_service_t handle, smc_params_area_t data, msg_t result;
do {
- asm volatile("smc #0" : "=r" (result) : "r" (handle), "r" (data), "r" (size));
+ result = smcInvoke(handle, data, size);
} while (result == MSG_TIMEOUT);
return result;
}
|