Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/ia64.c

    r36df4109 r2902e1bb  
    3434
    3535#include <arch.h>
    36 #include <arch/arch.h>
    3736#include <typedefs.h>
    3837#include <errno.h>
    3938#include <interrupt.h>
    40 #include <arch/interrupt.h>
    4139#include <macros.h>
    4240#include <str.h>
     
    6159#endif
    6260
    63 static void ia64_pre_mm_init(void);
    64 static void ia64_post_mm_init(void);
    65 static void ia64_post_smp_init(void);
    66 
    67 arch_ops_t ia64_ops = {
    68         .pre_mm_init = ia64_pre_mm_init,
    69         .post_mm_init = ia64_post_mm_init,
    70         .post_smp_init = ia64_post_smp_init,
    71 };
    72 
    73 arch_ops_t *arch_ops = &ia64_ops;
    74 
    7561/* NS16550 as a COM 1 */
    7662#define NS16550_IRQ  (4 + LEGACY_INTERRUPT_BASE)
     
    8268
    8369/** Performs ia64-specific initialization before main_bsp() is called. */
    84 void ia64_pre_main(void)
     70void arch_pre_main(void)
    8571{
    8672        init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS,
     
    9783}
    9884
    99 void ia64_pre_mm_init(void)
    100 {
    101         if (config.cpu_active == 1)
    102                 exception_init();
     85void arch_pre_mm_init(void)
     86{
    10387}
    10488
     
    130114}
    131115
    132 void ia64_post_mm_init(void)
     116void arch_post_mm_init(void)
    133117{
    134118        if (config.cpu_active == 1) {
     
    143127}
    144128
    145 void ia64_post_smp_init(void)
     129void arch_post_cpu_init(void)
     130{
     131}
     132
     133void arch_pre_smp_init(void)
     134{
     135}
     136
     137void arch_post_smp_init(void)
    146138{
    147139        static const char *platform;
     
    181173#ifdef CONFIG_NS16550
    182174        ns16550_instance_t *ns16550_instance
    183             = ns16550_init((ns16550_t *) NS16550_BASE, NS16550_IRQ, NULL, NULL,
    184             NULL);
     175            = ns16550_init((ns16550_t *) NS16550_BASE, NS16550_IRQ, NULL, NULL);
    185176        if (ns16550_instance) {
    186177                srln_instance_t *srln_instance = srln_init();
     
    255246}
    256247
     248/** Set thread-local-storage pointer.
     249 *
     250 * We use r13 (a.k.a. tp) for this purpose.
     251 */
     252sysarg_t sys_tls_set(uintptr_t addr)
     253{
     254        return EOK;
     255}
     256
    257257void arch_reboot(void)
    258258{
Note: See TracChangeset for help on using the changeset viewer.