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
8a08e272
Unverified
Commit
8a08e272
authored
Apr 04, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Apr 04, 2019
Browse files
Merge pull request #1920 from ambroise-arm/av/deprecated
Remove deprecated interfaces
parents
682c307d
6e756f6d
Changes
48
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
8a08e272
...
@@ -285,28 +285,6 @@ INCLUDES += -Iinclude \
...
@@ -285,28 +285,6 @@ INCLUDES += -Iinclude \
${PLAT_INCLUDES}
\
${PLAT_INCLUDES}
\
${SPD_INCLUDES}
${SPD_INCLUDES}
ifeq
(${ERROR_DEPRECATED},0)
INCLUDES
+=
-Iinclude
/bl1
\
-Iinclude
/bl2
\
-Iinclude
/bl2u
\
-Iinclude
/bl31
\
-Iinclude
/drivers
\
-Iinclude
/drivers/arm
\
-Iinclude
/drivers/auth
\
-Iinclude
/drivers/io
\
-Iinclude
/drivers/ti/uart
\
-Iinclude
/lib
\
-Iinclude
/lib/cpus
\
-Iinclude
/lib/el3_runtime
\
-Iinclude
/lib/extensions
\
-Iinclude
/lib/pmf
\
-Iinclude
/lib/psci
\
-Iinclude
/lib/xlat_tables
\
-Iinclude
/plat/common
\
-Iinclude
/services
\
-Iinclude
/tools_share
endif
include
common/backtrace/backtrace.mk
include
common/backtrace/backtrace.mk
################################################################################
################################################################################
...
...
drivers/arm/pl011/aarch32/pl011_console.S
View file @
8a08e272
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
#include <arch.h>
#include <arch.h>
#include <asm_macros.S>
#include <asm_macros.S>
#include <assert_macros.S>
#include <assert_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/arm/pl011.h>
#include <drivers/arm/pl011.h>
...
...
drivers/arm/pl011/aarch64/pl011_console.S
View file @
8a08e272
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
#include <arch.h>
#include <arch.h>
#include <asm_macros.S>
#include <asm_macros.S>
#include <assert_macros.S>
#include <assert_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/arm/pl011.h>
#include <drivers/arm/pl011.h>
...
...
drivers/arm/tzc/tzc380.c
View file @
8a08e272
...
@@ -24,7 +24,7 @@ static unsigned int tzc380_read_build_config(uintptr_t base)
...
@@ -24,7 +24,7 @@ static unsigned int tzc380_read_build_config(uintptr_t base)
return
mmio_read_32
(
base
+
TZC380_CONFIGURATION_OFF
);
return
mmio_read_32
(
base
+
TZC380_CONFIGURATION_OFF
);
}
}
static
void
tzc380_write_action
(
uintptr_t
base
,
tzc_action_
t
action
)
static
void
tzc380_write_action
(
uintptr_t
base
,
unsigned
in
t
action
)
{
{
mmio_write_32
(
base
+
ACTION_OFF
,
action
);
mmio_write_32
(
base
+
ACTION_OFF
,
action
);
}
}
...
@@ -91,7 +91,7 @@ void tzc380_configure_region(uint8_t region, uintptr_t region_base, unsigned int
...
@@ -91,7 +91,7 @@ void tzc380_configure_region(uint8_t region, uintptr_t region_base, unsigned int
tzc380_write_region_attributes
(
tzc380
.
base
,
region
,
attr
);
tzc380_write_region_attributes
(
tzc380
.
base
,
region
,
attr
);
}
}
void
tzc380_set_action
(
tzc_action_
t
action
)
void
tzc380_set_action
(
unsigned
in
t
action
)
{
{
assert
(
tzc380
.
base
!=
0U
);
assert
(
tzc380
.
base
!=
0U
);
...
...
drivers/cadence/uart/aarch64/cdns_console.S
View file @
8a08e272
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
#include <arch.h>
#include <arch.h>
#include <asm_macros.S>
#include <asm_macros.S>
#include <assert_macros.S>
#include <assert_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/cadence/cdns_uart.h>
#include <drivers/cadence/cdns_uart.h>
...
...
drivers/console/aarch64/skeleton_console.S
View file @
8a08e272
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
*/
#include <asm_macros.S>
#include <asm_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
/
*
/
*
...
...
drivers/coreboot/cbmem_console/aarch64/cbmem_console.S
View file @
8a08e272
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
*/
*/
#include <asm_macros.S>
#include <asm_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/coreboot/cbmem_console.h>
#include <drivers/coreboot/cbmem_console.h>
...
...
drivers/marvell/uart/a3700_console.S
View file @
8a08e272
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
#include <arch.h>
#include <arch.h>
#include <asm_macros.S>
#include <asm_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/marvell/uart/a3700_console.h>
#include <drivers/marvell/uart/a3700_console.h>
...
...
drivers/meson/console/aarch64/meson_console.S
View file @
8a08e272
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
#include <asm_macros.S>
#include <asm_macros.S>
#include <assert_macros.S>
#include <assert_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/meson/meson_console.h>
#include <drivers/meson/meson_console.h>
...
...
drivers/st/uart/aarch32/stm32_console.S
View file @
8a08e272
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
*/
*/
#include <asm_macros.S>
#include <asm_macros.S>
#include <assert_macros.S>
#include <assert_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/st/stm32_console.h>
#include <drivers/st/stm32_console.h>
#include <drivers/st/stm32_uart_regs.h>
#include <drivers/st/stm32_uart_regs.h>
...
...
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_d3.c
View file @
8a08e272
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*/
*/
#include <stdint.h>
#include <stdint.h>
#include <mmio.h>
#include <
lib/
mmio.h>
#include <common/debug.h>
#include <common/debug.h>
#include "boot_init_dram_regdef_d3.h"
#include "boot_init_dram_regdef_d3.h"
...
@@ -193,7 +193,7 @@ static void init_ddr_d3_1866(void)
...
@@ -193,7 +193,7 @@ static void init_ddr_d3_1866(void)
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFF00
);
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFF00
);
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B0
+
i
*
0x20
);
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B0
+
i
*
0x20
);
WriteReg_32
(
DBSC_D3_DBPDRGD0
,
RegVal_R2
|
RegVal_R6
);
WriteReg_32
(
DBSC_D3_DBPDRGD0
,
RegVal_R2
|
RegVal_R6
);
}
else
}
else
{
{
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B2
+
i
*
0x20
);
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B2
+
i
*
0x20
);
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFFF8
);
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFFF8
);
...
@@ -508,7 +508,7 @@ static void init_ddr_d3_1600(void)
...
@@ -508,7 +508,7 @@ static void init_ddr_d3_1600(void)
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFF00
);
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFF00
);
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B0
+
i
*
0x20
);
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B0
+
i
*
0x20
);
WriteReg_32
(
DBSC_D3_DBPDRGD0
,
RegVal_R2
|
RegVal_R6
);
WriteReg_32
(
DBSC_D3_DBPDRGD0
,
RegVal_R2
|
RegVal_R6
);
}
else
}
else
{
{
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B2
+
i
*
0x20
);
WriteReg_32
(
DBSC_D3_DBPDRGA0
,
0x000000B2
+
i
*
0x20
);
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFFF8
);
RegVal_R2
=
(
ReadReg_32
(
DBSC_D3_DBPDRGD0
)
&
0xFFFFFFF8
);
...
...
drivers/staging/renesas/rcar/pfc/D3/pfc_init_d3.c
View file @
8a08e272
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*/
*/
#include <stdint.h>
#include <stdint.h>
#include <mmio.h>
#include <
lib/
mmio.h>
#include "pfc_init_d3.h"
#include "pfc_init_d3.h"
#include "rcar_def.h"
#include "rcar_def.h"
...
@@ -896,7 +896,7 @@ void pfc_init_d3(void)
...
@@ -896,7 +896,7 @@ void pfc_init_d3(void)
pfc_reg_write
(
PFC_PUD3
,
0xFF0FFFFFU
);
pfc_reg_write
(
PFC_PUD3
,
0xFF0FFFFFU
);
pfc_reg_write
(
PFC_PUD4
,
0xE0000000U
);
pfc_reg_write
(
PFC_PUD4
,
0xE0000000U
);
pfc_reg_write
(
PFC_PUD5
,
0x60000000U
);
pfc_reg_write
(
PFC_PUD5
,
0x60000000U
);
/* initialize LSI pin pull-enable register */
/* initialize LSI pin pull-enable register */
pfc_reg_write
(
PFC_PUEN0
,
0x00000000U
);
pfc_reg_write
(
PFC_PUEN0
,
0x00000000U
);
pfc_reg_write
(
PFC_PUEN1
,
0x00000000U
);
pfc_reg_write
(
PFC_PUEN1
,
0x00000000U
);
...
@@ -904,7 +904,7 @@ void pfc_init_d3(void)
...
@@ -904,7 +904,7 @@ void pfc_init_d3(void)
pfc_reg_write
(
PFC_PUEN3
,
0x000F008CU
);
pfc_reg_write
(
PFC_PUEN3
,
0x000F008CU
);
pfc_reg_write
(
PFC_PUEN4
,
0x00000000U
);
pfc_reg_write
(
PFC_PUEN4
,
0x00000000U
);
pfc_reg_write
(
PFC_PUEN5
,
0x00000000U
);
pfc_reg_write
(
PFC_PUEN5
,
0x00000000U
);
/* initialize positive/negative logic select */
/* initialize positive/negative logic select */
mmio_write_32
(
GPIO_POSNEG0
,
0x00000000U
);
mmio_write_32
(
GPIO_POSNEG0
,
0x00000000U
);
mmio_write_32
(
GPIO_POSNEG1
,
0x00000000U
);
mmio_write_32
(
GPIO_POSNEG1
,
0x00000000U
);
...
...
drivers/staging/renesas/rcar/pfc/V3M/pfc_init_v3m.c
View file @
8a08e272
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*/
*/
#include <stdint.h>
/* for uint32_t */
#include <stdint.h>
/* for uint32_t */
#include <mmio.h>
#include <
lib/
mmio.h>
#include "pfc_init_v3m.h"
#include "pfc_init_v3m.h"
#include "include/rcar_def.h"
#include "include/rcar_def.h"
#include "rcar_private.h"
#include "rcar_private.h"
...
...
drivers/ti/uart/aarch64/16550_console.S
View file @
8a08e272
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
#include <arch.h>
#include <arch.h>
#include <asm_macros.S>
#include <asm_macros.S>
#include <assert_macros.S>
#include <assert_macros.S>
#define USE_FINISH_CONSOLE_REG_2
#include <console_macros.S>
#include <console_macros.S>
#include <drivers/ti/uart/uart_16550.h>
#include <drivers/ti/uart/uart_16550.h>
...
...
include/arch/aarch32/console_macros.S
View file @
8a08e272
/*
/*
*
Copyright
(
c
)
2018
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2018
-
2019
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
*/
...
@@ -17,39 +17,6 @@
...
@@ -17,39 +17,6 @@
*
with
a
tail
call
that
will
include
return
to
the
caller
.
*
with
a
tail
call
that
will
include
return
to
the
caller
.
*
REQUIRES
console_t
pointer
in
x0
and
a
valid
return
address
in
x30
.
*
REQUIRES
console_t
pointer
in
x0
and
a
valid
return
address
in
x30
.
*/
*/
/*
*
The
USE_FINISH_CONSOLE_REG_2
guard
is
introduced
to
allow
selection
between
*
the
2
variants
of
the
finish_console_register
macro
and
will
be
removed
*
once
the
deprecated
variant
is
removed
.
*/
#ifndef USE_FINISH_CONSOLE_REG_2
#if !ERROR_DEPRECATED
/
*
This
version
of
the
macro
is
deprecated
.
Use
the
new
version
*/
.
macro
finish_console_register
_driver
/
*
*
Add
these
weak
definitions
so
we
will
automatically
write
a
0
if
the
*
function
doesn
't exist. I'
d
rather
use
.
ifdef
but
that
only
works
if
*
the
function
was
defined
(
not
just
declared
.
global
)
above
this
point
*
in
the
file
,
which
we
can
't guarantee.
*/
.
weak
console_
\
_driver
\
()
_putc
.
weak
console_
\
_driver
\
()
_getc
.
weak
console_
\
_driver
\
()
_flush
/
*
Don
't use adrp on weak funcs! See GNU ld bugzilla issue 22589. */
ldr
r1
,
=
console_
\
_driver
\
()
_putc
str
r1
,
[
r0
,
#
CONSOLE_T_PUTC
]
ldr
r1
,
=
console_
\
_driver
\
()
_getc
str
r1
,
[
r0
,
#
CONSOLE_T_GETC
]
ldr
r1
,
=
console_
\
_driver
\
()
_flush
str
r1
,
[
r0
,
#
CONSOLE_T_FLUSH
]
mov
r1
,
#(
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_CRASH
)
str
r1
,
[
r0
,
#
CONSOLE_T_FLAGS
]
b
console_register
.
endm
#endif /* ERROR_DEPRECATED */
#else /* USE_FINISH_CONSOLE_REG_2 */
/
*
The
new
version
of
the
macro
not
using
weak
references
*/
.
macro
finish_console_register
_driver
,
putc
=
0
,
getc
=
0
,
flush
=
0
.
macro
finish_console_register
_driver
,
putc
=
0
,
getc
=
0
,
flush
=
0
/
*
/
*
*
If
any
of
the
callback
is
not
specified
or
set
as
0
,
then
the
*
If
any
of
the
callback
is
not
specified
or
set
as
0
,
then
the
...
@@ -80,5 +47,5 @@
...
@@ -80,5 +47,5 @@
str
r1
,
[
r0
,
#
CONSOLE_T_FLAGS
]
str
r1
,
[
r0
,
#
CONSOLE_T_FLAGS
]
b
console_register
b
console_register
.
endm
.
endm
#endif /* USE_FINISH_CONSOLE_REG_2 */
#endif /* CONSOLE_MACROS_S */
#endif /* CONSOLE_MACROS_S */
include/arch/aarch64/arch_helpers.h
View file @
8a08e272
...
@@ -310,13 +310,6 @@ static inline void disable_debug_exceptions(void)
...
@@ -310,13 +310,6 @@ static inline void disable_debug_exceptions(void)
isb
();
isb
();
}
}
#if !ERROR_DEPRECATED
uint32_t
get_afflvl_shift
(
uint32_t
);
uint32_t
mpidr_mask_lower_afflvls
(
uint64_t
,
uint32_t
);
void
__dead2
eret
(
uint64_t
x0
,
uint64_t
x1
,
uint64_t
x2
,
uint64_t
x3
,
uint64_t
x4
,
uint64_t
x5
,
uint64_t
x6
,
uint64_t
x7
);
#endif
void
__dead2
smc
(
uint64_t
x0
,
uint64_t
x1
,
uint64_t
x2
,
uint64_t
x3
,
void
__dead2
smc
(
uint64_t
x0
,
uint64_t
x1
,
uint64_t
x2
,
uint64_t
x3
,
uint64_t
x4
,
uint64_t
x5
,
uint64_t
x6
,
uint64_t
x7
);
uint64_t
x4
,
uint64_t
x5
,
uint64_t
x6
,
uint64_t
x7
);
...
@@ -508,10 +501,6 @@ static inline uint64_t el_implemented(unsigned int el)
...
@@ -508,10 +501,6 @@ static inline uint64_t el_implemented(unsigned int el)
}
}
}
}
#if !ERROR_DEPRECATED
#define EL_IMPLEMENTED(_el) el_implemented(_el)
#endif
/* Previously defined accesor functions with incomplete register names */
/* Previously defined accesor functions with incomplete register names */
#define read_current_el() read_CurrentEl()
#define read_current_el() read_CurrentEl()
...
...
include/arch/aarch64/console_macros.S
View file @
8a08e272
/*
/*
*
Copyright
(
c
)
2017
-
201
8
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
Copyright
(
c
)
2017
-
201
9
,
ARM
Limited
and
Contributors
.
All
rights
reserved
.
*
*
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*
SPDX
-
License
-
Identifier
:
BSD
-
3
-
Clause
*/
*/
...
@@ -17,39 +17,6 @@
...
@@ -17,39 +17,6 @@
*
with
a
tail
call
that
will
include
return
to
the
caller
.
*
with
a
tail
call
that
will
include
return
to
the
caller
.
*
REQUIRES
console_t
pointer
in
x0
and
a
valid
return
address
in
x30
.
*
REQUIRES
console_t
pointer
in
x0
and
a
valid
return
address
in
x30
.
*/
*/
/*
*
The
USE_FINISH_CONSOLE_REG_2
guard
is
introduced
to
allow
selection
between
*
the
2
variants
of
the
finish_console_register
macro
and
will
be
removed
*
once
the
deprecated
variant
is
removed
.
*/
#ifndef USE_FINISH_CONSOLE_REG_2
#if !ERROR_DEPRECATED
/
*
This
version
of
the
macro
is
deprecated
.
Use
the
new
version
*/
.
macro
finish_console_register
_driver
/
*
*
Add
these
weak
definitions
so
we
will
automatically
write
a
0
if
the
*
function
doesn
't exist. I'
d
rather
use
.
ifdef
but
that
only
works
if
*
the
function
was
defined
(
not
just
declared
.
global
)
above
this
point
*
in
the
file
,
which
we
can
't guarantee.
*/
.
weak
console_
\
_driver
\
()
_putc
.
weak
console_
\
_driver
\
()
_getc
.
weak
console_
\
_driver
\
()
_flush
/
*
Don
't use adrp on weak funcs! See GNU ld bugzilla issue 22589. */
ldr
x1
,
=
console_
\
_driver
\
()
_putc
str
x1
,
[
x0
,
#
CONSOLE_T_PUTC
]
ldr
x1
,
=
console_
\
_driver
\
()
_getc
str
x1
,
[
x0
,
#
CONSOLE_T_GETC
]
ldr
x1
,
=
console_
\
_driver
\
()
_flush
str
x1
,
[
x0
,
#
CONSOLE_T_FLUSH
]
mov
x1
,
#(
CONSOLE_FLAG_BOOT
|
CONSOLE_FLAG_CRASH
)
str
x1
,
[
x0
,
#
CONSOLE_T_FLAGS
]
b
console_register
.
endm
#endif /* ERROR_DEPRECATED */
#else /* USE_FINISH_CONSOLE_REG_2 */
/
*
The
new
version
of
the
macro
not
using
weak
references
*/
.
macro
finish_console_register
_driver
,
putc
=
0
,
getc
=
0
,
flush
=
0
.
macro
finish_console_register
_driver
,
putc
=
0
,
getc
=
0
,
flush
=
0
/
*
/
*
*
If
any
of
the
callback
is
not
specified
or
set
as
0
,
then
the
*
If
any
of
the
callback
is
not
specified
or
set
as
0
,
then
the
...
@@ -83,6 +50,5 @@
...
@@ -83,6 +50,5 @@
str
x1
,
[
x0
,
#
CONSOLE_T_FLAGS
]
str
x1
,
[
x0
,
#
CONSOLE_T_FLAGS
]
b
console_register
b
console_register
.
endm
.
endm
#endif /* USE_FINISH_CONSOLE_REG_2 */
#endif /* CONSOLE_MACROS_S */
#endif /* CONSOLE_MACROS_S */
include/drivers/arm/tzc380.h
View file @
8a08e272
...
@@ -138,7 +138,7 @@ void tzc380_init(uintptr_t base);
...
@@ -138,7 +138,7 @@ void tzc380_init(uintptr_t base);
void
tzc380_configure_region
(
uint8_t
region
,
void
tzc380_configure_region
(
uint8_t
region
,
uintptr_t
region_base
,
uintptr_t
region_base
,
unsigned
int
attr
);
unsigned
int
attr
);
void
tzc380_set_action
(
tzc_action_
t
action
);
void
tzc380_set_action
(
unsigned
in
t
action
);
static
inline
void
tzc_init
(
uintptr_t
base
)
static
inline
void
tzc_init
(
uintptr_t
base
)
{
{
tzc380_init
(
base
);
tzc380_init
(
base
);
...
@@ -151,7 +151,7 @@ static inline void tzc_configure_region(uint8_t region,
...
@@ -151,7 +151,7 @@ static inline void tzc_configure_region(uint8_t region,
tzc380_configure_region
(
region
,
region_base
,
attr
);
tzc380_configure_region
(
region
,
region_base
,
attr
);
}
}
static
inline
void
tzc_set_action
(
tzc_action_
t
action
)
static
inline
void
tzc_set_action
(
unsigned
in
t
action
)
{
{
tzc380_set_action
(
action
);
tzc380_set_action
(
action
);
}
}
...
...
include/drivers/arm/tzc_common.h
View file @
8a08e272
...
@@ -86,12 +86,4 @@
...
@@ -86,12 +86,4 @@
#define TZC_REGION_OFFSET(region_size, region_no) \
#define TZC_REGION_OFFSET(region_size, region_no) \
((region_size) * (region_no))
((region_size) * (region_no))
#ifndef __ASSEMBLY__
#if !ERROR_DEPRECATED
typedef
unsigned
int
tzc_action_t
;
typedef
unsigned
int
tzc_region_attributes_t
;
#endif
#endif
/* __ASSEMBLY__ */
#endif
/* TZC_COMMON_H */
#endif
/* TZC_COMMON_H */
lib/aarch64/misc_helpers.S
View file @
8a08e272
...
@@ -10,11 +10,6 @@
...
@@ -10,11 +10,6 @@
#include <common/bl_common.h>
#include <common/bl_common.h>
#include <lib/xlat_tables/xlat_tables_defs.h>
#include <lib/xlat_tables/xlat_tables_defs.h>
#if !ERROR_DEPRECATED
.
globl
get_afflvl_shift
.
globl
mpidr_mask_lower_afflvls
.
globl
eret
#endif /* ERROR_DEPRECATED */
.
globl
smc
.
globl
smc
.
globl
zero_normalmem
.
globl
zero_normalmem
...
@@ -30,31 +25,6 @@
...
@@ -30,31 +25,6 @@
.
globl
enable_vfp
.
globl
enable_vfp
#endif
#endif
#if !ERROR_DEPRECATED
func
get_afflvl_shift
cmp
x0
,
#
3
cinc
x0
,
x0
,
eq
mov
x1
,
#
MPIDR_AFFLVL_SHIFT
lsl
x0
,
x0
,
x1
ret
endfunc
get_afflvl_shift
func
mpidr_mask_lower_afflvls
cmp
x1
,
#
3
cinc
x1
,
x1
,
eq
mov
x2
,
#
MPIDR_AFFLVL_SHIFT
lsl
x2
,
x1
,
x2
lsr
x0
,
x0
,
x2
lsl
x0
,
x0
,
x2
ret
endfunc
mpidr_mask_lower_afflvls
func
eret
eret
endfunc
eret
#endif /* ERROR_DEPRECATED */
func
smc
func
smc
smc
#
0
smc
#
0
endfunc
smc
endfunc
smc
...
...
Prev
1
2
3
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