Changeset 35f3b8c in mainline for arch/ppc32/include


Ignore:
Timestamp:
2006-05-18T23:24:40Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c0bc189
Parents:
8424198
Message:

ppc32 work
update framebuffer
get rid of the BAT memory mapping (not finished yet)

Location:
arch/ppc32/include
Files:
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/include/asm.h

    r8424198 r35f3b8c  
    141141void cpu_halt(void);
    142142void asm_delay_loop(__u32 t);
     143void invalidate_bat(void);
    143144
    144145extern void userspace_asm(__address uspace_uarg, __address stack, __address entry);
  • arch/ppc32/include/asm/regname.h

    r8424198 r35f3b8c  
    190190#define sprg3   275
    191191#define prv             287
     192#define ibat0u  528
     193#define ibat0l  529
     194#define ibat1u  530
     195#define ibat1l  531
     196#define ibat2u  532
     197#define ibat2l  533
     198#define ibat3u  534
     199#define ibat3l  535
     200#define dbat0u  536
     201#define dbat0l  537
     202#define dbat1u  538
     203#define dbat1l  539
     204#define dbat2u  540
     205#define dbat2l  541
     206#define dbat3u  542
     207#define dbat3l  543
    192208#define hid0    1008
    193209
  • arch/ppc32/include/mm/frame.h

    r8424198 r35f3b8c  
    3636#ifndef __ASM__
    3737
     38#include <arch/types.h>
     39
     40extern __address last_frame;
     41
    3842extern void frame_arch_init(void);
    3943
  • arch/ppc32/include/mm/page.h

    r8424198 r35f3b8c  
    109109                (1 << PAGE_READ_SHIFT) |
    110110                (1 << PAGE_WRITE_SHIFT) |
    111                 (1 << PAGE_EXEC_SHIFT)
     111                (1 << PAGE_EXEC_SHIFT) |
     112                (p->g << PAGE_GLOBAL_SHIFT)
    112113        );
    113114}
     
    118119       
    119120        p->p = !(flags & PAGE_NOT_PRESENT);
     121        p->g = (flags & PAGE_GLOBAL) != 0;
    120122        p->valid = 1;
    121123}
    122124
    123125extern void page_arch_init(void);
     126
     127#define PHT_BITS        16
     128#define PHT_ORDER       4
     129
     130typedef struct {
     131        unsigned v : 1;          /**< Valid */
     132        unsigned vsid : 24;      /**< Virtual Segment ID */
     133        unsigned h : 1;          /**< Primary/secondary hash */
     134        unsigned api : 6;        /**< Abbreviated Page Index */
     135        unsigned rpn : 20;       /**< Real Page Number */
     136        unsigned reserved0 : 3;
     137        unsigned r : 1;          /**< Reference */
     138        unsigned c : 1;          /**< Change */
     139        unsigned wimg : 4;       /**< Access control */
     140        unsigned reserved1 : 1;
     141        unsigned pp : 2;         /**< Page protection */
     142} phte_t;
     143
     144extern void pht_refill(bool data, istate_t *istate);
     145extern void pht_init(void);
    124146
    125147#endif /* __ASM__ */
  • arch/ppc32/include/mm/tlb.h

    r8424198 r35f3b8c  
    3030#define __ppc32_TLB_H__
    3131
    32 #include <arch/exception.h>
    33 #include <typedefs.h>
    34 
    35 #define PHT_BITS        16
    36 #define PHT_ORDER       4
    37 
    38 typedef struct {
    39         unsigned v : 1;          /**< Valid */
    40         unsigned vsid : 24;      /**< Virtual Segment ID */
    41         unsigned h : 1;          /**< Primary/secondary hash */
    42         unsigned api : 6;        /**< Abbreviated Page Index */
    43         unsigned rpn : 20;       /**< Real Page Number */
    44         unsigned reserved0 : 3;
    45         unsigned r : 1;          /**< Reference */
    46         unsigned c : 1;          /**< Change */
    47         unsigned wimg : 4;       /**< Access control */
    48         unsigned reserved1 : 1;
    49         unsigned pp : 2;         /**< Page protection */
    50 } phte_t;
    51 
    52 extern void pht_refill(bool data, istate_t *istate);
    5332
    5433#endif
  • arch/ppc32/include/types.h

    r8424198 r35f3b8c  
    5353        unsigned p : 1;       /**< Present bit. */
    5454        unsigned a : 1;       /**< Accessed bit. */
     55        unsigned g : 1;       /**< Global bit. */
    5556        unsigned valid : 1;   /**< Valid content even if not present. */
    5657        unsigned pfn : 20;    /**< Physical frame number. */
Note: See TracChangeset for help on using the changeset viewer.