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
071d4953
Commit
071d4953
authored
Sep 10, 2020
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Sep 10, 2020
Browse files
Merge "Addition of standard APIs in qtiseclib interface" into integration
parents
0b96df76
9ac093b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
plat/qti/qtiseclib/inc/qtiseclib_cb_interface.h
View file @
071d4953
...
...
@@ -16,6 +16,9 @@
/* Standard Library API's */
void
*
qtiseclib_cb_memcpy
(
void
*
dst
,
const
void
*
src
,
size_t
len
);
int
qtiseclib_cb_strcmp
(
const
char
*
s1
,
const
char
*
s2
);
void
*
qtiseclib_cb_memset
(
void
*
s
,
int
c
,
size_t
n
);
void
*
qtiseclib_cb_memmove
(
void
*
dest
,
const
void
*
src
,
size_t
n
);
#define QTISECLIB_CB_ERROR(...) qtiseclib_cb_log(QTISECLIB_LOG_LEVEL_ERROR, __VA_ARGS__)
#define QTISECLIB_CB_NOTICE(...) qtiseclib_cb_log(QTISECLIB_LOG_LEVEL_NOTICE, __VA_ARGS__)
...
...
@@ -41,6 +44,8 @@ void qtiseclib_cb_switch_console_to_crash_state(void);
void
qtiseclib_cb_udelay
(
uint32_t
usec
);
int
qtiseclib_cb_console_flush
(
void
);
#if QTI_SDI_BUILD
int
qtiseclib_cb_mmap_remove_dynamic_region
(
uintptr_t
base_va
,
size_t
size
);
int
qtiseclib_cb_mmap_add_dynamic_region
(
unsigned
long
long
base_pa
,
...
...
plat/qti/qtiseclib/src/qtiseclib_cb_interface.c
View file @
071d4953
...
...
@@ -29,6 +29,21 @@ void *qtiseclib_cb_memcpy(void *dst, const void *src, size_t len)
return
memcpy
(
dst
,
src
,
len
);
}
int
qtiseclib_cb_strcmp
(
const
char
*
s1
,
const
char
*
s2
)
{
return
strcmp
(
s1
,
s2
);
}
void
*
qtiseclib_cb_memset
(
void
*
s
,
int
c
,
size_t
n
)
{
return
memset
(
s
,
c
,
n
);
}
void
*
qtiseclib_cb_memmove
(
void
*
dest
,
const
void
*
src
,
size_t
n
)
{
return
memmove
(
dest
,
src
,
n
);
}
/* Printing logs below or equal LOG_LEVEL from QTISECLIB. */
void
qtiseclib_cb_log
(
unsigned
int
loglvl
,
const
char
*
fmt
,
...)
{
...
...
@@ -106,6 +121,11 @@ void qtiseclib_cb_udelay(uint32_t usec)
udelay
(
usec
);
}
int
qtiseclib_cb_console_flush
(
void
)
{
return
console_flush
();
}
#if QTI_SDI_BUILD
void
qtiseclib_cb_get_ns_ctx
(
qtiseclib_dbg_a64_ctxt_regs_type
*
qti_ns_ctx
)
{
...
...
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