source: trunk/libs/newlib/src/libgloss/or1k/outbyte.S @ 551

Last change on this file since 551 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.0 KB
Line 
1/* outbyte.S -- Write one byte for OpenRISC 1000.
2 *
3 * Copyright (c) 2014 Authors
4 *
5 * Contributor Stefan Wallentowitz <stefan.wallentowitz@tum.de>
6 *
7 * The authors hereby grant permission to use, copy, modify, distribute,
8 * and license this software and its documentation for any purpose, provided
9 * that existing copyright notices are retained in all copies and that this
10 * notice is included verbatim in any distributions. No written agreement,
11 * license, or royalty fee is required for any of the authorized uses.
12 * Modifications to this software may be copyrighted by their authors
13 * and need not follow the licensing terms described here, provided that
14 * the new terms are clearly indicated on the first page of each file where
15 * they apply.
16 */
17
18#include "include/or1k-asm.h"
19
20.global _or1k_outbyte
21
22.text
23_or1k_outbyte:
24        LOAD_SYMBOL_2_GPR(r4,_or1k_board_uart_base)
25        l.lwz   r4, 0(r4)
26        l.sfeq  r4, r0
27        OR1K_DELAYED_NOP(l.bf .Lnouart)
28.Luart:
29        OR1K_DELAYED_NOP(l.j _or1k_uart_write)
30.Lnouart:
31        OR1K_DELAYED(
32                OR1K_INST(l.nop 0x4),
33                OR1K_INST(l.jr r9)
34        )
Note: See TracBrowser for help on using the repository browser.