Changeset 0f3fc9b in mainline


Ignore:
Timestamp:
2007-01-22T13:34:55Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
726e1043
Parents:
e7b7be3f
Message:

typedef elimination

Location:
kernel
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/context.h

    re7b7be3f r0f3fc9b  
    4747 * during function call
    4848 */
    49 struct context {
     49typedef struct {
    5050    uintptr_t sp;
    5151    uintptr_t pc;
     
    6060
    6161    ipl_t ipl;
    62 } __attribute__ ((packed));
     62} __attribute__ ((packed)) context_t;
    6363
    6464#endif
  • kernel/arch/ia32/include/context.h

    re7b7be3f r0f3fc9b  
    5252 * function calls.
    5353 */
    54 struct context {
     54typedef struct {
    5555        uintptr_t sp;
    5656        uintptr_t pc;
     
    6060        uint32_t ebp;
    6161        ipl_t ipl;
    62 } __attribute__ ((packed));
     62} __attribute__ ((packed)) context_t;
    6363
    6464#endif
  • kernel/arch/ia32/include/fpu_context.h

    re7b7be3f r0f3fc9b  
    4545
    4646
    47 struct fpu_context {
     47typedef struct {
    4848        uint8_t fpu[512];               /* FXSAVE & FXRSTOR storage area */
    49 };
     49} fpu_context_t;
    5050
    5151#endif
  • kernel/arch/ia64/include/context.h

    re7b7be3f r0f3fc9b  
    6767 * function calls.
    6868 */
    69 struct context {
     69typedef struct {
    7070
    7171        /*
     
    129129       
    130130        ipl_t ipl;
    131 };
     131} context_t;
    132132
    133133#endif
  • kernel/arch/ia64/include/fpu_context.h

    re7b7be3f r0f3fc9b  
    4343#define FRS 96
    4444
    45 struct fpu_context {
     45typedef struct {
    4646        __r128 fr[FRS];
    47 };
     47} fpu_context_t;
    4848
    4949#endif
  • kernel/arch/mips32/include/context.h

    re7b7be3f r0f3fc9b  
    5353 * function calls.
    5454 */
    55 struct context {
     55typedef struct {
    5656        uintptr_t sp;
    5757        uintptr_t pc;
     
    6969
    7070        ipl_t ipl;
    71 };
     71} context_t;
    7272
    7373#endif /* __ASM__ */
  • kernel/arch/mips32/include/fpu_context.h

    re7b7be3f r0f3fc9b  
    4040#define FPU_CONTEXT_ALIGN    sizeof(unative_t)
    4141
    42 struct fpu_context {
     42typedef struct {
    4343        unative_t dregs[32];
    4444        unative_t cregs[32];
    45 };
     45} fpu_context_t;
    4646
    4747#endif
  • kernel/arch/ppc32/include/context.h

    re7b7be3f r0f3fc9b  
    4040#define SP_DELTA        16
    4141
    42 struct context {
     42typedef struct {
    4343        uintptr_t sp;
    4444        uintptr_t pc;
     
    6868       
    6969        ipl_t ipl;
    70 } __attribute__ ((packed));
     70} __attribute__ ((packed)) context_t;
    7171
    7272#endif
  • kernel/arch/ppc32/include/fpu_context.h

    re7b7be3f r0f3fc9b  
    4040#endif
    4141
    42 struct fpu_context {
     42typedef struct {
    4343        uint64_t fr14;
    4444        uint64_t fr15;
     
    6060        uint64_t fr31;
    6161        uint32_t fpscr;
    62 } __attribute__ ((packed));
     62} __attribute__ ((packed)) fpu_context_t;
    6363
    6464#endif
  • kernel/arch/ppc64/include/context.h

    re7b7be3f r0f3fc9b  
    4040#define SP_DELTA        16
    4141
    42 struct context {
     42typedef struct {
    4343        uintptr_t sp;
    4444        uintptr_t pc;
     
    6868       
    6969        ipl_t ipl;
    70 } __attribute__ ((packed));
     70} __attribute__ ((packed)) context_t;
    7171
    7272#endif
  • kernel/arch/ppc64/include/fpu_context.h

    re7b7be3f r0f3fc9b  
    4040#endif
    4141
    42 struct fpu_context {
     42typedef struct {
    4343        uint64_t fr14;
    4444        uint64_t fr15;
     
    6060        uint64_t fr31;
    6161        uint32_t fpscr;
    62 } __attribute__ ((packed));
     62} __attribute__ ((packed)) fpu_context_t;
    6363
    6464#endif
  • kernel/arch/sparc64/include/context.h

    re7b7be3f r0f3fc9b  
    5757 * function calls.
    5858 */
    59 struct context {
     59typedef struct {
    6060        uintptr_t sp;           /* %o6 */
    6161        uintptr_t pc;           /* %o7 */
     
    7777        uint64_t l7;
    7878        ipl_t ipl;
    79 };
     79} context_t;
    8080
    8181#endif
  • kernel/arch/sparc64/include/fpu_context.h

    re7b7be3f r0f3fc9b  
    4141#define FPU_CONTEXT_ALIGN       8
    4242
    43 struct fpu_context {
     43typedef struct {
    4444        uint64_t        d[32];
    4545        uint64_t        fsr;
    46 };
     46} fpu_context_t;
    4747
    4848#endif
  • kernel/generic/include/mm/buddy.h

    re7b7be3f r0f3fc9b  
    4141#define BUDDY_SYSTEM_INNER_BLOCK        0xff
    4242
     43struct buddy_system;
     44
    4345/** Buddy system operations to be implemented by each implementation. */
    44 struct buddy_system_operations {
     46typedef struct {
    4547        /** Return pointer to left-side or right-side buddy for block passed as
    4648          * argument. */
    47         link_t *(* find_buddy)(buddy_system_t *, link_t *);
     49        link_t *(* find_buddy)(struct buddy_system *, link_t *);
    4850        /** Bisect the block passed as argument and return pointer to the new
    4951          * right-side buddy. */
    50         link_t *(* bisect)(buddy_system_t *, link_t *);
     52        link_t *(* bisect)(struct buddy_system *, link_t *);
    5153        /** Coalesce two buddies into a bigger block. */
    52         link_t *(* coalesce)(buddy_system_t *, link_t *, link_t *);
     54        link_t *(* coalesce)(struct buddy_system *, link_t *, link_t *);
    5355        /** Set order of block passed as argument. */
    54         void (*set_order)(buddy_system_t *, link_t *, uint8_t);
     56        void (*set_order)(struct buddy_system *, link_t *, uint8_t);
    5557        /** Return order of block passed as argument. */
    56         uint8_t (*get_order)(buddy_system_t *, link_t *);
     58        uint8_t (*get_order)(struct buddy_system *, link_t *);
    5759        /** Mark block as busy. */
    58         void (*mark_busy)(buddy_system_t *, link_t *);
     60        void (*mark_busy)(struct buddy_system *, link_t *);
    5961        /** Mark block as available. */
    60         void (*mark_available)(buddy_system_t *, link_t *);
     62        void (*mark_available)(struct buddy_system *, link_t *);
    6163        /** Find parent of block that has given order  */
    62         link_t *(* find_block)(buddy_system_t *, link_t *, uint8_t);
    63         void (* print_id)(buddy_system_t *, link_t *);
    64 };
     64        link_t *(* find_block)(struct buddy_system *, link_t *, uint8_t);
     65        void (* print_id)(struct buddy_system *, link_t *);
     66} buddy_system_operations_t;
    6567
    66 struct buddy_system {
     68typedef struct buddy_system {
    6769        /** Maximal order of block which can be stored by buddy system. */
    6870        uint8_t max_order;
     
    7173        /** Pointer to be used by the implementation. */
    7274        void *data;
    73 };
     75} buddy_system_t;
    7476
    7577extern void buddy_system_create(buddy_system_t *b, uint8_t max_order,
  • kernel/generic/include/typedefs.h

    re7b7be3f r0f3fc9b  
    5050typedef struct task task_t;
    5151typedef struct thread thread_t;
    52 typedef struct context context_t;
    53 typedef struct fpu_context fpu_context_t;
    5452
    5553typedef struct spinlock spinlock_t;
     
    6159typedef struct waitq waitq_t;
    6260typedef struct futex futex_t;
    63 
    64 typedef struct buddy_system buddy_system_t;
    65 typedef struct buddy_system_operations buddy_system_operations_t;
    6661
    6762typedef struct as_area as_area_t;
  • kernel/generic/src/mm/frame.c

    re7b7be3f r0f3fc9b  
    425425}
    426426
    427 static struct buddy_system_operations zone_buddy_system_operations = {
     427static buddy_system_operations_t zone_buddy_system_operations = {
    428428        .find_buddy = zone_buddy_find_buddy,
    429429        .bisect = zone_buddy_bisect,
Note: See TracChangeset for help on using the changeset viewer.