Commit 071d4953 authored by Madhukar Pappireddy's avatar Madhukar Pappireddy Committed by TrustedFirmware Code Review
Browse files

Merge "Addition of standard APIs in qtiseclib interface" into integration

parents 0b96df76 9ac093b6
......@@ -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,
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment