| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Add a magic number to the thread control block; this helps check for
memory overwrites.
Add dprintf()s to the scheduler.
Force a minimum stack size.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
| |
kill_thread() had been modifying errno(!) as if it had been the return
value... in other words, it really did absolutely nothing.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
|
| |
free(NULL) is safe and permitted, no reason to conditionalize calling
free().
lmalloc() will always return a paragraph-aligned memory block, so we
don't have to play games with the offset.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
|
|
|
|
|
| |
Add a name field to struct thread, for debugging's sake.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|
|
|
|
|
|
|
| |
Move most our thread state to the stack. Task switch the errno
variable.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
|
|
|
|
|
|
| |
Have start_thread() allocate memory dynamically, using malloc().
XXX: should probably free that memory in __exit_thread()... could be
"interesting".
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|
Simple thread library with the intent of making lwIP easier to port.
-- Modified to use milliseconds instead of jiffies,
as lwIP expresses everything in milliseconds. EWB
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
|