mirror of
https://github.com/drasko/codezero.git
synced 2026-04-18 01:39:05 +02:00
Changes in README. Fix to thread_control() reading wrong syscall argument register.
This commit is contained in:
11
README
11
README
@@ -154,11 +154,10 @@ demand-paging and virtual filesystem layer. Different from most other posix-like
|
|||||||
systems, it is based on a microkernel design. This makes it possible to use it
|
systems, it is based on a microkernel design. This makes it possible to use it
|
||||||
also as a base for implementing or running other operating systems. It has a
|
also as a base for implementing or running other operating systems. It has a
|
||||||
cleanly separated set of system services, it is small and well-focused. Its
|
cleanly separated set of system services, it is small and well-focused. Its
|
||||||
design is carefully thought out, so it's not simply a mock-up implementation of
|
design is carefully thought out, so it's not simply a quick and dirty
|
||||||
the existing POSIX API. Its source code is also freely available (See LICENSE
|
implementation of the POSIX API. Its source code is also freely available (See
|
||||||
heading). For these reasons it is a good candidate as systems software to be
|
LICENSE heading for details). For these reasons it is a good candidate to be
|
||||||
used on embedded platforms. Currently it has little or no users, therefore
|
used as systems software on embedded platforms. Currently it has little or no
|
||||||
compared to systems with a saturated user base project developers are available
|
users, therefore it can be easily adopted for any first users' needs.
|
||||||
to tailor it rapidly towards the needs of any interested users.
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -195,9 +195,8 @@ out:
|
|||||||
int sys_thread_control(syscall_context_t *regs)
|
int sys_thread_control(syscall_context_t *regs)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
u32 *reg = (u32 *)regs;
|
unsigned int flags = regs->r0;
|
||||||
unsigned int flags = reg[0];
|
struct task_ids *ids = (struct task_ids *)regs->r1;
|
||||||
struct task_ids *ids = (struct task_ids *)reg[1];
|
|
||||||
|
|
||||||
switch (flags & THREAD_ACTION_MASK) {
|
switch (flags & THREAD_ACTION_MASK) {
|
||||||
case THREAD_CREATE:
|
case THREAD_CREATE:
|
||||||
|
|||||||
Reference in New Issue
Block a user