Changeset 817d939 in mainline for kernel/arch/sparc32/src/sparc32.c


Ignore:
Timestamp:
2013-10-22T20:44:20Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6a3bfee
Parents:
d783145
Message:

Changes as follows:

  • Implemented storing kernel stack pointer and userspace window buffer in invalid register window space
  • Initialized IRQ routing
File:
1 edited

Legend:

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

    rd783145 r817d939  
    3737#include <arch/interrupt.h>
    3838#include <arch/asm.h>
     39#include <arch/machine_func.h>
    3940
    4041#include <func.h>
     
    5556char memcpy_from_uspace_failover_address;
    5657char memcpy_to_uspace_failover_address;
     58bootinfo_t machine_bootinfo;
    5759
    5860void arch_pre_main(void *unused, bootinfo_t *bootinfo)
    5961{
    6062        init.cnt = min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS);
    61        
     63        memcpy(&machine_bootinfo, bootinfo, sizeof(machine_bootinfo));
     64
    6265        size_t i;
    6366        for (i = 0; i < init.cnt; i++) {
     
    6770                    bootinfo->tasks[i].name);
    6871        }
     72
     73        machine_ops_init();
    6974}
    7075
     
    7580void arch_post_mm_init(void)
    7681{
     82        machine_init(&machine_bootinfo);
     83
    7784        if (config.cpu_active == 1) {
    7885                /* Initialize IRQ routing */
    79                 irq_init(0, 0);
     86                irq_init(16, 16);
    8087               
    8188                /* Merge all memory zones to 1 big zone */
    8289                zone_merge_all();
    8390        }
     91
     92        machine_output_init();
    8493}
     94
    8595
    8696void arch_post_cpu_init()
     
    94104void arch_post_smp_init(void)
    95105{
     106        machine_input_init();
    96107}
    97108
Note: See TracChangeset for help on using the changeset viewer.