a113ec989b
We will likely want a few common functions to make up for the fact we don't have a libc and we don't want to feel like we are programming by banging rocks together. I've purloined the printf function from: https://git.virtualopensystems.com/dev/tcg_baremetal_tests Although I have tweaked the names to avoid confusing GCC about clashing with builtins. Cc: Alexander Spyridakis <a.spyridakis@virtualopensystems.com> Cc: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
26 lines
580 B
C
26 lines
580 B
C
/*
|
|
* Copyright (C) 2015 Virtual Open Systems SAS
|
|
* Author: Alexander Spyridakis <a.spyridakis@virtualopensystems.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#ifndef _MINILIB_H_
|
|
#define _MINILIB_H_
|
|
|
|
/*
|
|
* Provided by the individual arch
|
|
*/
|
|
extern void __sys_outc(char c);
|
|
|
|
/*
|
|
* Provided by the common minilib
|
|
*/
|
|
void ml_printf(const char *fmt, ...);
|
|
|
|
#endif /* _MINILIB_H_ */
|