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
b26c222a
Commit
b26c222a
authored
Mar 29, 2016
by
danh-arm
Browse files
Merge pull request #559 from soby-mathew/sm/cpu_ops_verbose_log
Make cpu operations warning a VERBOSE print
parents
55a85659
1319e7b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/common/debug.h
View file @
b26c222a
/*
/*
* Copyright (c) 2013-201
4
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2013-201
6
, ARM Limited and Contributors. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* modification, are permitted provided that the following conditions are met:
...
@@ -31,8 +31,6 @@
...
@@ -31,8 +31,6 @@
#ifndef __DEBUG_H__
#ifndef __DEBUG_H__
#define __DEBUG_H__
#define __DEBUG_H__
#include <stdio.h>
/* The log output macros print output to the console. These macros produce
/* The log output macros print output to the console. These macros produce
* compiled log output only if the LOG_LEVEL defined in the makefile (or the
* compiled log output only if the LOG_LEVEL defined in the makefile (or the
* make command line) is greater or equal than the level required for that
* make command line) is greater or equal than the level required for that
...
@@ -49,6 +47,8 @@
...
@@ -49,6 +47,8 @@
#define LOG_LEVEL_INFO 40
#define LOG_LEVEL_INFO 40
#define LOG_LEVEL_VERBOSE 50
#define LOG_LEVEL_VERBOSE 50
#ifndef __ASSEMBLY__
#include <stdio.h>
#if LOG_LEVEL >= LOG_LEVEL_NOTICE
#if LOG_LEVEL >= LOG_LEVEL_NOTICE
# define NOTICE(...) tf_printf("NOTICE: " __VA_ARGS__)
# define NOTICE(...) tf_printf("NOTICE: " __VA_ARGS__)
...
@@ -86,4 +86,5 @@ void __dead2 do_panic(void);
...
@@ -86,4 +86,5 @@ void __dead2 do_panic(void);
void
tf_printf
(
const
char
*
fmt
,
...)
__printflike
(
1
,
2
);
void
tf_printf
(
const
char
*
fmt
,
...)
__printflike
(
1
,
2
);
#endif
/* __ASSEMBLY__ */
#endif
/* __DEBUG_H__ */
#endif
/* __DEBUG_H__ */
lib/cpus/aarch64/cortex_a53.S
View file @
b26c222a
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include <bl_common.h>
#include <bl_common.h>
#include <cortex_a53.h>
#include <cortex_a53.h>
#include <cpu_macros.S>
#include <cpu_macros.S>
#include <debug.h>
#include <plat_macros.S>
#include <plat_macros.S>
/
*
---------------------------------------------
/
*
---------------------------------------------
...
@@ -73,7 +74,7 @@ func errata_a53_826319_wa
...
@@ -73,7 +74,7 @@ func errata_a53_826319_wa
*/
*/
cmp
x0
,
#
2
cmp
x0
,
#
2
b.ls
apply_826319
b.ls
apply_826319
#if
DEBUG
#if
LOG_LEVEL >= LOG_LEVEL_VERBOSE
b
print_revision_warning
b
print_revision_warning
#else
#else
ret
ret
...
@@ -109,7 +110,7 @@ func a53_disable_non_temporal_hint
...
@@ -109,7 +110,7 @@ func a53_disable_non_temporal_hint
*/
*/
cmp
x0
,
#
3
cmp
x0
,
#
3
b.ls
disable_hint
b.ls
disable_hint
#if
DEBUG
#if
LOG_LEVEL >= LOG_LEVEL_VERBOSE
b
print_revision_warning
b
print_revision_warning
#else
#else
ret
ret
...
...
lib/cpus/aarch64/cortex_a57.S
View file @
b26c222a
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include <bl_common.h>
#include <bl_common.h>
#include <cortex_a57.h>
#include <cortex_a57.h>
#include <cpu_macros.S>
#include <cpu_macros.S>
#include <debug.h>
#include <plat_macros.S>
#include <plat_macros.S>
/
*
---------------------------------------------
/
*
---------------------------------------------
...
@@ -99,7 +100,7 @@ func errata_a57_806969_wa
...
@@ -99,7 +100,7 @@ func errata_a57_806969_wa
*
Compare
x0
against
revision
r0p0
*
Compare
x0
against
revision
r0p0
*/
*/
cbz
x0
,
apply_806969
cbz
x0
,
apply_806969
#if
DEBUG
#if
LOG_LEVEL >= LOG_LEVEL_VERBOSE
b
print_revision_warning
b
print_revision_warning
#else
#else
ret
ret
...
@@ -125,7 +126,7 @@ func errata_a57_813420_wa
...
@@ -125,7 +126,7 @@ func errata_a57_813420_wa
*
Compare
x0
against
revision
r0p0
*
Compare
x0
against
revision
r0p0
*/
*/
cbz
x0
,
apply_813420
cbz
x0
,
apply_813420
#if
DEBUG
#if
LOG_LEVEL >= LOG_LEVEL_VERBOSE
b
print_revision_warning
b
print_revision_warning
#else
#else
ret
ret
...
@@ -154,7 +155,7 @@ func a57_disable_ldnp_overread
...
@@ -154,7 +155,7 @@ func a57_disable_ldnp_overread
*/
*/
cmp
x0
,
#
0x12
cmp
x0
,
#
0x12
b.ls
disable_hint
b.ls
disable_hint
#if
DEBUG
#if
LOG_LEVEL >= LOG_LEVEL_VERBOSE
b
print_revision_warning
b
print_revision_warning
#else
#else
ret
ret
...
...
lib/cpus/aarch64/cpu_helpers.S
View file @
b26c222a
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#if IMAGE_BL31
#if IMAGE_BL31
#include <cpu_data.h>
#include <cpu_data.h>
#endif
#endif
#include <debug.h>
/
*
Reset
fn
is
needed
in
BL
at
reset
vector
*/
/
*
Reset
fn
is
needed
in
BL
at
reset
vector
*/
#if IMAGE_BL1 || IMAGE_BL31
#if IMAGE_BL1 || IMAGE_BL31
...
@@ -204,10 +205,10 @@ error_exit:
...
@@ -204,10 +205,10 @@ error_exit:
ret
ret
endfunc
get_cpu_ops_ptr
endfunc
get_cpu_ops_ptr
#if
DEBUG
#if
LOG_LEVEL >= LOG_LEVEL_VERBOSE
.
section
.
rodata.
rev_
warn
_str
,
"aS"
.
section
.
rodata.
rev_
verbose
_str
,
"aS"
rev_
warn
_str
:
rev_
verbose
_str
:
.
asciz
"
Warning
: Skipping CPU specific reset operation for non-matching CPU revision number.\n"
.
asciz
"
VERBOSE
: Skipping CPU specific reset operation for non-matching CPU revision number.\n"
/
*
/
*
*
This
function
prints
the
above
warning
message
to
the
crash
console
.
*
This
function
prints
the
above
warning
message
to
the
crash
console
.
...
@@ -224,7 +225,7 @@ func print_revision_warning
...
@@ -224,7 +225,7 @@ func print_revision_warning
/
*
Check
if
the
console
is
initialized
*/
/
*
Check
if
the
console
is
initialized
*/
cbz
x0
,
1
f
cbz
x0
,
1
f
/
*
The
console
is
initialized
*/
/
*
The
console
is
initialized
*/
adr
x4
,
rev_
warn
_str
adr
x4
,
rev_
verbose
_str
bl
asm_print_str
bl
asm_print_str
1
:
1
:
ret
x5
ret
x5
...
...
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