Changes in / [15b592b:c47e1a8] in mainline
- Files:
-
- 102 added
- 5 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r15b592b rc47e1a8 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) … … 73 81 clean_dist: 74 82 rm -f $(INITRD).fs $(INITRD).img $(COMPS_H) $(COMPS_C) $(LINK) *.co 83 rm -f -r "$(DIST_PATH)/$(DRVS_PATH)" 75 84 rm -f $(USPACE_PATH)/dist/srv/* 76 85 rm -f $(USPACE_PATH)/dist/app/* -
boot/Makefile.common
r15b592b rc47e1a8 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 … … 105 106 $(USPACE_PATH)/srv/net/net/net \ 106 107 $(USPACE_PATH)/srv/net/netstart/netstart \ 108 $(USPACE_PATH)/srv/devman/devman \ 109 $(USPACE_PATH)/srv/drivers/root/root 110 111 RD_DRVS = \ 112 root 113 114 RD_DRV_CFG = 107 115 108 116 ifneq ($(CONFIG_NETIF_NIL_BUNDLE),y) … … 124 132 $(USPACE_PATH)/app/taskdump/taskdump \ 125 133 $(USPACE_PATH)/app/tester/tester \ 134 $(USPACE_PATH)/app/test_serial/test_serial \ 126 135 $(USPACE_PATH)/app/tetris/tetris \ 127 136 $(USPACE_PATH)/app/trace/trace \ -
boot/arch/amd64/Makefile.inc
r15b592b rc47e1a8 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 -
boot/arch/mips32/src/Makefile
r15b592b rc47e1a8 32 32 .PHONY: all clean 33 33 34 all: ../../../../version ../../../../Makefile.co mmon ../../../../Makefile.config ../../../../config.h34 all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) 37 37 38 38 clean: 39 rm -f $(USPACEDIR)/dist/srv/*40 rm -f $(USPACEDIR)/dist/app/*41 rm -f $(USPACEDIR)/dist/cfg/net/*42 43 39 for file in $(RD_SRVS) ; do \ 44 40 rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ … … 47 43 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 48 44 done 49 for file in $(NET_CFG) ; do \50 rm -f $(USPACEDIR)/dist/cfg/net/`basename $$file` ; \51 done52 45 rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs 53 46 find . -name '*.o' -follow -exec rm \{\} \; -
boot/arch/mips32/src/Makefile.build
r15b592b rc47e1a8 32 32 33 33 include ../../../../version 34 include ../../../../Makefile.common35 34 include ../../../../Makefile.config 35 include ../../../../config.defs 36 36 include Makefile.common 37 37 include Makefile.toolchain … … 77 77 78 78 $(DEPEND): 79 rm -f $(USPACEDIR)/dist/srv/*80 rm -f $(USPACEDIR)/dist/app/*81 rm -f $(USPACEDIR)/dist/cfg/net/*82 83 79 for file in $(RD_SRVS) ; do \ 84 80 cp $$file $(USPACEDIR)/dist/srv/ ; \ … … 86 82 for file in $(RD_APPS) ; do \ 87 83 cp $$file $(USPACEDIR)/dist/app/ ; \ 88 done89 for file in $(NET_CFG) ; do \90 cp $$file $(USPACEDIR)/dist/cfg/net/ ; \91 84 done 92 85 ifeq ($(RDFMT),tmpfs) -
boot/arch/mips32/src/Makefile.toolchain
r15b592b rc47e1a8 27 27 # 28 28 29 ## Toolchain configuration 30 # 31 32 ifndef CROSS_PREFIX 33 CROSS_PREFIX = /usr/local 34 endif 35 29 36 BFD_ARCH = mips 37 TARGET = mipsel-linux-gnu 38 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin 30 39 31 40 JOBFILE = ../../../../tools/jobfile.py … … 39 48 BFD_NAME = elf32-tradbigmips 40 49 BFD = ecoff-bigmips 50 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb/bin 51 TARGET = mips-linux-gnu 41 52 endif 42 53 … … 44 55 BFD_NAME = elf32-tradlittlemips 45 56 BFD = binary 57 endif 58 59 ifeq ($(COMPILER),gcc_native) 60 CC = gcc 61 AS = as 62 LD = ld 63 OBJCOPY = objcopy 64 OBJDUMP = objdump 65 endif 66 67 ifeq ($(COMPILER),gcc_cross) 68 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 69 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 70 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 71 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 72 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 46 73 endif 47 74 -
kernel/generic/include/ddi/ddi.h
r15b592b rc47e1a8 56 56 extern unative_t sys_iospace_enable(ddi_ioarg_t *uspace_io_arg); 57 57 extern unative_t sys_preempt_control(int enable); 58 extern unative_t sys_interrupt_enable(int irq, int enable); 58 59 59 60 /* … … 62 63 extern int ddi_iospace_enable_arch(task_t *task, uintptr_t ioaddr, size_t size); 63 64 65 64 66 #endif 65 67 -
kernel/generic/include/syscall/syscall.h
r15b592b rc47e1a8 81 81 SYS_IOSPACE_ENABLE, 82 82 SYS_PREEMPT_CONTROL, 83 SYS_INTERRUPT_ENABLE, 83 84 84 85 SYS_SYSINFO_GET_TAG, -
kernel/generic/src/ddi/ddi.c
r15b592b rc47e1a8 283 283 } 284 284 285 /** Disable or enable specified interrupts. 286 * 287 * @param irq the interrupt to be enabled/disabled. 288 * @param enable if true enable the interrupt, disable otherwise. 289 * 290 * @retutn Zero on success, error code otherwise. 291 */ 292 unative_t sys_interrupt_enable(int irq, int enable) 293 { 294 cap_t task_cap = cap_get(TASK); 295 if (!(task_cap & CAP_PREEMPT_CONTROL) || !(task_cap & CAP_IRQ_REG)) 296 return EPERM; 297 298 if (irq < 0 || irq > 16) { 299 return EINVAL; 300 } 301 302 uint16_t irq_mask = (uint16_t)(1 << irq); 303 if (enable) { 304 trap_virtual_enable_irqs(irq_mask); 305 } else { 306 trap_virtual_disable_irqs(irq_mask); 307 } 308 309 return 0; 310 } 311 285 312 /** @} 286 313 */ -
kernel/generic/src/ipc/irq.c
r15b592b rc47e1a8 149 149 (unative_t) devno 150 150 }; 151 152 printf("kernel ipc_irq_register() ... registering irq = %d\n", inr); 151 153 152 154 if (ucode) { … … 202 204 203 205 interrupts_restore(ipl); 206 207 printf("kernel ipc_irq_register() ... registering irq = %d was successful \n", inr); 208 204 209 return EOK; 205 210 } -
kernel/generic/src/syscall/syscall.c
r15b592b rc47e1a8 166 166 (syshandler_t) sys_iospace_enable, 167 167 (syshandler_t) sys_preempt_control, 168 (syshandler_t) sys_interrupt_enable, 168 169 169 170 /* Sysinfo syscalls */ -
uspace/Makefile
r15b592b rc47e1a8 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 \ … … 109 113 110 114 ifeq ($(UARCH),ia32) 111 DIRS += srv/hw/bus/pci 115 DIRS += srv/drivers/rootia32 116 DIRS += srv/drivers/pciintel 117 DIRS += srv/drivers/isa 118 DIRS += srv/drivers/ns8250 119 # DIRS += srv/hw/bus/pci 112 120 endif 113 121 … … 132 140 lib/softint \ 133 141 lib/softfloat \ 142 lib/drv \ 134 143 lib/socket \ 135 144 lib/net -
uspace/Makefile.common
r15b592b rc47e1a8 88 88 LIBPCI_PREFIX = $(LIB_PREFIX)/pci 89 89 90 LIBDRV_PREFIX = $(LIB_PREFIX)/drv 91 90 92 LIBSOCKET_PREFIX = $(LIB_PREFIX)/socket 91 93 LIBNET_PREFIX = $(LIB_PREFIX)/net -
uspace/app/init/init.c
r15b592b rc47e1a8 307 307 getterm("term/vc5", "/app/bdsh"); 308 308 getterm("term/vc6", "/app/klog"); 309 getterm("term/vc7", "/srv/devman"); 309 310 310 311 return 0; -
uspace/app/trace/syscalls.c
r15b592b rc47e1a8 74 74 [SYS_IOSPACE_ENABLE] = { "iospace_enable", 1, V_ERRNO }, 75 75 [SYS_PREEMPT_CONTROL] = { "preempt_control", 1, V_ERRNO }, 76 [SYS_INTERRUPT_ENABLE] = { "interrupt_enable", 2, V_ERRNO }, 76 77 77 78 [SYS_SYSINFO_GET_TAG] = { "sysinfo_get_tag", 2, V_INTEGER }, -
uspace/lib/c/Makefile
r15b592b rc47e1a8 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
r15b592b rc47e1a8 105 105 } 106 106 107 /** Enable an interrupt. 108 * 109 * @param irq the interrupt. 110 * 111 * @return Zero on success, negative error code otherwise. 112 */ 113 int interrupt_enable(int irq) 114 { 115 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 1); 116 } 117 118 /** Disable an interrupt. 119 * 120 * @param irq the interrupt. 121 * 122 * @return Zero on success, negative error code otherwise. 123 */ 124 int interrupt_disable(int irq) 125 { 126 return __SYSCALL2(SYS_INTERRUPT_ENABLE, (sysarg_t) irq, 0); 127 } 128 107 129 /** Enable PIO for specified I/O range. 108 130 * -
uspace/lib/c/include/ddi.h
r15b592b rc47e1a8 43 43 extern int preemption_control(int); 44 44 extern int pio_enable(void *, size_t, void **); 45 extern int interrupt_enable(int); 46 extern int interrupt_disable(int); 45 47 46 48 #endif -
uspace/lib/c/include/ipc/services.h
r15b592b rc47e1a8 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.