Changeset 544a2e4 in mainline for kernel/arch/ppc32/include
- Timestamp:
- 2011-05-30T21:37:43Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7b712b60
- Parents:
- 18ba2e4f (diff), 0743493a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/arch/ppc32/include
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/boot/boot.h
r18ba2e4f r544a2e4 37 37 38 38 #define BOOT_OFFSET 0x8000 39 40 /* Temporary stack size for boot process */41 #define TEMP_STACK_SIZE 0x100042 39 43 40 #define TASKMAP_MAX_RECORDS 32 -
kernel/arch/ppc32/include/interrupt.h
r18ba2e4f r544a2e4 45 45 #define VECTOR_EXTERNAL 4 46 46 #define VECTOR_DECREMENTER 8 47 #define VECTOR_ITLB_MISS 13 48 #define VECTOR_DTLB_MISS_LOAD 14 49 #define VECTOR_DTLB_MISS_STORE 15 47 50 48 51 extern void start_decrementer(void); -
kernel/arch/ppc32/include/istate.h
r18ba2e4f r544a2e4 73 73 uint32_t cr; 74 74 uint32_t pc; 75 uint32_t srr1;75 uint32_t msr; 76 76 uint32_t lr; 77 77 uint32_t ctr; … … 90 90 /** Return true if exception happened while in userspace 91 91 * 92 * The contexts of MSR register was stored in SRR1.93 *94 92 */ 95 93 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 96 94 { 97 return (istate-> srr1& MSR_PR) != 0;95 return (istate->msr & MSR_PR) != 0; 98 96 } 99 97 -
kernel/arch/ppc32/include/mm/as.h
r18ba2e4f r544a2e4 36 36 #define KERN_ppc32_AS_H_ 37 37 38 #include <arch/mm/pht.h> 39 38 40 #define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH 0 39 41 40 #define KERNEL_ADDRESS_SPACE_START_ARCH ((unsigned long) 0x80000000) 41 #define KERNEL_ADDRESS_SPACE_END_ARCH ((unsigned long) 0xffffffff) 42 #define USER_ADDRESS_SPACE_START_ARCH ((unsigned long) 0x00000000) 43 #define USER_ADDRESS_SPACE_END_ARCH ((unsigned long) 0x7fffffff) 44 45 #define USTACK_ADDRESS_ARCH (0x7fffffff - (PAGE_SIZE - 1)) 42 #define KERNEL_ADDRESS_SPACE_START_ARCH UINT32_C(0x80000000) 43 #define KERNEL_ADDRESS_SPACE_END_ARCH UINT32_C(0xffffffff) 44 #define USER_ADDRESS_SPACE_START_ARCH UINT32_C(0x00000000) 45 #define USER_ADDRESS_SPACE_END_ARCH UINT32_C(0x7fffffff) 46 46 47 47 typedef struct { … … 54 54 #define as_create_arch(as, flags) (as != as) 55 55 #define as_deinstall_arch(as) 56 #define as_invalidate_translation_cache(as, page, cnt) 56 57 #define as_invalidate_translation_cache(as, page, cnt) \ 58 pht_invalidate((as), (page), (cnt)) 57 59 58 60 extern void as_arch_init(void); -
kernel/arch/ppc32/include/mm/tlb.h
r18ba2e4f r544a2e4 37 37 38 38 #include <arch/interrupt.h> 39 #include <typedefs.h>40 39 41 40 #define WIMG_GUARDED 0x01 … … 75 74 } ptelo_t; 76 75 77 extern void pht_init(void); 78 extern void pht_refill(unsigned int, istate_t *); 79 80 extern bool pht_refill_real(unsigned int, istate_t *) 81 __attribute__ ((section("K_UNMAPPED_TEXT_START"))); 82 extern void tlb_refill_real(unsigned int, uint32_t, ptehi_t, ptelo_t, 83 istate_t *) __attribute__ ((section("K_UNMAPPED_TEXT_START"))); 76 extern void tlb_refill(unsigned int, istate_t *); 84 77 85 78 #endif -
kernel/arch/ppc32/include/types.h
r18ba2e4f r544a2e4 37 37 38 38 typedef uint32_t size_t; 39 typedef int32_t ssize_t; 39 40 40 41 typedef uint32_t uintptr_t;
Note:
See TracChangeset
for help on using the changeset viewer.
