Changeset f6f22cdb in mainline for boot/arch/sparc32/include/asm.h
- Timestamp:
- 2013-12-27T18:45:56Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32e8cd1
- Parents:
- e47ed05
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc32/include/asm.h
re47ed05 rf6f22cdb 32 32 #include <typedefs.h> 33 33 34 static inline uint32_t asi_u32_read(int asi, uintptr_t va) 34 extern uintptr_t boot_ctx_table; 35 36 static inline uint32_t asi_u32_read(unsigned int asi, uintptr_t va) 35 37 { 36 38 uint32_t v; 37 39 38 40 asm volatile ( 39 41 "lda [%[va]] %[asi], %[v]\n" 40 42 : [v] "=r" (v) 41 43 : [va] "r" (va), 42 [asi] "i" ( (unsigned int)asi)44 [asi] "i" (asi) 43 45 ); 44 46 … … 46 48 } 47 49 48 static inline void asi_u32_write( int asi, uintptr_t va, uint32_t v)50 static inline void asi_u32_write(unsigned int asi, uintptr_t va, uint32_t v) 49 51 { 50 52 asm volatile ( … … 52 54 :: [v] "r" (v), 53 55 [va] "r" (va), 54 [asi] "i" ( (unsigned int)asi)56 [asi] "i" (asi) 55 57 : "memory" 56 58 ); 57 59 } 58 60 59 extern void jump_to_kernel(void * entry, bootinfo_t *bootinfo);61 extern void jump_to_kernel(void *, bootinfo_t *); 60 62 61 63 #endif
Note:
See TracChangeset
for help on using the changeset viewer.