X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fhal_proc.h;h=fad225b8d9972393a4bada96edba1dcdcd470254;hb=9a70d1ed74070f56c34b856f88931b134d429c3a;hp=e7ca8918c475b1405865335271ff5615b4d13d7d;hpb=3ae2945f389308e0fab4f63980e8152577c17bf8;p=tpg%2Facess2.git diff --git a/Kernel/include/hal_proc.h b/Kernel/include/hal_proc.h index e7ca8918..fad225b8 100644 --- a/Kernel/include/hal_proc.h +++ b/Kernel/include/hal_proc.h @@ -15,7 +15,16 @@ extern void ArchThreads_Init(void); extern void Proc_Start(void); extern int GetCPUNum(void); extern tTID Proc_Clone(Uint Flags); -extern void Proc_StartUser(Uint Entrypoint, Uint *Bases, int ArgC, char **ArgV, char **EnvP, int DataSize); +/** + * \brief Start a user task + * \param Entrypoint User entrypoint + * \param Base Base of executable (argument for ld-acess) + * \param ArgC Number of arguments when the program was invoked + * \param ArgV Heap allocated arguments and environment (two NULL terminated lists) + * \param DataSize Size of the \a ArgV buffer in bytes + * \note This function should free \a ArgV + */ +extern void Proc_StartUser(Uint Entrypoint, Uint Base, int ArgC, char **ArgV, int DataSize) NORETURN; extern void Proc_CallFaultHandler(tThread *Thread); extern void Proc_DumpThreadCPUState(tThread *Thread); extern void Proc_Reschedule(void);