Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 804d9b6 in mainline


Ignore:
Timestamp:
2012-07-14T11:25:41Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
774c143
Parents:
97c7682
Message:

arm32: Make new present functions arch version specific.

Location:
kernel/arch/arm32/include/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/mm/page.h

    r97c7682 r804d9b6  
    135135#endif
    136136
    137 #ifndef __ASM__
    138 NO_TRACE static inline void set_pt_level0_present(pte_t *pt, size_t i)
    139 {
    140         pte_level0_t *p = &pt[i].l0;
    141 
    142         p->should_be_zero = 0;
    143         write_barrier();
    144         p->descriptor_type = PTE_DESCRIPTOR_COARSE_TABLE;
    145 }
    146 
    147 
    148 NO_TRACE static inline void set_pt_level1_present(pte_t *pt, size_t i)
    149 {
    150         pte_level1_t *p = &pt[i].l1;
    151 
    152         p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE;
    153 }
    154 
    155 #endif /* __ASM__ */
    156 
    157137#endif
    158138
  • kernel/arch/arm32/include/mm/page_armv4.h

    r97c7682 r804d9b6  
    241241}
    242242
     243NO_TRACE static inline void set_pt_level0_present(pte_t *pt, size_t i)
     244{
     245        pte_level0_t *p = &pt[i].l0;
     246
     247        p->should_be_zero = 0;
     248        write_barrier();
     249        p->descriptor_type = PTE_DESCRIPTOR_COARSE_TABLE;
     250}
     251
     252
     253NO_TRACE static inline void set_pt_level1_present(pte_t *pt, size_t i)
     254{
     255        pte_level1_t *p = &pt[i].l1;
     256
     257        p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE;
     258}
     259
    243260
    244261extern void page_arch_init(void);
  • kernel/arch/arm32/include/mm/page_armv7.h

    r97c7682 r804d9b6  
    258258}
    259259
     260NO_TRACE static inline void set_pt_level0_present(pte_t *pt, size_t i)
     261{
     262        pte_level0_t *p = &pt[i].l0;
     263
     264        p->should_be_zero_0 = 0;
     265        p->should_be_zero_1 = 0;
     266        write_barrier();
     267        p->descriptor_type = PTE_DESCRIPTOR_COARSE_TABLE;
     268}
     269
     270NO_TRACE static inline void set_pt_level1_present(pte_t *pt, size_t i)
     271{
     272        pte_level1_t *p = &pt[i].l1;
     273
     274        p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE;
     275}
     276
    260277
    261278extern void page_arch_init(void);
Note: See TracChangeset for help on using the changeset viewer.