diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-27 20:29:28 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-07-27 20:29:28 +0300 |
| commit | 3212707a9ab549119ad0ad6441a07fe774c99f3b (patch) | |
| tree | 9df1e69c92dabfea37202008f77f8a100c0a7de4 /include/arch/proc.h | |
| parent | a26fb216729ba7a7d0fbfc97c2082c9db512aa36 (diff) | |
| download | kmi-3212707a9ab549119ad0ad6441a07fe774c99f3b.tar.gz kmi-3212707a9ab549119ad0ad6441a07fe774c99f3b.zip | |
use nifty variable argument count trick
+ Found it in newlib. This allows the compiler to more effectively
optimize away unnecessary register operations. Applied to both kernel
and init.c for a slight speed increase.
I really should move init.c to some other repository though, the
binary files are starting to get annoying
Diffstat (limited to 'include/arch/proc.h')
| -rw-r--r-- | include/arch/proc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/arch/proc.h b/include/arch/proc.h index c9b54db..79b099e 100644 --- a/include/arch/proc.h +++ b/include/arch/proc.h @@ -23,7 +23,7 @@ * @param t Thread that will run after return. * @param a Arguments to attach. */ -void set_args(struct tcb *t, struct sys_ret a); +void set_args(struct tcb *t, size_t n, struct sys_ret a); /** * Get argument data attached to thread. |
