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


Ignore:
Timestamp:
2011-06-01T17:48:03Z (15 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18626b3
Parents:
9bd5746 (diff), 5d1b3aa (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.
Message:

Merge mainline changes

Location:
kernel/arch/ppc32/include
Files:
5 edited
1 moved

Legend:

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

    r9bd5746 rcf5e86e  
    3737
    3838#define BOOT_OFFSET  0x8000
    39 
    40 /* Temporary stack size for boot process */
    41 #define TEMP_STACK_SIZE  0x1000
    4239
    4340#define TASKMAP_MAX_RECORDS        32
  • kernel/arch/ppc32/include/interrupt.h

    r9bd5746 rcf5e86e  
    4545#define VECTOR_EXTERNAL             4
    4646#define VECTOR_DECREMENTER          8
     47#define VECTOR_ITLB_MISS            13
     48#define VECTOR_DTLB_MISS_LOAD       14
     49#define VECTOR_DTLB_MISS_STORE      15
    4750
    4851extern void start_decrementer(void);
  • kernel/arch/ppc32/include/istate.h

    r9bd5746 rcf5e86e  
    7373        uint32_t cr;
    7474        uint32_t pc;
    75         uint32_t srr1;
     75        uint32_t msr;
    7676        uint32_t lr;
    7777        uint32_t ctr;
     
    9090/** Return true if exception happened while in userspace
    9191 *
    92  * The contexts of MSR register was stored in SRR1.
    93  *
    9492 */
    9593NO_TRACE static inline int istate_from_uspace(istate_t *istate)
    9694{
    97         return (istate->srr1 & MSR_PR) != 0;
     95        return (istate->msr & MSR_PR) != 0;
    9896}
    9997
  • kernel/arch/ppc32/include/mm/as.h

    r9bd5746 rcf5e86e  
    3636#define KERN_ppc32_AS_H_
    3737
     38#include <arch/mm/pht.h>
     39
    3840#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH  0
    3941
    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)
    4646
    4747typedef struct {
     
    5454#define as_create_arch(as, flags)       (as != as)
    5555#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))
    5759
    5860extern void as_arch_init(void);
  • kernel/arch/ppc32/include/mm/pht.h

    r9bd5746 rcf5e86e  
    11/*
    2  * Copyright (c) 2009 Martin Decky
     2 * Copyright (c) 2006 Martin Decky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #include <test.h>
     29/** @addtogroup ppc32mm
     30 * @{
     31 */
     32/** @file
     33 */
    3034
    31 const char *test_mips2(void)
    32 {
    33         return NULL;
    34 }
     35#ifndef KERN_ppc32_PHT_H_
     36#define KERN_ppc32_PHT_H_
     37
     38#include <arch/interrupt.h>
     39#include <typedefs.h>
     40
     41/* Forward declaration. */
     42struct as;
     43
     44extern void pht_init(void);
     45extern void pht_refill(unsigned int, istate_t *);
     46extern void pht_invalidate(struct as *, uintptr_t, size_t);
     47
     48#endif
     49
     50/** @}
     51 */
  • kernel/arch/ppc32/include/mm/tlb.h

    r9bd5746 rcf5e86e  
    3737
    3838#include <arch/interrupt.h>
    39 #include <typedefs.h>
    4039
    4140#define WIMG_GUARDED    0x01
     
    7574} ptelo_t;
    7675
    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")));
     76extern void tlb_refill(unsigned int, istate_t *);
    8477
    8578#endif
Note: See TracChangeset for help on using the changeset viewer.