Changeset 36df4109 in mainline for kernel/arch/abs32le/src/abs32le.c


Ignore:
Timestamp:
2016-06-06T16:29:56Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7510326
Parents:
7f0580d
Message:

Introduce architecure-specific operations

This replaces the arch_*_init() functions with an arch_ops_t structure
defined for each architecture. Undefined operations are treated as NOPs.

File:
1 edited

Legend:

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

    r7f0580d r36df4109  
    5151#include <memstr.h>
    5252
     53static void abs32le_post_mm_init(void);
     54
     55arch_ops_t abs32le_ops = {
     56        .post_mm_init = abs32le_post_mm_init,
     57};
     58
     59arch_ops_t *arch_ops = &abs32le_ops;
     60
    5361char memcpy_from_uspace_failover_address;
    5462char memcpy_to_uspace_failover_address;
    5563
    56 void arch_pre_mm_init(void)
    57 {
    58 }
    59 
    60 void arch_post_mm_init(void)
     64void abs32le_post_mm_init(void)
    6165{
    6266        if (config.cpu_active == 1) {
     
    6771                zone_merge_all();
    6872        }
    69 }
    70 
    71 void arch_post_cpu_init(void)
    72 {
    73 }
    74 
    75 void arch_pre_smp_init(void)
    76 {
    77 }
    78 
    79 void arch_post_smp_init(void)
    80 {
    8173}
    8274
Note: See TracChangeset for help on using the changeset viewer.