Index: kernel/arch/sparc64/include/asm.h
===================================================================
--- kernel/arch/sparc64/include/asm.h	(revision e2cc9a09d69ac8aab988fa3f12b67e7a42704641)
+++ kernel/arch/sparc64/include/asm.h	(revision d7baee61b7e0ef91ce4828e0e32c18c917b49a87)
@@ -266,4 +266,30 @@
 }
 
+/** Read Trap Program Counter register.
+ *
+ * @return Current value in TPC.
+ */
+static inline uint64_t tpc_read(void)
+{
+	uint64_t v;
+	
+	__asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v));
+	
+	return v;
+}
+
+/** Read Trap Level register.
+ *
+ * @return Current value in TL.
+ */
+static inline uint64_t tl_read(void)
+{
+	uint64_t v;
+	
+	__asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v));
+	
+	return v;
+}
+
 /** Read Trap Base Address register.
  *
@@ -275,30 +301,4 @@
 	
 	__asm__ volatile ("rdpr %%tba, %0\n" : "=r" (v));
-	
-	return v;
-}
-
-/** Read Trap Program Counter register.
- *
- * @return Current value in TPC.
- */
-static inline uint64_t tpc_read(void)
-{
-	uint64_t v;
-	
-	__asm__ volatile ("rdpr %%tpc, %0\n" : "=r" (v));
-	
-	return v;
-}
-
-/** Read Trap Level register.
- *
- * @return Current value in TL.
- */
-static inline uint64_t tl_read(void)
-{
-	uint64_t v;
-	
-	__asm__ volatile ("rdpr %%tl, %0\n" : "=r" (v));
 	
 	return v;
