- Timestamp:
- 2010-10-23T16:04:12Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c77b4d6
- Parents:
- 84c20da (diff), 58b833c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace
- Files:
-
- 48 added
- 14 deleted
- 11 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
r84c20da r1b11576d 46 46 app/tasks \ 47 47 app/tester \ 48 app/test_serial \ 48 49 app/tetris \ 49 50 app/trace \ 50 51 app/top \ 52 app/netecho \ 53 app/nettest1 \ 54 app/nettest2 \ 55 app/ping \ 51 56 srv/clip \ 52 57 srv/devmap \ 58 srv/devman \ 53 59 srv/loader \ 54 60 srv/ns \ … … 81 87 srv/net/net \ 82 88 srv/net/netstart \ 83 app/netecho \ 84 app/nettest1 \ 85 app/nettest2 \ 86 app/ping 89 drv/root 87 90 88 91 ## Networking … … 107 110 108 111 ifeq ($(UARCH),amd64) 109 DIRS += srv/hw/bus/pci110 112 endif 111 113 112 114 ifeq ($(UARCH),ia32) 113 DIRS += srv/hw/bus/pci 115 DIRS += drv/rootia32 116 DIRS += drv/pciintel 117 DIRS += drv/isa 118 DIRS += drv/ns8250 114 119 endif 115 120 … … 134 139 lib/softint \ 135 140 lib/softfloat \ 141 lib/drv \ 136 142 lib/packet \ 137 143 lib/net 138 139 ifeq ($(UARCH),amd64)140 LIBS += lib/pci141 endif142 143 ifeq ($(UARCH),ia32)144 LIBS += lib/pci145 endif146 147 144 148 145 LIBC_BUILD = $(addsuffix .build,$(LIBC)) -
uspace/Makefile.common
r84c20da r1b11576d 86 86 LIBCLUI_PREFIX = $(LIB_PREFIX)/clui 87 87 88 LIBPCI_PREFIX = $(LIB_PREFIX)/pci 89 88 LIBDRV_PREFIX = $(LIB_PREFIX)/drv 90 89 LIBPACKET_PREFIX = $(LIB_PREFIX)/packet 91 90 LIBNET_PREFIX = $(LIB_PREFIX)/net -
uspace/app/trace/syscalls.c
r84c20da r1b11576d 73 73 [SYS_PHYSMEM_MAP] = { "physmem_map", 4, V_ERRNO }, 74 74 [SYS_IOSPACE_ENABLE] = { "iospace_enable", 1, V_ERRNO }, 75 [SYS_INTERRUPT_ENABLE] = { "interrupt_enable", 2, V_ERRNO }, 75 76 76 77 [SYS_SYSINFO_GET_TAG] = { "sysinfo_get_tag", 2, V_INTEGER }, -
uspace/lib/c/Makefile
r84c20da r1b11576d 57 57 generic/clipboard.c \ 58 58 generic/devmap.c \ 59 generic/devman.c \ 60 generic/device/hw_res.c \ 61 generic/device/char.c \ 59 62 generic/event.c \ 60 63 generic/errno.c \ -
uspace/lib/c/generic/adt/dynamic_fifo.c
r84c20da r1b11576d 28 28 29 29 /** @addtogroup libc 30 * 30 * @{ 31 31 */ 32 32 … … 34 34 * Dynamic first in first out positive integer queue implementation. 35 35 */ 36 37 #include <adt/dynamic_fifo.h> 36 38 37 39 #include <errno.h> 38 40 #include <malloc.h> 39 41 #include <mem.h> 40 41 #include <adt/dynamic_fifo.h>42 42 43 43 /** Internal magic value for a consistency check. */ … … 106 106 int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size) 107 107 { 108 int * 108 int *new_items; 109 109 110 110 if (!dyn_fifo_is_valid(fifo)) … … 149 149 /** Returns and excludes the first item in the queue. 150 150 * 151 * @param[in,out] fifo iThe dynamic queue.151 * @param[in,out] fifo The dynamic queue. 152 152 * @returns Value of the first item in the queue. 153 153 * @returns EINVAL if the queue is not valid. … … 189 189 /** Clears and destroys the queue. 190 190 * 191 * @param[in,out] fifoThe dynamic queue.192 * @returnsEOK on success.193 * @returnsEINVAL if the queue is not valid.191 * @param[in,out] fifo The dynamic queue. 192 * @returns EOK on success. 193 * @returns EINVAL if the queue is not valid. 194 194 */ 195 195 int dyn_fifo_destroy(dyn_fifo_ref fifo) -
uspace/lib/c/generic/ddi.c
r84c20da r1b11576d 96 96 } 97 97 98 /** Enable an interrupt. 99 * 100 * @param irq the interrupt. 101 * 102 * @return Zero on success, negative error code otherwise. 103 */ 104 int interrupt_enable(int irq) 105 { 106 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 1); 107 } 108 109 /** Disable an interrupt. 110 * 111 * @param irq the interrupt. 112 * 113 * @return Zero on success, negative error code otherwise. 114 */ 115 int interrupt_disable(int irq) 116 { 117 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 0); 118 } 119 98 120 /** Enable PIO for specified I/O range. 99 121 * -
uspace/lib/c/include/ddi.h
r84c20da r1b11576d 42 42 extern int iospace_enable(task_id_t, void *, unsigned long); 43 43 extern int pio_enable(void *, size_t, void **); 44 extern int interrupt_enable(int); 45 extern int interrupt_disable(int); 44 46 45 47 #endif -
uspace/lib/c/include/ipc/services.h
r84c20da r1b11576d 45 45 SERVICE_VFS, 46 46 SERVICE_DEVMAP, 47 SERVICE_DEVMAN, 47 48 SERVICE_FHC, 48 49 SERVICE_OBIO, -
uspace/lib/drv/Makefile
r84c20da r1b11576d 28 28 # 29 29 30 USPACE_PREFIX = ../../../.. 31 LIBS = $(LIBPCI_PREFIX)/libpci.a 32 EXTRA_CFLAGS = -I$(LIBPCI_PREFIX) 33 BINARY = pci 30 USPACE_PREFIX = ../.. 31 EXTRA_CFLAGS = -Iinclude 32 LIBRARY = libdrv 34 33 35 34 SOURCES = \ 36 pci.c 35 generic/driver.c \ 36 generic/dev_iface.c \ 37 generic/remote_res.c \ 38 generic/remote_char.c 37 39 38 40 include $(USPACE_PREFIX)/Makefile.common -
uspace/srv/devman/Makefile
r84c20da r1b11576d 29 29 30 30 USPACE_PREFIX = ../.. 31 LIBRARY = libpci 31 BINARY = devman 32 32 33 33 SOURCES = \ 34 access.c \35 generic.c \36 names.c \37 i386-ports.c34 main.c \ 35 devman.c \ 36 match.c \ 37 util.c 38 38 39 39 include $(USPACE_PREFIX)/Makefile.common -
uspace/srv/fs/fat/fat_ops.c
r84c20da r1b11576d 369 369 unsigned blocks; 370 370 fat_dentry_t *d; 371 dev_handle_t dev_handle; 371 372 block_t *b; 372 373 int rc; 373 374 374 375 fibril_mutex_lock(&parentp->idx->lock); 375 bs = block_bb_get(parentp->idx->dev_handle); 376 dev_handle = parentp->idx->dev_handle; 377 fibril_mutex_unlock(&parentp->idx->lock); 378 379 bs = block_bb_get(dev_handle); 376 380 blocks = parentp->size / BPS(bs); 377 381 for (i = 0; i < blocks; i++) { 378 382 rc = fat_block_get(&b, bs, parentp, i, BLOCK_FLAGS_NONE); 379 if (rc != EOK) { 380 fibril_mutex_unlock(&parentp->idx->lock); 383 if (rc != EOK) 381 384 return rc; 382 }383 385 for (j = 0; j < DPS(bs); j++) { 384 386 d = ((fat_dentry_t *)b->data) + j; … … 390 392 /* miss */ 391 393 rc = block_put(b); 392 fibril_mutex_unlock(&parentp->idx->lock);393 394 *rfn = NULL; 394 395 return rc; … … 401 402 /* hit */ 402 403 fat_node_t *nodep; 403 /* 404 * Assume tree hierarchy for locking. We 405 * already have the parent and now we are going 406 * to lock the child. Never lock in the oposite 407 * order. 408 */ 409 fat_idx_t *idx = fat_idx_get_by_pos( 410 parentp->idx->dev_handle, parentp->firstc, 411 i * DPS(bs) + j); 412 fibril_mutex_unlock(&parentp->idx->lock); 404 fat_idx_t *idx = fat_idx_get_by_pos(dev_handle, 405 parentp->firstc, i * DPS(bs) + j); 413 406 if (!idx) { 414 407 /* … … 433 426 } 434 427 rc = block_put(b); 435 if (rc != EOK) { 436 fibril_mutex_unlock(&parentp->idx->lock); 428 if (rc != EOK) 437 429 return rc; 438 } 439 } 440 441 fibril_mutex_unlock(&parentp->idx->lock); 430 } 431 442 432 *rfn = NULL; 443 433 return EOK; -
uspace/srv/net/tl/tcp/tcp.c
r84c20da r1b11576d 2033 2033 if (!fibril) { 2034 2034 free(operation_timeout); 2035 return EPARTY; 2035 return EPARTY; /* FIXME: use another EC */ 2036 2036 } 2037 2037 // fibril_mutex_lock(&socket_data->operation.mutex); -
uspace/srv/vfs/vfs_ops.c
r84c20da r1b11576d 1355 1355 int ret = vfs_close_internal(newfile); 1356 1356 if (ret != EOK) { 1357 fibril_mutex_unlock(&oldfile->lock); 1357 1358 ipc_answer_0(rid, ret); 1358 1359 return; … … 1361 1362 ret = vfs_fd_free(newfd); 1362 1363 if (ret != EOK) { 1364 fibril_mutex_unlock(&oldfile->lock); 1363 1365 ipc_answer_0(rid, ret); 1364 1366 return;
Note:
See TracChangeset
for help on using the changeset viewer.