summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-10-05 08:20:41 +0000
committerdfr <dfr@FreeBSD.org>2001-10-05 08:20:41 +0000
commit17d5b062c9a2ce0f6c775e3b383aa43bd0a5c8c5 (patch)
tree198d75628179604729f2070c5ce4da9fe15ba94d
parentf709f8a6c7e2c6883b202442e2a67d8156cbf3e2 (diff)
downloadFreeBSD-src-17d5b062c9a2ce0f6c775e3b383aa43bd0a5c8c5.zip
FreeBSD-src-17d5b062c9a2ce0f6c775e3b383aa43bd0a5c8c5.tar.gz
Add ia64_get_lid().
-rw-r--r--sys/ia64/include/ia64_cpu.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/sys/ia64/include/ia64_cpu.h b/sys/ia64/include/ia64_cpu.h
index 1a550af..2fba3d1 100644
--- a/sys/ia64/include/ia64_cpu.h
+++ b/sys/ia64/include/ia64_cpu.h
@@ -418,7 +418,7 @@ ia64_get_itc(void)
}
/*
- * Read the value of ar.itm.
+ * Read the value of cr.itm.
*/
static __inline u_int64_t
ia64_get_itm(void)
@@ -429,7 +429,7 @@ ia64_get_itm(void)
}
/*
- * Write the value of ar.itm.
+ * Write the value of cr.itm.
*/
static __inline void
ia64_set_itm(u_int64_t v)
@@ -438,7 +438,7 @@ ia64_set_itm(u_int64_t v)
}
/*
- * Write the value of ar.itv.
+ * Write the value of cr.itv.
*/
static __inline void
ia64_set_itv(u_int64_t v)
@@ -447,6 +447,17 @@ ia64_set_itv(u_int64_t v)
}
/*
+ * Read the value of cr.lid.
+ */
+static __inline u_int64_t
+ia64_get_lid(void)
+{
+ u_int64_t result;
+ __asm __volatile("mov %0=cr.lid" : "=r" (result));
+ return result;
+}
+
+/*
* Write a region register.
*/
static __inline void
OpenPOWER on IntegriCloud