Changeset 4872160 in mainline for boot/arch/arm32/src/putchar.c


Ignore:
Timestamp:
2010-05-04T10:44:55Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
568db0f
Parents:
bb252ca
Message:

new boot infrastructure

  • more code and metadata unification
  • import of up-to-date implementations from the kernel
  • the boot loaders should behave more similarly on all platforms
  • support for deflate compressed (LZ77) boot components
    • this again allows feasible boot images to be created on mips32
  • IA64 is still not booting
    • the broken forked GNU EFI library has been removed, a replacement of the functionality is on its way
File:
1 moved

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/putchar.c

    rbb252ca r4872160  
    11/*
    2  * Copyright (c) 2001-2004 Jakub Jermar
     2 * Copyright (c) 2007 Michal Kebrt
     3 * Copyright (c) 2009 Vineeth Pillai
    34 * All rights reserved.
    45 *
     
    2728 */
    2829
    29 /** @addtogroup generic
     30/** @addtogroup arm32boot
    3031 * @{
    3132 */
    3233/** @file
     34 * @brief bootloader output logic
    3335 */
    3436
    35 #ifndef BOOT_STRING_H_
    36 #define BOOT_STRING_H_
     37#include <typedefs.h>
     38#include <arch/main.h>
     39#include <putchar.h>
     40#include <str.h>
    3741
    38 #include <types.h>
    39 
    40 extern size_t strlen(const char *str);
    41 extern int strcmp(const char *src, const char *dst);
    42 extern int strncmp(const char *src, const char *dst, size_t len);
    43 extern void strncpy(char *dest, const char *src, size_t len);
    44 extern unative_t atoi(const char *text);
    45 extern void *memmove(void *dst, const void *src, size_t len);
    46 
    47 #endif
     42void putchar(const wchar_t ch)
     43{
     44        if (ch == '\n')
     45                *((volatile char *) VIDEORAM_ADDRESS) = '\r';
     46       
     47        if (ascii_check(ch))
     48                *((volatile char *) VIDEORAM_ADDRESS) = ch;
     49        else
     50                *((volatile char *) VIDEORAM_ADDRESS) = U_SPECIAL;
     51}
    4852
    4953/** @}
Note: See TracChangeset for help on using the changeset viewer.