Changeset b3f8fb7 in mainline for kernel/arch/ppc32/include


Ignore:
Timestamp:
2007-01-28T13:25:49Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e8c1a5
Parents:
1ba41c5
Message:

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

Location:
kernel/arch/ppc32/include
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/include/cpu.h

    r1ba41c5 rb3f8fb7  
    3636#define KERN_ppc32_CPU_H_
    3737
    38 #include <typedefs.h>
     38#include <arch/asm.h>
    3939
    4040typedef struct {
  • kernel/arch/ppc32/include/drivers/cuda.h

    r1ba41c5 rb3f8fb7  
    3737
    3838#include <arch/types.h>
    39 #include <typedefs.h>
    4039
    4140extern void cuda_init(devno_t devno, uintptr_t base, size_t size);
  • kernel/arch/ppc32/include/drivers/pic.h

    r1ba41c5 rb3f8fb7  
    3636#define KERN_ppc32_PIC_H_
    3737
     38#include <arch/types.h>
     39
    3840#define PIC_PENDING_LOW    8
    3941#define PIC_PENDING_HIGH   4
  • kernel/arch/ppc32/include/exception.h

    r1ba41c5 rb3f8fb7  
    3737
    3838#include <arch/types.h>
    39 #include <typedefs.h>
    4039
    41 struct istate {
     40typedef struct {
    4241        uint32_t r0;
    4342        uint32_t r2;
     
    7877        uint32_t r12;
    7978        uint32_t sp;
    80 };
     79} istate_t;
    8180
    8281static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr)
  • kernel/arch/ppc32/include/mm/as.h

    r1ba41c5 rb3f8fb7  
    4343#define USER_ADDRESS_SPACE_END_ARCH             ((unsigned long) 0x7fffffff)
    4444
    45 #define USTACK_ADDRESS_ARCH     (0x7fffffff-(PAGE_SIZE-1))
     45#define USTACK_ADDRESS_ARCH     (0x7fffffff - (PAGE_SIZE - 1))
    4646
    4747typedef struct {
    4848} as_arch_t;
     49
     50#include <genarch/mm/as_pt.h>
    4951
    5052#define as_constructor_arch(as, flags)          (as != as)
  • kernel/arch/ppc32/include/mm/memory_init.h

    r1ba41c5 rb3f8fb7  
    3636#define KERN_ppc32_MEMORY_INIT_H_
    3737
    38 #include <typedefs.h>
    39 
    4038size_t get_memory_size(void);
    4139
  • kernel/arch/ppc32/include/mm/page.h

    r1ba41c5 rb3f8fb7  
    105105#ifndef __ASM__
    106106
    107 #include <mm/page.h>
    108 #include <arch/mm/frame.h>
    109 #include <arch/types.h>
     107#include <mm/mm.h>
     108#include <arch/interrupt.h>
    110109
    111110static inline int get_pt_flags(pte_t *pt, index_t i)
  • kernel/arch/ppc32/include/mm/tlb.h

    r1ba41c5 rb3f8fb7  
    3636#define KERN_ppc32_TLB_H_
    3737
     38#include <arch/interrupt.h>
     39
    3840typedef struct {
    3941        unsigned v : 1;          /**< Valid */
  • kernel/arch/ppc32/include/types.h

    r1ba41c5 rb3f8fb7  
    3737
    3838#define NULL 0
     39#define false 0
     40#define true 1
    3941
    4042typedef signed char int8_t;
     
    4850typedef unsigned long long uint64_t;
    4951
     52typedef uint32_t size_t;
     53typedef uint32_t count_t;
     54typedef uint32_t index_t;
     55
    5056typedef uint32_t uintptr_t;
    5157typedef uint32_t pfn_t;
     
    5460
    5561typedef uint32_t unative_t;
     62typedef int32_t native_t;
     63
     64typedef uint8_t bool;
     65typedef uint64_t task_id_t;
     66typedef uint32_t context_id_t;
     67
     68typedef int32_t inr_t;
     69typedef int32_t devno_t;
    5670
    5771/** Page Table Entry. */
Note: See TracChangeset for help on using the changeset viewer.