libc.obj:

- Added atof function
- Added example for working with threads

git-svn-id: svn://kolibrios.org@9137 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat
2021-08-15 20:21:32 +00:00
parent 48a6c045c4
commit e7ec006b8b
7 changed files with 89 additions and 4 deletions

View File

@@ -11,10 +11,10 @@
* All wrappers must start with the "_ksys_" prefix.
* I consider it mandatory to place the wrappers in the correct order in the official documentation.
* Enjoy writing your code :)
*/
// Warning! The end of the file is the old definitions of function/structure names.
// They are for compatibility... Better not to use them. */
* Warning! The end of the file is the old definitions of function/structure names.
* They are for compatibility... Better not to use them.
*/
#ifndef _KSYS_H_
#define _KSYS_H_
@@ -686,6 +686,8 @@ void _ksys_kill_by_pid(uint32_t PID)
);
}
/*===================== Function 18, subfunction 21 ====================*/
/*=====Get the slot number of the process / thread by identifier.. =====*/
static inline
int _ksys_get_thread_slot(int PID){
@@ -962,12 +964,13 @@ uint32_t _ksys_get_skin_height(){
/*==================== Function 51 - create thread. ====================*/
static inline
int _ksys_start_thread(void* thread_entry, void* stack_top){
int _ksys_create_thread(void* thread_entry, void* stack_top){
int val;
asm_inline(
"int $0x40"
:"=a"(val)
:"a"(51), "b"(1), "c"(thread_entry), "d"(stack_top)
:"memory"
);
return val;
}