Changeset 04cb68f2 in mainline
- Timestamp:
- 2010-10-20T19:30:54Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 78a9e5ef
- Parents:
- e0e568ff (diff), a6e54c5d (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. - Files:
-
- 86 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
re0e568ff r04cb68f2 61 61 cp "$$file" "$(DIST_PATH)/cfg/net/" ; \ 62 62 done 63 63 for drv in $(RD_DRVS) ; do \ 64 mkdir -p "$(DIST_PATH)/$(DRVS_PATH)/$$drv" ; \ 65 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv" ; \ 66 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" "$(DIST_PATH)/$(DRVS_PATH)/$$drv/$$drv.ma" ; \ 67 done 68 for file in $(RD_DRV_CFG) ; do \ 69 cp "$(USPACE_PATH)/$(DRVS_PATH)/$$file" "$(DIST_PATH)/$(DRVS_PATH)/$$file" ; \ 70 done 71 64 72 clean: clean_dist 65 73 $(MAKE) -f $(BUILD) clean PRECHECK=$(PRECHECK) -
boot/Makefile.common
re0e568ff r04cb68f2 49 49 DIST_PATH = $(USPACE_PATH)/dist 50 50 TOOLS_PATH = $(ROOT_PATH)/tools 51 DRVS_PATH = srv/drivers 51 52 52 53 SANDBOX = pack … … 106 107 $(USPACE_PATH)/srv/net/net/net \ 107 108 $(USPACE_PATH)/srv/net/netstart/netstart \ 109 $(USPACE_PATH)/srv/devman/devman \ 110 $(USPACE_PATH)/srv/drivers/root/root 111 112 RD_DRVS = \ 113 root 114 115 RD_DRV_CFG = 108 116 109 117 ifneq ($(CONFIG_NETIF_NIL_BUNDLE),y) … … 125 133 $(USPACE_PATH)/app/taskdump/taskdump \ 126 134 $(USPACE_PATH)/app/tester/tester \ 135 $(USPACE_PATH)/app/test_serial/test_serial \ 127 136 $(USPACE_PATH)/app/tetris/tetris \ 128 137 $(USPACE_PATH)/app/trace/trace \ -
boot/arch/amd64/Makefile.inc
re0e568ff r04cb68f2 37 37 $(USPACE_PATH)/srv/hid/char_mouse/char_ms 38 38 39 RD_DRVS += \ 40 rootia32 \ 41 pciintel \ 42 isa \ 43 ns8250 44 45 RD_DRV_CFG += \ 46 isa/isa.dev 47 39 48 BOOT_OUTPUT = $(ROOT_PATH)/image.iso 40 49 PREBUILD = $(INITRD).img -
kernel/generic/include/ddi/ddi.h
re0e568ff r04cb68f2 54 54 extern unative_t sys_physmem_map(unative_t, unative_t, unative_t, unative_t); 55 55 extern unative_t sys_iospace_enable(ddi_ioarg_t *); 56 extern unative_t sys_interrupt_enable(int irq, int enable); 56 57 57 58 /* … … 60 61 extern int ddi_iospace_enable_arch(task_t *, uintptr_t, size_t); 61 62 63 62 64 #endif 63 65 -
kernel/generic/include/syscall/syscall.h
re0e568ff r04cb68f2 80 80 SYS_PHYSMEM_MAP, 81 81 SYS_IOSPACE_ENABLE, 82 SYS_INTERRUPT_ENABLE, 82 83 83 84 SYS_SYSINFO_GET_TAG, -
kernel/generic/src/ddi/ddi.c
re0e568ff r04cb68f2 258 258 } 259 259 260 /** Disable or enable specified interrupts. 261 * 262 * @param irq the interrupt to be enabled/disabled. 263 * @param enable if true enable the interrupt, disable otherwise. 264 * 265 * @retutn Zero on success, error code otherwise. 266 */ 267 unative_t sys_interrupt_enable(int irq, int enable) 268 { 269 cap_t task_cap = cap_get(TASK); 270 if (!(task_cap & CAP_IRQ_REG)) 271 return EPERM; 272 273 if (irq < 0 || irq > 16) { 274 return EINVAL; 275 } 276 277 uint16_t irq_mask = (uint16_t)(1 << irq); 278 if (enable) { 279 trap_virtual_enable_irqs(irq_mask); 280 } else { 281 trap_virtual_disable_irqs(irq_mask); 282 } 283 284 return 0; 285 } 286 260 287 /** @} 261 288 */ -
kernel/generic/src/syscall/syscall.c
re0e568ff r04cb68f2 159 159 (syshandler_t) sys_physmem_map, 160 160 (syshandler_t) sys_iospace_enable, 161 (syshandler_t) sys_interrupt_enable, 161 162 162 163 /* Sysinfo syscalls */ -
uspace/Makefile
re0e568ff r04cb68f2 43 43 app/sbi \ 44 44 app/stats \ 45 app/shutters \ 45 46 app/taskdump \ 46 47 app/tasks \ 47 48 app/tester \ 49 app/test_serial \ 48 50 app/tetris \ 49 51 app/trace \ … … 51 53 srv/clip \ 52 54 srv/devmap \ 55 srv/devman \ 56 srv/drivers/root \ 53 57 srv/loader \ 54 58 srv/ns \ … … 111 115 112 116 ifeq ($(UARCH),ia32) 113 DIRS += srv/hw/bus/pci 117 DIRS += srv/drivers/rootia32 118 DIRS += srv/drivers/pciintel 119 DIRS += srv/drivers/isa 120 DIRS += srv/drivers/ns8250 121 # DIRS += srv/hw/bus/pci 114 122 endif 115 123 … … 134 142 lib/softint \ 135 143 lib/softfloat \ 144 lib/drv \ 136 145 lib/packet \ 137 146 lib/net -
uspace/Makefile.common
re0e568ff r04cb68f2 88 88 LIBPCI_PREFIX = $(LIB_PREFIX)/pci 89 89 90 LIBDRV_PREFIX = $(LIB_PREFIX)/drv 90 91 LIBPACKET_PREFIX = $(LIB_PREFIX)/packet 91 92 LIBNET_PREFIX = $(LIB_PREFIX)/net -
uspace/app/init/init.c
re0e568ff r04cb68f2 309 309 getterm("term/vc5", "/app/bdsh"); 310 310 getterm("term/vc6", "/app/klog"); 311 getterm("term/vc7", "/srv/devman"); 311 312 312 313 return 0; -
uspace/app/trace/syscalls.c
re0e568ff r04cb68f2 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
re0e568ff r04cb68f2 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/ddi.c
re0e568ff r04cb68f2 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
re0e568ff r04cb68f2 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
re0e568ff r04cb68f2 45 45 SERVICE_VFS, 46 46 SERVICE_DEVMAP, 47 SERVICE_DEVMAN, 47 48 SERVICE_FHC, 48 49 SERVICE_OBIO,
Note:
See TracChangeset
for help on using the changeset viewer.