source: trunk/libs/newlib/src/libgloss/or1k/boards/de0_nano.S @ 444

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

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

File size: 1.6 KB
Line 
1/* de0_nano.S -- Support for the DE0 nano board.
2 *
3 * Copyright (c) 2012 Authors
4 *
5 * Contributor Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
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#include "../include/or1k-nop.h"
20
21/*
22 * Define symbols to be used during startup - file is linked at compile time
23 *
24 */
25.weak _or1k_board_mem_base
26.weak _or1k_board_mem_size
27.weak _or1k_board_clk_freq
28
29_or1k_board_mem_base:   .long   0x0
30_or1k_board_mem_size:   .long   0x2000000
31
32_or1k_board_clk_freq:   .long   50000000
33
34/* Peripheral information - Set base to 0 if not present*/
35.weak _or1k_board_uart_base
36.weak _or1k_board_uart_baud
37.weak _or1k_board_uart_IRQ
38
39_or1k_board_uart_base:  .long   0x90000000
40_or1k_board_uart_baud:  .long   115200
41_or1k_board_uart_IRQ:   .long   2
42
43.weak _or1k_board_exit
44_or1k_board_exit:
45        l.nop OR1K_NOP_K_EXIT_QUIET
46.Lexitloop:
47        OR1K_DELAYED_NOP(l.j .Lexitloop)
48
49.global _or1k_board_init_early
50_or1k_board_init_early:
51        OR1K_DELAYED_NOP(l.jr r9)
52
53.weak _or1k_board_init
54_or1k_board_init:
55        OR1K_DELAYED_NOP(l.jr r9)
56
57
Note: See TracBrowser for help on using the repository browser.