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
8253eb57
Unverified
Commit
8253eb57
authored
Jan 25, 2018
by
davidcunado-arm
Committed by
GitHub
Jan 25, 2018
Browse files
Merge pull request #1231 from Leo-Yan/hikey960_enable_fiq_handling
Hikey960: Enable invalid FIQ handling
parents
d95eb476
b79f7ed0
Changes
1
Show whitespace changes
Inline
Side-by-side
plat/hisilicon/hikey960/hikey960_bl31_setup.c
View file @
8253eb57
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
#include <gicv2.h>
#include <gicv2.h>
#include <hi3660.h>
#include <hi3660.h>
#include <hisi_ipc.h>
#include <hisi_ipc.h>
#include <interrupt_mgmt.h>
#include <platform.h>
#include <platform_def.h>
#include <platform_def.h>
#include "hikey960_def.h"
#include "hikey960_def.h"
...
@@ -167,6 +169,37 @@ void bl31_platform_setup(void)
...
@@ -167,6 +169,37 @@ void bl31_platform_setup(void)
hisi_ipc_init
();
hisi_ipc_init
();
}
}
#ifdef SPD_none
static
uint64_t
hikey_debug_fiq_handler
(
uint32_t
id
,
uint32_t
flags
,
void
*
handle
,
void
*
cookie
)
{
int
intr
,
intr_raw
;
/* Acknowledge interrupt */
intr_raw
=
plat_ic_acknowledge_interrupt
();
intr
=
plat_ic_get_interrupt_id
(
intr_raw
);
ERROR
(
"Invalid interrupt: intr=%d
\n
"
,
intr
);
console_flush
();
panic
();
return
0
;
}
#endif
void
bl31_plat_runtime_setup
(
void
)
void
bl31_plat_runtime_setup
(
void
)
{
{
#ifdef SPD_none
uint32_t
flags
;
int32_t
rc
;
flags
=
0
;
set_interrupt_rm_flag
(
flags
,
NON_SECURE
);
rc
=
register_interrupt_type_handler
(
INTR_TYPE_S_EL1
,
hikey_debug_fiq_handler
,
flags
);
if
(
rc
!=
0
)
panic
();
#endif
}
}
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