summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-21 22:16:14 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-04-21 22:16:14 -0700
commitf5203bfa11fde88d16f471b4050ed1da73387c7a (patch)
tree1240d92a993cf49fe1b92ad3d564596009b45794 /core/include
parent3f6823a63c7f153421bbca343423a5fddc1a4ec1 (diff)
downloadsyslinux-f5203bfa11fde88d16f471b4050ed1da73387c7a.tar.gz
thread: thread-switch the real-mode stack, too
When this code was originally written, we didn't have lmalloc(). Now when lmalloc() is implemented, let each real-mode task have its own stack. Note that this means we absolutely have to continue to support the SS != CS, DS model in the real-mode code, which should already be the case, but... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include')
-rw-r--r--core/include/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/include/thread.h b/core/include/thread.h
index 704962e1..b283424d 100644
--- a/core/include/thread.h
+++ b/core/include/thread.h
@@ -26,6 +26,7 @@ struct thread {
const char *name; /* Name (for debugging) */
struct thread_list list;
struct thread_block *blocked;
+ void *stack, *rmstack; /* Stacks, iff allocated by malloc/lmalloc */
void *pvt; /* For the benefit of lwIP */
int prio;
};