summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-12-16 20:28:34 +0100
committerNeal H. Walfield <neal@gnu.org>2008-12-16 20:28:34 +0100
commitf0d7e0e0ee0cb0362ee79739922a76faef17917c (patch)
tree3a1d8913d1d72ce988658cf6ccbe4d251e8d7634
parent86182db253e1dbb63ee2969a3e1a7f5ab144aed5 (diff)
Remove saved_thread_state from utcb structure.
hurd/ 2008-12-16 Neal H. Walfield <neal@gnu.org> * thread.h (struct vg_utcb): Remove field saved_thread_state. libhurd-mm/ 2008-12-16 Neal H. Walfield <neal@gnu.org> * ia32-exception-entry.S (UTCB_SAVED_THREAD_STATE): Don't define. (UTCB_ACTIVATION_FRAME_STACK): Adjust to new structure layout. viengoos/ 2008-12-16 Neal H. Walfield <neal@gnu.org> * thread.c (thread_activate): Don't update UTCB->SAVED_THREAD_STATE.
-rw-r--r--hurd/ChangeLog4
-rw-r--r--hurd/thread.h2
-rw-r--r--libhurd-mm/ChangeLog5
-rw-r--r--libhurd-mm/ia32-exception-entry.S3
-rw-r--r--viengoos/ChangeLog5
-rw-r--r--viengoos/thread.c2
6 files changed, 15 insertions, 6 deletions
diff --git a/hurd/ChangeLog b/hurd/ChangeLog
index 5b1920c..34e3ba7 100644
--- a/hurd/ChangeLog
+++ b/hurd/ChangeLog
@@ -1,5 +1,9 @@
2008-12-16 Neal H. Walfield <neal@gnu.org>
+ * thread.h (struct vg_utcb): Remove field saved_thread_state.
+
+2008-12-16 Neal H. Walfield <neal@gnu.org>
+
* addr-trans.h: Don't include <l4/types.h>. Include <stdint.h>
and <hurd/math.h>.
(struct cap_addr_trans): Replace l4 types with standard types.
diff --git a/hurd/thread.h b/hurd/thread.h
index 81a4925..522d13a 100644
--- a/hurd/thread.h
+++ b/hurd/thread.h
@@ -175,8 +175,6 @@ struct vg_utcb
/* The value of the IP and SP when the thread was running. */
uintptr_t saved_ip;
uintptr_t saved_sp;
- /* The state of the thread (as returned by _L4_exchange_regs) */
- uintptr_t saved_thread_state;
/* Top of the activation frame stack (i.e., the active
activation). */
diff --git a/libhurd-mm/ChangeLog b/libhurd-mm/ChangeLog
index ac6dace..fe90da8 100644
--- a/libhurd-mm/ChangeLog
+++ b/libhurd-mm/ChangeLog
@@ -1,5 +1,10 @@
2008-12-16 Neal H. Walfield <neal@gnu.org>
+ * ia32-exception-entry.S (UTCB_SAVED_THREAD_STATE): Don't define.
+ (UTCB_ACTIVATION_FRAME_STACK): Adjust to new structure layout.
+
+2008-12-16 Neal H. Walfield <neal@gnu.org>
+
* storage.c (num_threads): New function.
(FREE_PAGES_LOW_WATER): Make it a function of the number of
threads.
diff --git a/libhurd-mm/ia32-exception-entry.S b/libhurd-mm/ia32-exception-entry.S
index cc9ac78..c7f0b8c 100644
--- a/libhurd-mm/ia32-exception-entry.S
+++ b/libhurd-mm/ia32-exception-entry.S
@@ -26,8 +26,7 @@
#define UTCB_MODE (0*4)
#define UTCB_SAVED_IP (1*4)
#define UTCB_SAVED_SP (2*4)
-#define UTCB_SAVED_THREAD_STATE (3*4)
-#define UTCB_ACTIVATION_FRAME_STACK (4*4)
+#define UTCB_ACTIVATION_FRAME_STACK (3*4)
/* The bits of the mode word. */
#define ACTIVATED_MODE_BIT 0
diff --git a/viengoos/ChangeLog b/viengoos/ChangeLog
index 670b395..a2e5496 100644
--- a/viengoos/ChangeLog
+++ b/viengoos/ChangeLog
@@ -1,5 +1,10 @@
2008-12-16 Neal H. Walfield <neal@gnu.org>
+ * thread.c (thread_activate): Don't update
+ UTCB->SAVED_THREAD_STATE.
+
+2008-12-16 Neal H. Walfield <neal@gnu.org>
+
* thread.c (thread_deliver_pending): Only unlink M if it
successfully activates its associated thread.
diff --git a/viengoos/thread.c b/viengoos/thread.c
index 6d63971..19fca5b 100644
--- a/viengoos/thread.c
+++ b/viengoos/thread.c
@@ -538,8 +538,6 @@ thread_activate (struct activity *activity,
thread->tid, string, c);
}
- utcb->saved_thread_state = c;
-
utcb->activated_mode = 1;
if (utcb->activation_handler_ip <= ip