Ignore:
File:
1 edited

Legend:

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

    r2902e1bb r36df4109  
    3434
    3535#include <arch.h>
     36#include <arch/arch.h>
    3637#include <typedefs.h>
    3738#include <errno.h>
    3839#include <interrupt.h>
     40#include <arch/interrupt.h>
    3941#include <macros.h>
    4042#include <str.h>
     
    5961#endif
    6062
     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
    6175/* NS16550 as a COM 1 */
    6276#define NS16550_IRQ  (4 + LEGACY_INTERRUPT_BASE)
     
    6882
    6983/** Performs ia64-specific initialization before main_bsp() is called. */
    70 void arch_pre_main(void)
     84void ia64_pre_main(void)
    7185{
    7286        init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS,
     
    8397}
    8498
    85 void arch_pre_mm_init(void)
    86 {
     99void ia64_pre_mm_init(void)
     100{
     101        if (config.cpu_active == 1)
     102                exception_init();
    87103}
    88104
     
    114130}
    115131
    116 void arch_post_mm_init(void)
     132void ia64_post_mm_init(void)
    117133{
    118134        if (config.cpu_active == 1) {
     
    127143}
    128144
    129 void arch_post_cpu_init(void)
    130 {
    131 }
    132 
    133 void arch_pre_smp_init(void)
    134 {
    135 }
    136 
    137 void arch_post_smp_init(void)
     145void ia64_post_smp_init(void)
    138146{
    139147        static const char *platform;
     
    173181#ifdef CONFIG_NS16550
    174182        ns16550_instance_t *ns16550_instance
    175             = ns16550_init((ns16550_t *) NS16550_BASE, NS16550_IRQ, NULL, NULL);
     183            = ns16550_init((ns16550_t *) NS16550_BASE, NS16550_IRQ, NULL, NULL,
     184            NULL);
    176185        if (ns16550_instance) {
    177186                srln_instance_t *srln_instance = srln_init();
     
    246255}
    247256
    248 /** Set thread-local-storage pointer.
    249  *
    250  * We use r13 (a.k.a. tp) for this purpose.
    251  */
    252 sysarg_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.