source: mainline/kernel/arch/abs32le/src/abs32le.c@ 82474ef

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 82474ef was c1d3549, checked in by Martin Decky <martin@…>, 16 years ago

add missing functions to abs32le

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/*
2 * Copyright (c) 2010 Martin Decky
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup abs32le
30 * @{
31 */
32/** @file
33 */
34
35#include <arch.h>
36#include <arch/types.h>
37#include <arch/context.h>
38#include <arch/interrupt.h>
39#include <arch/asm.h>
40
41#include <config.h>
42#include <interrupt.h>
43#include <ddi/irq.h>
44#include <proc/thread.h>
45#include <syscall/syscall.h>
46#include <console/console.h>
47#include <sysinfo/sysinfo.h>
48#include <memstr.h>
49
50void arch_pre_mm_init(void)
51{
52}
53
54void arch_post_mm_init(void)
55{
56 if (config.cpu_active == 1) {
57 /* Initialize IRQ routing */
58 irq_init(0, 0);
59
60 /* Merge all memory zones to 1 big zone */
61 zone_merge_all();
62 }
63}
64
65void arch_post_cpu_init()
66{
67}
68
69void arch_pre_smp_init(void)
70{
71}
72
73void arch_post_smp_init(void)
74{
75}
76
77void calibrate_delay_loop(void)
78{
79}
80
81unative_t sys_tls_set(unative_t addr)
82{
83 return 0;
84}
85
86/** Construct function pointer
87 *
88 * @param fptr function pointer structure
89 * @param addr function address
90 * @param caller calling function address
91 *
92 * @return address of the function pointer
93 *
94 */
95void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
96{
97 return addr;
98}
99
100void arch_reboot(void)
101{
102}
103
104void irq_initialize_arch(irq_t *irq)
105{
106 (void) irq;
107}
108
109void memsetb(void *dst, size_t cnt, uint8_t val)
110{
111 _memsetb(dst, cnt, val);
112}
113
114void memsetw(void *dst, size_t cnt, uint16_t val)
115{
116 _memsetw(dst, cnt, val);
117}
118
119void panic_printf(char *fmt, ...)
120{
121 va_list args;
122
123 va_start(args, fmt);
124 vprintf(fmt, args);
125 va_end(args);
126
127 halt();
128}
129
130/** @}
131 */
Note: See TracBrowser for help on using the repository browser.