Changeset 7510326 in mainline for kernel/generic/include/arch.h


Ignore:
Timestamp:
2016-06-08T16:02:54Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b420fa
Parents:
36df4109
Message:

Provide common arch_ops for sparc64 and separate arch_ops for sun4[uv]

The common sparc64 arch_ops are responsible for invoking the sun4u/sun4v
arch ops. This opens a way for partial deduplication of the sun4u/sun4v
arch ops and code sharing between the two subplatforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/arch.h

    r36df4109 r7510326  
    8989extern arch_ops_t *arch_ops;
    9090
    91 #define ARCH_OP(op) \
     91#define ARCH_STRUCT_OP(s, op) \
    9292        do { \
    93                 if (arch_ops->op) \
    94                         arch_ops->op(); \
     93                if ((s)->op) \
     94                        (s)->op(); \
    9595        } while (0)
     96
     97#define ARCH_OP(op)     ARCH_STRUCT_OP(arch_ops, op)
    9698
    9799extern void the_initialize(the_t *);
Note: See TracChangeset for help on using the changeset viewer.