Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 585 → Rev 586

/kernel/trunk/arch/sparc64/src/console.c
26,14 → 26,29
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
#include <putchar.h>
#include <arch/console.h>
#include <genarch/ofw/ofw.h>
#include <console/chardev.h>
#include <console/console.h>
 
static void ofw_sparc64_putchar(chardev_t *d, const char ch);
 
static chardev_t ofw_sparc64_console;
static chardev_operations_t ofw_sparc64_console_ops = {
.write = ofw_sparc64_putchar
};
 
void ofw_sparc64_console_init(void)
{
chardev_initialize("ofw_sparc64_console", &ofw_sparc64_console, &ofw_sparc64_console_ops);
stdout = &ofw_sparc64_console;
}
 
/** Print one character.
*
* @param ch Character to be printed.
*/
void putchar(const char ch)
void ofw_sparc64_putchar(chardev_t *d, const char ch)
{
if (ch == '\n')
ofw_putchar('\r');