mirror of https://github.com/ARMmbed/mbed-os.git
CR fixes
parent
2b9f94a0ad
commit
773ac8dd95
|
|
@ -1,5 +1,6 @@
|
||||||
/* mbed Microcontroller Library
|
/* Copyright (c) 2017-2018 ARM Limited
|
||||||
* Copyright (c) 2017 ARM Limited
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
/* mbed Microcontroller Library
|
/* Copyright (c) 2017-2018 ARM Limited
|
||||||
* Copyright (c) 2017 ARM Limited
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,20 @@
|
||||||
|
/* Copyright (c) 2017-2018 ARM Limited
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
// -------------------------------------- Includes -----------------------------------
|
// -------------------------------------- Includes -----------------------------------
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -112,14 +112,14 @@ handles_pool
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief create unique handle identifier
|
* @brief create unique handle identifier
|
||||||
*
|
*
|
||||||
* This function generates a unique handle identifier, and "couples" it with the received handle memory.
|
* This function generates a unique handle identifier, and "couples" it with the received handle memory.
|
||||||
* If there is no vacant space for the new handle, the function fails.
|
* If there is no vacant space for the new handle, the function fails.
|
||||||
*
|
*
|
||||||
* @note This function is expected to pass since it is always coupled with memory pool allocation of the same size.
|
* @note This function is expected to pass since it is always coupled with memory pool allocation of the same size.
|
||||||
* In case memory pool allocation fails, this function should not be called.
|
* In case memory pool allocation fails, this function should not be called.
|
||||||
* This function will panic on non vacant space use case.
|
* This function will panic on non vacant space use case.
|
||||||
*
|
*
|
||||||
* @param[in] handle_mgr A pointer to the handle manager object
|
* @param[in] handle_mgr A pointer to the handle manager object
|
||||||
* @param[in] handle_mem A pointer to a pre-allocated handle memory to get a handle identifier for
|
* @param[in] handle_mem A pointer to a pre-allocated handle memory to get a handle identifier for
|
||||||
* @param[in] friend_pid The partition id which is allowed to get_mem() and destroy() in addition to the handle owner.
|
* @param[in] friend_pid The partition id which is allowed to get_mem() and destroy() in addition to the handle owner.
|
||||||
|
|
@ -131,7 +131,7 @@ psa_handle_t psa_hndl_mgr_handle_create(psa_handle_manager_t *handle_mgr, void *
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief remove a handle from the handle manager.
|
* @brief remove a handle from the handle manager.
|
||||||
*
|
*
|
||||||
* @param handle_mgr A pointer to the handle manager object
|
* @param handle_mgr A pointer to the handle manager object
|
||||||
* @param handle The handle to be removed
|
* @param handle The handle to be removed
|
||||||
*/
|
*/
|
||||||
|
|
@ -140,12 +140,12 @@ void psa_hndl_mgr_handle_destroy(psa_handle_manager_t *handle_mgr, psa_handle_t
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief dereference handle
|
* @brief dereference handle
|
||||||
*
|
*
|
||||||
* This function retrieves the pointer associated with the input <handle>.
|
* This function retrieves the pointer associated with the input <handle>.
|
||||||
*
|
*
|
||||||
* @note This function will panic in case caller not allowed to dereference the memory
|
* @note This function will panic in case caller not allowed to dereference the memory
|
||||||
* or handler does not correspond to a valid existing handle
|
* or handler does not correspond to a valid existing handle
|
||||||
*
|
*
|
||||||
* @param handle_mgr A pointer to the handle manager object.
|
* @param handle_mgr A pointer to the handle manager object.
|
||||||
* @param handle The handle for which we request the corresponding memory handle.
|
* @param handle The handle for which we request the corresponding memory handle.
|
||||||
* @return void* A pointer to the memory corresponding to the handle.
|
* @return void* A pointer to the memory corresponding to the handle.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
/* Copyright (c) 2018 ARM Limited
|
/* Copyright (c) 2017-2018 ARM Limited
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ ROOT = abspath(join(dirname(__file__), ".."))
|
||||||
##############################################################################
|
##############################################################################
|
||||||
BUILD_DIR = abspath(join(ROOT, "BUILD"))
|
BUILD_DIR = abspath(join(ROOT, "BUILD"))
|
||||||
|
|
||||||
|
# Default directory for dual-core and v8 targets
|
||||||
|
# delivering secure binaries across builds
|
||||||
DELIVERY_DIR = abspath(join(ROOT, "DELIVERY"))
|
DELIVERY_DIR = abspath(join(ROOT, "DELIVERY"))
|
||||||
|
|
||||||
# ARM Compiler 5
|
# ARM Compiler 5
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,19 @@
|
||||||
|
# Copyright (c) 2017-2018 ARM Limited
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
manifests = [
|
manifests = [
|
||||||
{
|
{
|
||||||
'name': 'TEST_PARTITION',
|
'name': 'TEST_PARTITION',
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,19 @@
|
||||||
|
# Copyright (c) 2017-2018 ARM Limited
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
import filecmp
|
import filecmp
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue