Changeset 137691a in mainline
- Timestamp:
- 2010-02-26T14:07:36Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91001e2, aa85487
- Parents:
- e0b0c25
- Location:
- kernel
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/i8042/i8042.c
re0b0c25 r137691a 67 67 i8042_instance_t *instance = irq->instance; 68 68 i8042_t *dev = instance->i8042; 69 uint8_t status;70 69 71 if ( ((status = pio_read_8(&dev->status)) & i8042_BUFFER_FULL_MASK)) {70 if (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) { 72 71 uint8_t data = pio_read_8(&dev->data); 73 72 indev_push_character(instance->kbrdin, data); -
kernel/generic/include/bitops.h
re0b0c25 r137691a 65 65 } 66 66 67 if (arg >> 1) { 68 arg >>= 1; 67 if (arg >> 1) 69 68 n += 1; 70 }71 69 72 70 return n; -
kernel/generic/src/console/kconsole.c
re0b0c25 r137691a 224 224 printf("\n"); 225 225 pos = NULL; 226 while ( (hint = cmdtab_search_one(name, &pos))) {226 while (cmdtab_search_one(name, &pos)) { 227 227 cmd_info_t *hlp = list_get_instance(pos, cmd_info_t, link); 228 228 printf("%s (%s)\n", hlp->name, hlp->description); -
kernel/generic/src/debug/symtab.c
re0b0c25 r137691a 239 239 printf("\n"); 240 240 pos = 0; 241 while ( (hint = symtab_search_one(name, &pos))) {241 while (symtab_search_one(name, &pos)) { 242 242 printf("%s\n", symbol_table[pos].symbol_name); 243 243 pos++; -
kernel/generic/src/lib/elf.c
re0b0c25 r137691a 155 155 as_t *as, int flags) 156 156 { 157 char *interp;158 159 157 switch (entry->p_type) { 160 158 case PT_NULL: … … 165 163 case PT_DYNAMIC: 166 164 case PT_INTERP: 167 interp = (char *)elf + entry->p_offset; 168 /* FIXME */ 169 /*if (memcmp((uintptr_t)interp, (uintptr_t)ELF_INTERP_ZSTR, 165 // FIXME 166 /* 167 char *interp = (char *) elf + entry->p_offset; 168 if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR, 170 169 ELF_INTERP_ZLEN) != 0) { 171 170 return EE_UNSUPPORTED; 172 } */171 } */ 173 172 if ((flags & ELD_F_LOADER) == 0) { 174 173 return EE_LOADER; -
kernel/generic/src/mm/as.c
re0b0c25 r137691a 784 784 { 785 785 as_area_t *area; 786 uintptr_t base;787 786 link_t *cur; 788 787 ipl_t ipl; … … 813 812 return ENOTSUP; 814 813 } 815 816 base = area->base;817 814 818 815 /* -
kernel/generic/src/mm/backend_elf.c
re0b0c25 r137691a 232 232 void elf_frame_free(as_area_t *area, uintptr_t page, uintptr_t frame) 233 233 { 234 elf_header_t *elf = area->backend_data.elf;235 234 elf_segment_header_t *entry = area->backend_data.segment; 236 uintptr_t base, start_anon; 237 size_t i; 235 uintptr_t start_anon; 238 236 239 237 ASSERT((page >= ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)) && 240 238 (page < entry->p_vaddr + entry->p_memsz)); 241 i = (page - ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)) >> PAGE_WIDTH;242 base = (uintptr_t) (((void *) elf) +243 ALIGN_DOWN(entry->p_offset, FRAME_SIZE));244 239 start_anon = entry->p_vaddr + entry->p_filesz; 245 240 … … 257 252 * lower part is backed by the ELF image and the upper is 258 253 * anonymous). In any case, a frame needs to be freed. 259 */ 254 */ 260 255 frame_free(frame); 261 256 } -
kernel/generic/src/proc/thread.c
re0b0c25 r137691a 264 264 265 265 atomic_inc(&nrdy); 266 // FIXME: Why is the avg value never read? 266 267 avg = atomic_get(&nrdy) / config.cpu_active; 267 268 atomic_inc(&cpu->nrdy); -
kernel/generic/src/sysinfo/sysinfo.c
re0b0c25 r137691a 46 46 return NULL; 47 47 48 while (subtree != NULL) 48 while (subtree != NULL) { 49 49 int i = 0; 50 50 char *a = (char *) name; … … 68 68 /* No matches try next */ 69 69 subtree = subtree->next; 70 i = 0;71 70 } 72 71 return NULL; … … 159 158 item->subinfo_type = SYSINFO_SUBINFO_NONE; 160 159 return item; 161 } else {160 } else 162 161 subtree = subtree->next; 163 i = 0;164 }165 162 } 166 163 -
kernel/generic/src/udebug/udebug_ops.c
re0b0c25 r137691a 80 80 static int _thread_op_begin(thread_t *t, bool being_go) 81 81 { 82 task_id_t taskid;83 82 ipl_t ipl; 84 85 taskid = TASK->taskid;86 83 87 84 mutex_lock(&TASK->udebug.lock);
Note:
See TracChangeset
for help on using the changeset viewer.