Changeset d681c17 in mainline
- Timestamp:
- 2006-09-05T14:52:11Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5035eeb7
- Parents:
- 2def788
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/tlb.c
r2def788 rd681c17 104 104 data.p = true; 105 105 data.w = true; 106 data.g = true;106 data.g = false; 107 107 108 108 dtlb_data_in_write(data.value); -
kernel/arch/sparc64/src/start.S
r2def788 rd681c17 126 126 127 127 ! write DTLB data and install the kernel mapping 128 SET_TLB_DATA(g1, g2, TTE_G) 128 SET_TLB_DATA(g1, g2, 0) ! use non-global mapping 129 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 130 membar #Sync 131 132 /* 133 * Because we cannot use global mappings (because we want to 134 * have separate 64-bit address spaces for both the kernel 135 * and the userspace), we prepare the identity mapping also in 136 * context 1. This step is required by the 137 * code installing the ITLB mapping. 138 */ 139 ! write DTLB tag of context 1 (i.e. MEM_CONTEXT_TEMP) 140 SET_TLB_TAG(g1, MEM_CONTEXT_TEMP) 141 stxa %g1, [VA_DMMU_TAG_ACCESS] %asi 142 membar #Sync 143 144 ! write DTLB data and install the kernel mapping in context 1 145 SET_TLB_DATA(g1, g2, 0) ! use non-global mapping 129 146 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 130 147 membar #Sync -
kernel/generic/include/mm/as.h
r2def788 rd681c17 62 62 #define USER_ADDRESS_SPACE_START USER_ADDRESS_SPACE_START_ARCH 63 63 #define USER_ADDRESS_SPACE_END USER_ADDRESS_SPACE_END_ARCH 64 65 #define IS_KA(addr) ((addr)>=KERNEL_ADDRESS_SPACE_START && (addr)<=KERNEL_ADDRESS_SPACE_END)66 64 67 65 #define USTACK_ADDRESS USTACK_ADDRESS_ARCH -
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.