summaryrefslogtreecommitdiff
path: root/libl4
diff options
context:
space:
mode:
authorneal <neal>2007-12-08 19:57:01 +0000
committerneal <neal>2007-12-08 19:57:01 +0000
commitb37568eb1c20381542d63986c81b742f9df5eeb3 (patch)
tree137c3df1207663cc11e278c13e06b21aae9d8735 /libl4
parent87ba6a82ada76f9e5604051f6a01b65d1129e3c8 (diff)
2007-12-08 Neal H. Walfield <neal@gnu.org>
* ia32/l4/bits/vregs.h (_L4_utcb_base): New function.
Diffstat (limited to 'libl4')
-rw-r--r--libl4/ChangeLog4
-rw-r--r--libl4/ia32/l4/bits/vregs.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/libl4/ChangeLog b/libl4/ChangeLog
index 222d1fe..972dedd 100644
--- a/libl4/ChangeLog
+++ b/libl4/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-08 Neal H. Walfield <neal@gnu.org>
+
+ * ia32/l4/bits/vregs.h (_L4_utcb_base): New function.
+
2007-11-16 Neal H. Walfield <neal@gnu.org>
* l4/thread-start.h (_L4_thread_start): Don't send, reply.
diff --git a/libl4/ia32/l4/bits/vregs.h b/libl4/ia32/l4/bits/vregs.h
index d0e575b..b5807ee 100644
--- a/libl4/ia32/l4/bits/vregs.h
+++ b/libl4/ia32/l4/bits/vregs.h
@@ -58,6 +58,13 @@ _L4_utcb (void)
#define _L4_UTCB_MY_GLOBAL_ID -15
#define _L4_UTCB_BR0 -16
+static inline _L4_word_t *
+_L4_attribute_always_inline
+_L4_utcb_base (void)
+{
+ /* 256 is a magic number, which unfortunately is not exported. */
+ return ((void *) _L4_utcb () - 256);
+}
/* Get the local thread ID. */
static inline _L4_thread_id_t