Rev 1780 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1780 | Rev 1784 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup sparc64 |
29 | /** @addtogroup sparc64 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef __sparc64_ASM_H__ |
35 | #ifndef KERN_sparc64_ASM_H_ |
36 | #define __sparc64_ASM_H__ |
36 | #define KERN_sparc64_ASM_H_ |
37 | 37 | ||
38 | #include <typedefs.h> |
38 | #include <typedefs.h> |
39 | #include <arch/types.h> |
39 | #include <arch/types.h> |
40 | #include <arch/register.h> |
40 | #include <arch/register.h> |
41 | #include <config.h> |
41 | #include <config.h> |
Line 302... | Line 302... | ||
302 | static inline void asi_u64_write(asi_t asi, uintptr_t va, uint64_t v) |
302 | static inline void asi_u64_write(asi_t asi, uintptr_t va, uint64_t v) |
303 | { |
303 | { |
304 | __asm__ volatile ("stxa %0, [%1] %2\n" : : "r" (v), "r" (va), "i" (asi) : "memory"); |
304 | __asm__ volatile ("stxa %0, [%1] %2\n" : : "r" (v), "r" (va), "i" (asi) : "memory"); |
305 | } |
305 | } |
306 | 306 | ||
307 | - | ||
308 | - | ||
309 | void cpu_halt(void); |
307 | void cpu_halt(void); |
310 | void cpu_sleep(void); |
308 | void cpu_sleep(void); |
311 | void asm_delay_loop(uint32_t t); |
309 | void asm_delay_loop(uint32_t t); |
312 | 310 | ||
313 | #endif |
311 | #endif |
314 | 312 | ||
315 | /** @} |
313 | /** @} |
316 | */ |
314 | */ |
317 | - |