Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sun4u/sparc64.c

    r2902e1bb r7510326  
    3434
    3535#include <arch.h>
     36#include <arch/arch.h>
    3637#include <debug.h>
    3738#include <config.h>
     
    5253#include <sysinfo/sysinfo.h>
    5354
     55static void sun4u_pre_mm_init(void);
     56static void sun4u_post_mm_init(void);
     57static void sun4u_post_smp_init(void);
     58
     59arch_ops_t sun4u_ops = {
     60        .pre_mm_init = sun4u_pre_mm_init,
     61        .post_mm_init = sun4u_post_mm_init,
     62        .post_smp_init = sun4u_post_smp_init,
     63};
     64
     65arch_ops_t *sparc64_ops = &sun4u_ops;
     66
    5467memmap_t memmap;
    5568
    5669/** Perform sparc64-specific initialization before main_bsp() is called. */
    57 void arch_pre_main(bootinfo_t *bootinfo)
     70void sparc64_pre_main(bootinfo_t *bootinfo)
    5871{
    5972        /* Copy init task info. */
     
    8497
    8598/** Perform sparc64 specific initialization before mm is initialized. */
    86 void arch_pre_mm_init(void)
    87 {
    88         if (config.cpu_active == 1)
     99void sun4u_pre_mm_init(void)
     100{
     101        if (config.cpu_active == 1) {
    89102                trap_init();
     103                exc_arch_init();
     104        }
    90105}
    91106
    92107/** Perform sparc64 specific initialization afterr mm is initialized. */
    93 void arch_post_mm_init(void)
     108void sun4u_post_mm_init(void)
    94109{
    95110        if (config.cpu_active == 1) {
     
    105120}
    106121
    107 void arch_post_cpu_init(void)
    108 {
    109 }
    110 
    111 void arch_pre_smp_init(void)
    112 {
    113 }
    114 
    115 void arch_post_smp_init(void)
     122void sun4u_post_smp_init(void)
    116123{
    117124        /* Currently the only supported platform for sparc64/sun4u is 'sun4u'. */
Note: See TracChangeset for help on using the changeset viewer.