Changeset a35b458 in mainline for kernel/arch/mips32/include
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- Location:
- kernel/arch/mips32/include/arch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/arch/asm.h
r3061bc1 ra35b458 55 55 { 56 56 uintptr_t base; 57 57 58 58 asm volatile ( 59 59 "and %[base], $29, %[mask]\n" … … 61 61 : [mask] "r" (~(STACK_SIZE - 1)) 62 62 ); 63 63 64 64 return base; 65 65 } -
kernel/arch/mips32/include/arch/atomic.h
r3061bc1 ra35b458 60 60 atomic_count_t tmp; 61 61 atomic_count_t v; 62 62 63 63 asm volatile ( 64 64 "1:\n" … … 75 75 "i" (0) 76 76 ); 77 77 78 78 return v; 79 79 } … … 83 83 atomic_count_t tmp; 84 84 atomic_count_t v; 85 85 86 86 asm volatile ( 87 87 "1:\n" … … 98 98 : "i" (1) 99 99 ); 100 100 101 101 return v; 102 102 } -
kernel/arch/mips32/include/arch/mm/page.h
r3061bc1 ra35b458 165 165 { 166 166 pte_t *p = &pt[i]; 167 167 168 168 return ((p->cacheable << PAGE_CACHEABLE_SHIFT) | 169 169 ((!p->p) << PAGE_PRESENT_SHIFT) | … … 178 178 { 179 179 pte_t *p = &pt[i]; 180 180 181 181 p->cacheable = (flags & PAGE_CACHEABLE) != 0; 182 182 p->p = !(flags & PAGE_NOT_PRESENT); 183 183 p->g = (flags & PAGE_GLOBAL) != 0; 184 184 p->w = (flags & PAGE_WRITE) != 0; 185 185 186 186 /* 187 187 * Ensure that valid entries have at least one bit set.
Note:
See TracChangeset
for help on using the changeset viewer.