Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
6d4f6aea
Unverified
Commit
6d4f6aea
authored
Aug 22, 2018
by
Dimitris Papastamos
Committed by
GitHub
Aug 22, 2018
Browse files
Merge pull request #1528 from antonio-nino-diaz-arm/an/libc
libc: Cleanup library
parents
11dfe0b4
8422a840
Changes
158
Hide whitespace changes
Inline
Side-by-side
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2015-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
#include <t18x_ari.h>
#include <t18x_ari.h>
#include <tegra_private.h>
#include <tegra_private.h>
extern
void
memcpy16
(
void
*
dest
,
const
void
*
src
,
unsigned
int
length
);
extern
void
prepare_cpu_pwr_dwn
(
void
);
extern
void
prepare_cpu_pwr_dwn
(
void
);
extern
void
tegra186_cpu_reset_handler
(
void
);
extern
void
tegra186_cpu_reset_handler
(
void
);
extern
uint32_t
__tegra186_cpu_reset_handler_end
,
extern
uint32_t
__tegra186_cpu_reset_handler_end
,
...
...
plat/nvidia/tegra/soc/t186/plat_secondary.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#define CPU_RESET_MODE_AA64 1
#define CPU_RESET_MODE_AA64 1
extern
void
memcpy16
(
void
*
dest
,
const
void
*
src
,
unsigned
int
length
);
extern
uint64_t
tegra_bl31_phys_base
;
extern
uint64_t
tegra_bl31_phys_base
;
extern
uint64_t
__tegra186_cpu_reset_handler_end
;
extern
uint64_t
__tegra186_cpu_reset_handler_end
;
...
...
plat/qemu/qemu_private.h
View file @
6d4f6aea
/*
/*
* Copyright (c) 2015-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -7,9 +7,8 @@
...
@@ -7,9 +7,8 @@
#ifndef __QEMU_PRIVATE_H
#ifndef __QEMU_PRIVATE_H
#define __QEMU_PRIVATE_H
#define __QEMU_PRIVATE_H
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include <xlat_tables_defs.h>
#include "../../bl1/bl1_private.h"
#include "../../bl1/bl1_private.h"
void
qemu_configure_mmu_secure
(
unsigned
long
total_base
,
void
qemu_configure_mmu_secure
(
unsigned
long
total_base
,
...
...
plat/qemu/topology.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2015-201
6
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <arch.h>
#include <arch.h>
#include <platform_def.h>
#include <platform_def.h>
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include "qemu_private.h"
#include "qemu_private.h"
/* The power domain tree descriptor */
/* The power domain tree descriptor */
...
...
plat/rockchip/rk3399/drivers/dp/cdn_dp.c
View file @
6d4f6aea
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <cdefs.h>
#include <cdn_dp.h>
#include <cdn_dp.h>
#include <smccc.h>
#include <smccc.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
plat/rpi3/rpi3_private.h
View file @
6d4f6aea
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#ifndef __RPI3_PRIVATE_H__
#ifndef __RPI3_PRIVATE_H__
#define __RPI3_PRIVATE_H__
#define __RPI3_PRIVATE_H__
#include <s
ys/types
.h>
#include <s
tdint
.h>
/*******************************************************************************
/*******************************************************************************
* Function and variable prototypes
* Function and variable prototypes
...
...
plat/rpi3/rpi3_stack_protector.c
View file @
6d4f6aea
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include <utils.h>
#include <utils.h>
#include "rpi3_private.h"
#include "rpi3_private.h"
...
...
plat/rpi3/rpi3_topology.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
8
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
#include <arch.h>
#include <arch.h>
#include <platform_def.h>
#include <platform_def.h>
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include "rpi3_private.h"
#include "rpi3_private.h"
...
...
plat/socionext/synquacer/include/sq_common.h
View file @
6d4f6aea
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#ifndef __SQ_COMMON_H__
#ifndef __SQ_COMMON_H__
#define __SQ_COMMON_H__
#define __SQ_COMMON_H__
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include <xlat_tables_v2.h>
#include <xlat_tables_v2.h>
struct
draminfo
{
struct
draminfo
{
...
...
plat/socionext/uniphier/uniphier.h
View file @
6d4f6aea
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#define __UNIPHIER_H__
#define __UNIPHIER_H__
#include <stdint.h>
#include <stdint.h>
#include <
types
.h>
#include <
string
.h>
unsigned
int
uniphier_get_soc_type
(
void
);
unsigned
int
uniphier_get_soc_type
(
void
);
unsigned
int
uniphier_get_soc_model
(
void
);
unsigned
int
uniphier_get_soc_model
(
void
);
...
...
plat/socionext/uniphier/uniphier_emmc.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include <io/io_block.h>
#include <io/io_block.h>
#include <mmio.h>
#include <mmio.h>
#include <platform_def.h>
#include <platform_def.h>
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include <utils_def.h>
#include <utils_def.h>
#include "uniphier.h"
#include "uniphier.h"
...
...
plat/socionext/uniphier/uniphier_io_storage.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#include <io/io_fip.h>
#include <io/io_fip.h>
#include <io/io_memmap.h>
#include <io/io_memmap.h>
#include <platform_def.h>
#include <platform_def.h>
#include <
types
.h>
#include <
stdint
.h>
#include <utils_def.h>
#include <utils_def.h>
#include <xlat_tables_v2.h>
#include <xlat_tables_v2.h>
...
...
plat/socionext/uniphier/uniphier_nand.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include <io/io_block.h>
#include <io/io_block.h>
#include <mmio.h>
#include <mmio.h>
#include <platform_def.h>
#include <platform_def.h>
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include <utils_def.h>
#include <utils_def.h>
#include "uniphier.h"
#include "uniphier.h"
...
...
plat/socionext/uniphier/uniphier_usb.c
View file @
6d4f6aea
/*
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2017
-2018
, ARM Limited and Contributors. All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
*/
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include <io/io_block.h>
#include <io/io_block.h>
#include <mmio.h>
#include <mmio.h>
#include <platform_def.h>
#include <platform_def.h>
#include <s
ys/types
.h>
#include <s
tdint
.h>
#include <utils_def.h>
#include <utils_def.h>
#include "uniphier.h"
#include "uniphier.h"
...
...
readme.rst
View file @
6d4f6aea
...
@@ -30,8 +30,9 @@ described in the `Contributing Guidelines`_.
...
@@ -30,8 +30,9 @@ described in the `Contributing Guidelines`_.
This project contains code from other projects as listed below. The original
This project contains code from other projects as listed below. The original
license text is included in those source files.
license text is included in those source files.
- The stdlib source code is derived from FreeBSD code, which uses various
- The libc source code is derived from `FreeBSD`_ and `SCC`_. FreeBSD uses
BSD licenses, including BSD-3-Clause and BSD-2-Clause.
various BSD licenses, including BSD-3-Clause and BSD-2-Clause. The SCC code
is used under the BSD-3-Clause license with the author's permission.
- The libfdt source code is disjunctively dual licensed
- The libfdt source code is disjunctively dual licensed
(GPL-2.0+ OR BSD-2-Clause). It is used by this project under the terms of
(GPL-2.0+ OR BSD-2-Clause). It is used by this project under the terms of
...
@@ -275,3 +276,5 @@ Arm licensees may contact Arm directly via their partner managers.
...
@@ -275,3 +276,5 @@ Arm licensees may contact Arm directly via their partner managers.
.. _Change Log: ./docs/change-log.rst
.. _Change Log: ./docs/change-log.rst
.. _User Guide: ./docs/user-guide.rst
.. _User Guide: ./docs/user-guide.rst
.. _Porting Guide: ./docs/porting-guide.rst
.. _Porting Guide: ./docs/porting-guide.rst
.. _FreeBSD: http://www.freebsd.org
.. _SCC: http://www.simple-cc.org/
services/spd/trusty/generic-arm64-smcall.c
View file @
6d4f6aea
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
#include <debug.h>
#include <debug.h>
#include <runtime_svc.h>
#include <runtime_svc.h>
#include <stdio.h>
#include "generic-arm64-smcall.h"
#include "generic-arm64-smcall.h"
...
@@ -29,14 +30,14 @@ static void trusty_dputc(char ch, int secure)
...
@@ -29,14 +30,14 @@ static void trusty_dputc(char ch, int secure)
s
->
linebuf
[
s
->
l
++
]
=
ch
;
s
->
linebuf
[
s
->
l
++
]
=
ch
;
if
(
s
->
l
==
sizeof
(
s
->
linebuf
)
||
ch
==
'\n'
)
{
if
(
s
->
l
==
sizeof
(
s
->
linebuf
)
||
ch
==
'\n'
)
{
if
(
secure
)
if
(
secure
)
tf_
printf
(
"secure os: "
);
printf
(
"secure os: "
);
else
else
tf_
printf
(
"non-secure os: "
);
printf
(
"non-secure os: "
);
for
(
i
=
0
;
i
<
s
->
l
;
i
++
)
{
for
(
i
=
0
;
i
<
s
->
l
;
i
++
)
{
putchar
(
s
->
linebuf
[
i
]);
putchar
(
s
->
linebuf
[
i
]);
}
}
if
(
ch
!=
'\n'
)
{
if
(
ch
!=
'\n'
)
{
tf_
printf
(
" <...>
\n
"
);
printf
(
" <...>
\n
"
);
}
}
s
->
l
=
0
;
s
->
l
=
0
;
}
}
...
...
services/std_svc/sdei/sdei_private.h
View file @
6d4f6aea
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#include <setjmp.h>
#include <setjmp.h>
#include <spinlock.h>
#include <spinlock.h>
#include <stdbool.h>
#include <stdbool.h>
#include <
types
.h>
#include <
stdint
.h>
#include <utils_def.h>
#include <utils_def.h>
#ifdef AARCH32
#ifdef AARCH32
...
...
services/std_svc/spm/spm_shim_private.h
View file @
6d4f6aea
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#ifndef __SPM_SHIM_PRIVATE__
#ifndef __SPM_SHIM_PRIVATE__
#define __SPM_SHIM_PRIVATE__
#define __SPM_SHIM_PRIVATE__
#include <
types
.h>
#include <
stdint
.h>
#include <utils_def.h>
#include <utils_def.h>
/* Assembly source */
/* Assembly source */
...
...
Prev
1
…
4
5
6
7
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment