- Timestamp:
- 2006-09-05T14:52:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5035eeb7
- Parents:
- 2def788
- Location:
- uspace/libc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/arch/sparc64/include/syscall.h
r2def788 rd681c17 51 51 : "=r" (a1) 52 52 : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "i" (id) 53 : "memory" 53 54 ); 54 55 -
uspace/libc/generic/as.c
r2def788 rd681c17 37 37 #include <unistd.h> 38 38 #include <align.h> 39 #include <types.h> 40 41 /** 42 * Either 4*256M on 32-bit architecures or 16*256M on 64-bit architectures. 43 */ 44 #define MAX_HEAP_SIZE (sizeof(uintptr_t)<<28) 39 45 40 46 /** Create address space area. … … 142 148 /* Set heapsize to some meaningful value */ 143 149 if (maxheapsize == -1) 144 set_maxheapsize( ALIGN_UP(USER_ADDRESS_SPACE_SIZE_ARCH >> 1, PAGE_SIZE));150 set_maxheapsize(MAX_HEAP_SIZE); 145 151 146 152 if (!last_allocated) -
uspace/libc/generic/psthread.c
r2def788 rd681c17 62 62 static int threads_in_manager; 63 63 64 /** Setup PSthread information into TCB structure */64 /** Setup psthread information into TCB structure */ 65 65 psthread_data_t * psthread_setup() 66 66 { … … 90 90 } 91 91 92 /** Function that is called on entry to new uspacethread */92 /** Function that is called on entry to new pseudo thread */ 93 93 void psthread_main(void) 94 94 { … … 210 210 } 211 211 212 /** 213 * Create a userspace thread 212 /** Create a userspace pseudo thread. 214 213 * 215 214 * @param func Pseudo thread function. -
uspace/libc/include/as.h
r2def788 rd681c17 41 41 #include <kernel/mm/as.h> 42 42 43 #define USER_ADDRESS_SPACE_SIZE_ARCH (USER_ADDRESS_SPACE_END_ARCH-USER_ADDRESS_SPACE_START_ARCH+1)44 45 43 extern void *as_area_create(void *address, size_t size, int flags); 46 44 extern int as_area_resize(void *address, size_t size, int flags); -
uspace/libc/include/stdio.h
r2def788 rd681c17 41 41 #define EOF (-1) 42 42 43 #include <string.h> 43 44 #include <io/stream.h> 45 46 #define DEBUG(fmt, ...) \ 47 { \ 48 char buf[256]; \ 49 int n; \ 50 n = snprintf(buf, sizeof(buf), fmt, ##__VA_ARGS__); \ 51 if (n > 0) \ 52 (void) __SYSCALL3(SYS_IO, 1, (sysarg_t) buf, strlen(buf)); \ 53 } 44 54 45 55 extern int getchar(void);
Note:
See TracChangeset
for help on using the changeset viewer.