Ignore:
File:
1 edited

Legend:

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

    r9928240 r36df4109  
    3434
    3535#include <arch.h>
     36#include <arch/arch.h>
    3637#include <typedefs.h>
    3738#include <errno.h>
     
    6061#endif
    6162
     63static void ia64_pre_mm_init(void);
     64static void ia64_post_mm_init(void);
     65static void ia64_post_smp_init(void);
     66
     67arch_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
     73arch_ops_t *arch_ops = &ia64_ops;
     74
    6275/* NS16550 as a COM 1 */
    6376#define NS16550_IRQ  (4 + LEGACY_INTERRUPT_BASE)
     
    6982
    7083/** Performs ia64-specific initialization before main_bsp() is called. */
    71 void arch_pre_main(void)
     84void ia64_pre_main(void)
    7285{
    7386        init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS,
     
    8497}
    8598
    86 void arch_pre_mm_init(void)
     99void ia64_pre_mm_init(void)
    87100{
    88101        if (config.cpu_active == 1)
     
    117130}
    118131
    119 void arch_post_mm_init(void)
     132void ia64_post_mm_init(void)
    120133{
    121134        if (config.cpu_active == 1) {
     
    130143}
    131144
    132 void arch_post_cpu_init(void)
    133 {
    134 }
    135 
    136 void arch_pre_smp_init(void)
    137 {
    138 }
    139 
    140 void arch_post_smp_init(void)
     145void ia64_post_smp_init(void)
    141146{
    142147        static const char *platform;
     
    176181#ifdef CONFIG_NS16550
    177182        ns16550_instance_t *ns16550_instance
    178             = ns16550_init((ns16550_t *) NS16550_BASE, NS16550_IRQ, NULL, NULL);
     183            = ns16550_init((ns16550_t *) NS16550_BASE, NS16550_IRQ, NULL, NULL,
     184            NULL);
    179185        if (ns16550_instance) {
    180186                srln_instance_t *srln_instance = srln_init();
     
    249255}
    250256
    251 /** Set thread-local-storage pointer.
    252  *
    253  * We use r13 (a.k.a. tp) for this purpose.
    254  */
    255 sysarg_t sys_tls_set(uintptr_t addr)
    256 {
    257         return EOK;
    258 }
    259 
    260257void arch_reboot(void)
    261258{
Note: See TracChangeset for help on using the changeset viewer.