Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes in / [15817089:fd608dc] in mainline


Ignore:
Files:
137 added
110 deleted
140 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r15817089 rfd608dc  
    3131
    3232CSCOPE = cscope
    33 STANSE = stanse
     33CONFIG = tools/config.py
    3434
    35 .PHONY: all config config_default distclean clean cscope stanse
     35.PHONY: all config config_default distclean clean cscope precheck
    3636
    3737all: Makefile.config config.h config.defs
    38         $(MAKE) -C kernel
    39         $(MAKE) -C uspace
    40         $(MAKE) -C boot
     38        $(MAKE) -C kernel PRECHECK=$(PRECHECK)
     39        $(MAKE) -C uspace PRECHECK=$(PRECHECK)
     40        $(MAKE) -C boot PRECHECK=$(PRECHECK)
    4141
    42 stanse: Makefile.config config.h config.defs
    43         $(MAKE) -C kernel clean
    44         $(MAKE) -C kernel EXTRA_TOOL=stanse
    45         $(STANSE) --checker ReachabilityChecker --jobfile kernel/kernel.job
     42precheck: clean
     43        $(MAKE) all PRECHECK=y
    4644
    4745cscope:
     
    5553
    5654config_default: HelenOS.config
    57         tools/config.py HelenOS.config default
     55        $(CONFIG) HelenOS.config default
    5856
    5957config: HelenOS.config
    60         tools/config.py HelenOS.config
     58        $(CONFIG) HelenOS.config
    6159
    6260distclean: clean
  • boot/Makefile.common

    r15817089 rfd608dc  
    2727#
    2828
     29-include ../Makefile.config
     30
    2931TMP = distroot
    3032INITRD = initrd
     
    4547
    4648RD_SRVS = \
    47         $(USPACEDIR)/srv/fb/fb \
    48         $(USPACEDIR)/srv/kbd/kbd \
    49         $(USPACEDIR)/srv/console/console \
     49        $(USPACEDIR)/srv/bd/file_bd/file_bd \
     50        $(USPACEDIR)/srv/bd/part/mbr_part/mbr_part \
    5051        $(USPACEDIR)/srv/clip/clip \
     52        $(USPACEDIR)/srv/hid/fb/fb \
     53        $(USPACEDIR)/srv/hid/kbd/kbd \
     54        $(USPACEDIR)/srv/hid/console/console \
    5155        $(USPACEDIR)/srv/fs/devfs/devfs \
    5256        $(USPACEDIR)/srv/fs/tmpfs/tmpfs \
    53         $(USPACEDIR)/srv/fs/fat/fat \
    54         $(USPACEDIR)/srv/bd/file_bd/file_bd \
    55         $(USPACEDIR)/srv/part/mbr_part/mbr_part
     57        $(USPACEDIR)/srv/fs/fat/fat
    5658
    5759RD_APPS = \
     60        $(USPACEDIR)/app/bdsh/bdsh \
    5861        $(USPACEDIR)/app/edit/edit \
    5962        $(USPACEDIR)/app/getterm/getterm \
     63        $(USPACEDIR)/app/klog/klog \
     64        $(USPACEDIR)/app/mkfat/mkfat \
    6065        $(USPACEDIR)/app/redir/redir \
     66        $(USPACEDIR)/app/tester/tester \
    6167        $(USPACEDIR)/app/tetris/tetris \
    62         $(USPACEDIR)/app/tester/tester \
    63         $(USPACEDIR)/app/trace/trace \
    64         $(USPACEDIR)/app/klog/klog \
    65         $(USPACEDIR)/app/bdsh/bdsh
     68        $(USPACEDIR)/app/trace/trace
    6669
    6770COMPONENTS = \
    6871        $(KERNELDIR)/kernel.bin \
    6972        $(USPACEDIR)/srv/ns/ns \
     73        $(USPACEDIR)/srv/loader/loader \
    7074        $(USPACEDIR)/app/init/init \
    71         $(USPACEDIR)/srv/loader/loader \
    7275        $(USPACEDIR)/srv/devmap/devmap \
    7376        $(USPACEDIR)/srv/bd/rd/rd \
  • boot/arch/amd64/Makefile.inc

    r15817089 rfd608dc  
    3030
    3131RD_SRVS += \
    32         $(USPACEDIR)/srv/pci/pci \
    33         $(USPACEDIR)/srv/bd/ata_bd/ata_bd
     32        $(USPACEDIR)/srv/bd/ata_bd/ata_bd \
     33        $(USPACEDIR)/srv/hw/char/i8042/i8042 \
     34        $(USPACEDIR)/srv/hw/bus/pci/pci \
     35        $(USPACEDIR)/srv/hid/c_mouse/c_mouse
    3436
    3537MODULES := $(notdir $(COMPONENTS))
  • boot/arch/arm32/Makefile.inc

    r15817089 rfd608dc  
    3030
    3131$(BASE)/image.boot:
    32         $(MAKE) -C arch/$(BARCH)/loader
     32        $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK)
    3333        cp arch/$(BARCH)/loader/image.boot $@
    3434
  • boot/arch/arm32/loader/Makefile

    r15817089 rfd608dc  
    3434all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
     
    4343                rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
    4444        done
    45         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
     45        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
    4646        find . -name '*.o' -follow -exec rm \{\} \;
    4747        find . -name '*.co' -follow -exec rm \{\} \;
  • boot/arch/arm32/loader/Makefile.build

    r15817089 rfd608dc  
    6565%.o: %.S $(DEPEND)
    6666        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     67ifeq ($(PRECHECK),y)
     68        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     69endif
    6770
    6871%.o: %.c $(DEPEND)
    6972        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     73ifeq ($(PRECHECK),y)
     74        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     75endif
    7076
    7177$(DEPEND):
  • boot/arch/arm32/loader/Makefile.common

    r15817089 rfd608dc  
    3535DEPEND = Makefile.depend
    3636DEPEND_PREV = $(DEPEND).prev
     37JOB = image.job
    3738OUTPUT = image.boot
    3839
  • boot/arch/arm32/loader/Makefile.toolchain

    r15817089 rfd608dc  
    3939TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin
    4040
     41JOBFILE = ../../../../tools/jobfile.py
     42
    4143ifeq ($(COMPILER),gcc_native)
    4244        CC = gcc
  • boot/arch/ia64/Makefile.inc

    r15817089 rfd608dc  
    3030
    3131$(BASE)/image.boot:
    32         $(MAKE) -C arch/$(BARCH)/loader
     32        $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK)
    3333        cp arch/$(BARCH)/loader/image.boot $@
    3434
  • boot/arch/ia64/loader/Makefile

    r15817089 rfd608dc  
    2929
    3030include Makefile.common
     31include ../../../../Makefile.config
    3132
    3233.PHONY: all clean
     
    3435all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3536        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     37        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3738
    3839clean:
     
    4546                rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
    4647        done
    47         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(HELLO) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
     48        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(HELLO) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
    4849        find . -name '*.o' -follow -exec rm \{\} \;
    4950        find . -name '*.co' -follow -exec rm \{\} \;
  • boot/arch/ia64/loader/Makefile.build

    r15817089 rfd608dc  
    6666%.o: %.S $(DEPEND)
    6767        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     68ifeq ($(PRECHECK),y)
     69        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     70endif
    6871
    6972%.o: %.c $(DEPEND)
    7073        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     74ifeq ($(PRECHECK),y)
     75        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     76endif
    7177
    7278$(DEPEND):
  • boot/arch/ia64/loader/Makefile.common

    r15817089 rfd608dc  
    3131#
    3232
     33include ../../../../Makefile.config
    3334include ../../../Makefile.common
    3435
    3536DEPEND = Makefile.depend
    3637DEPEND_PREV = $(DEPEND).prev
     38JOB = image.job
    3739OUTPUT = image.boot
    3840HELLO = hello.efi
     
    4345KERNELDIR = ../../../../kernel
    4446USPACEDIR = ../../../../uspace
     47
     48ifeq ($(MACHINE),i460GX)
     49        RD_SRVS += \
     50                $(USPACEDIR)/srv/hw/char/i8042/i8042 \
     51                $(USPACEDIR)/srv/hid/c_mouse/c_mouse
     52endif
  • boot/arch/ia64/loader/Makefile.toolchain

    r15817089 rfd608dc  
    3939TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin
    4040
     41JOBFILE = ../../../../tools/jobfile.py
     42
    4143ifeq ($(COMPILER),gcc_native)
    4244        CC = gcc
  • boot/arch/mips32/Makefile.inc

    r15817089 rfd608dc  
    3030
    3131$(BASE)/image.boot:
    32         $(MAKE) -C arch/$(BARCH)/loader
     32        $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK)
    3333        cp arch/$(BARCH)/loader/image.boot $@
    3434
  • boot/arch/mips32/loader/Makefile

    r15817089 rfd608dc  
    3434all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
     
    4343                rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
    4444        done
    45         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
     45        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(RAW) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
    4646        find . -name '*.o' -follow -exec rm \{\} \;
    4747        find . -name '*.co' -follow -exec rm \{\} \;
  • boot/arch/mips32/loader/Makefile.build

    r15817089 rfd608dc  
    6666%.o: %.S $(DEPEND)
    6767        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     68ifeq ($(PRECHECK),y)
     69        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     70endif
    6871
    6972%.o: %.c $(DEPEND)
    7073        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     74ifeq ($(PRECHECK),y)
     75        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     76endif
    7177
    7278$(DEPEND):
  • boot/arch/mips32/loader/Makefile.common

    r15817089 rfd608dc  
    3636DEPEND_PREV = $(DEPEND).prev
    3737RAW = image.raw
     38JOB = image.job
    3839OUTPUT = image.boot
    3940
  • boot/arch/mips32/loader/Makefile.toolchain

    r15817089 rfd608dc  
    3737TARGET = mipsel-linux-gnu
    3838TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin
     39
     40JOBFILE = ../../../../tools/jobfile.py
    3941
    4042ifeq ($(MACHINE),lgxemul)
  • boot/arch/ppc32/Makefile.inc

    r15817089 rfd608dc  
    4242
    4343arch/$(BARCH)/loader/image.boot:
    44         $(MAKE) -C arch/$(BARCH)/loader
     44        $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK)
    4545
    4646clean: generic_clean
  • boot/arch/ppc32/loader/Makefile

    r15817089 rfd608dc  
    3434all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
     
    4343                rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
    4444        done
    45         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
     45        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
    4646        find . -name '*.o' -follow -exec rm \{\} \;
    4747        find . -name '*.co' -follow -exec rm \{\} \;
  • boot/arch/ppc32/loader/Makefile.build

    r15817089 rfd608dc  
    6666%.o: %.S $(DEPEND)
    6767        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     68ifeq ($(PRECHECK),y)
     69        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     70endif
    6871
    6972%.o: %.c $(DEPEND)
    7073        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     74ifeq ($(PRECHECK),y)
     75        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     76endif
    7177
    7278$(DEPEND):
  • boot/arch/ppc32/loader/Makefile.common

    r15817089 rfd608dc  
    3535DEPEND = Makefile.depend
    3636DEPEND_PREV = $(DEPEND).prev
     37JOB = image.job
    3738OUTPUT = image.boot
    3839
  • boot/arch/ppc32/loader/Makefile.toolchain

    r15817089 rfd608dc  
    3939TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin
    4040
     41JOBFILE = ../../../../tools/jobfile.py
     42
    4143ifeq ($(COMPILER),gcc_native)
    4244        CC = gcc
  • boot/arch/sparc64/Makefile.inc

    r15817089 rfd608dc  
    5555
    5656arch/$(BARCH)/loader/image.boot:
    57         $(MAKE) -C arch/$(BARCH)/loader
     57        $(MAKE) -C arch/$(BARCH)/loader PRECHECK=$(PRECHECK)
    5858
    5959clean: generic_clean
  • boot/arch/sparc64/loader/Makefile

    r15817089 rfd608dc  
    3434all: ../../../../version ../../../../Makefile.config ../../../../config.h ../../../../config.defs
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
     
    4343                rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
    4444        done
    45         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
     45        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(COMPS).h $(COMPS).c $(LINK) $(INITRD).img $(INITRD).fs
    4646        find . -name '*.o' -follow -exec rm \{\} \;
    4747        find . -name '*.co' -follow -exec rm \{\} \;
  • boot/arch/sparc64/loader/Makefile.build

    r15817089 rfd608dc  
    7777%.o: %.S $(DEPEND)
    7878        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     79ifeq ($(PRECHECK),y)
     80        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     81endif
    7982
    8083%.o: %.c $(DEPEND)
    8184        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     85ifeq ($(PRECHECK),y)
     86        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     87endif
    8288
    8389$(DEPEND):
  • boot/arch/sparc64/loader/Makefile.common

    r15817089 rfd608dc  
    3535DEPEND = Makefile.depend
    3636DEPEND_PREV = $(DEPEND).prev
     37JOB = image.job
    3738OUTPUT = image.boot
    3839
     
    4546RD_SRVS_GENERIC = \
    4647        $(USPACEDIR)/srv/fs/fat/fat \
    47         $(USPACEDIR)/srv/cir/fhc/fhc \
    48         $(USPACEDIR)/srv/cir/obio/obio
     48        $(USPACEDIR)/srv/hw/cir/fhc/fhc \
     49        $(USPACEDIR)/srv/hw/cir/obio/obio
    4950
    5051RD_APPS_GENERIC = \
  • boot/arch/sparc64/loader/Makefile.toolchain

    r15817089 rfd608dc  
    3939TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin
    4040
     41JOBFILE = ../../../../tools/jobfile.py
     42
    4143ifeq ($(COMPILER),gcc_native)
    4244        CC = gcc
  • kernel/Makefile

    r15817089 rfd608dc  
    3333all: ../version ../Makefile.config ../config.h ../config.defs
    3434        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    35         $(MAKE) -f Makefile.build EXTRA_TOOL=$(EXTRA_TOOL)
     35        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3636
    3737clean:
    3838        rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(ARCH_INCLUDE) $(GENARCH_INCLUDE) arch/*/_link.ld
    3939        find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \;
    40         find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o.preproc' -follow -exec rm \{\} \;
  • kernel/Makefile.build

    r15817089 rfd608dc  
    376376%.o: %.S $(DEPEND)
    377377        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
     378ifeq ($(PRECHECK),y)
     379        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(GCC_CFLAGS) -D__ASM__
     380endif
    378381
    379382%.o: %.s $(DEPEND)
    380383        $(AS) $(AFLAGS) $< -o $@
     384ifeq ($(PRECHECK),y)
     385        $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)
     386endif
    381387
    382388#
     
    386392test/fpu/%.o: test/fpu/%.c $(DEPEND)
    387393        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) -c $< -o $@
    388 ifeq ($(EXTRA_TOOL),stanse)
    389         ../tools/jobfile.py $(JOB) $< $@ $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)
     394ifeq ($(PRECHECK),y)
     395        $(JOBFILE) $(JOB) $< $@ cc test $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)
    390396endif
    391397
     
    395401%.o: %.c $(DEPEND)
    396402        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) -c $< -o $@
    397 ifeq ($(EXTRA_TOOL),stanse)
    398         ../tools/jobfile.py $(JOB) $< $@ $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
     403ifeq ($(PRECHECK),y)
     404        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
    399405endif
    400406
     
    406412        $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) -o $@ -Map $(MAP_PREV)
    407413        $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP)
    408         tools/genmap.py $(MAP_PREV) $(DUMP) $@
     414        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    409415       
    410416        # Do it once again, this time to get correct even the symbols
     
    414420        $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) -o $@ -Map $(MAP_PREV)
    415421        $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP)
    416         tools/genmap.py $(MAP_PREV) $(DUMP) $@
     422        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    417423
    418424$(DEPEND): $(ARCH_INCLUDE) $(GENARCH_INCLUDE)
  • kernel/Makefile.common

    r15817089 rfd608dc  
    4444ARCH_INCLUDE = generic/include/arch
    4545GENARCH_INCLUDE = generic/include/genarch
     46
     47GENMAP = tools/genmap.py
     48JOBFILE = ../tools/jobfile.py
  • kernel/arch/amd64/_link.ld.in

    r15817089 rfd608dc  
    4444                *(COMMON);              /* global variables */
    4545
     46                . = ALIGN(8);
    4647                symbol_table = .;
    4748                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
  • kernel/arch/amd64/src/amd64.c

    r15817089 rfd608dc  
    212212                        i8042_wire(i8042_instance, kbrd);
    213213                        trap_virtual_enable_irqs(1 << IRQ_KBD);
     214                        trap_virtual_enable_irqs(1 << IRQ_MOUSE);
    214215                }
    215216        }
     
    219220         * self-sufficient.
    220221         */
    221         sysinfo_set_item_val("kbd", NULL, true);
    222         sysinfo_set_item_val("kbd.inr", NULL, IRQ_KBD);
    223         sysinfo_set_item_val("kbd.address.physical", NULL,
     222        sysinfo_set_item_val("i8042", NULL, true);
     223        sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD);
     224        sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE);
     225        sysinfo_set_item_val("i8042.address.physical", NULL,
    224226            (uintptr_t) I8042_BASE);
    225         sysinfo_set_item_val("kbd.address.kernel", NULL,
     227        sysinfo_set_item_val("i8042.address.kernel", NULL,
    226228            (uintptr_t) I8042_BASE);
    227229#endif
  • kernel/arch/amd64/src/boot/boot.S

    r15817089 rfd608dc  
    333333
    334334extended_cpuid_msg:
    335         .asciz "Extended CPUID not supported. System halted."
     335        .asciz "Error: Extended CPUID not supported -- CPU is not 64-bit. System halted."
    336336long_mode_msg:
    337         .asciz "64 bit long mode not supported. System halted."
     337        .asciz "Error: 64-bit long mode not supported. System halted."
    338338noexecute_msg:
    339         .asciz "No-execute pages not supported. System halted."
     339        .asciz "Error: No-execute pages not supported. System halted."
    340340fx_msg:
    341         .asciz "FXSAVE/FXRESTORE instructions not supported. System halted."
     341        .asciz "Error: FXSAVE/FXRESTORE instructions not supported. System halted."
    342342sse2_msg:
    343         .asciz "SSE2 instructions not supported. System halted."
     343        .asciz "Error: SSE2 instructions not supported. System halted."
  • kernel/arch/arm32/_link.ld.in

    r15817089 rfd608dc  
    3434                *(.sdata);
    3535                *(.reginfo);
     36                . = ALIGN(8);
    3637                symbol_table = .;
    3738                *(symtab.*);
  • kernel/arch/ia32/_link.ld.in

    r15817089 rfd608dc  
    4242                hardcoded_unmapped_kdata_size = .;
    4343                LONG(unmapped_kdata_end - unmapped_kdata_start);
     44                . = ALIGN(8);
    4445                symbol_table = .;
    4546                *(symtab.*);            /* Symbol table, must be LAST symbol! */
  • kernel/arch/ia32/src/ia32.c

    r15817089 rfd608dc  
    170170                        i8042_wire(i8042_instance, kbrd);
    171171                        trap_virtual_enable_irqs(1 << IRQ_KBD);
     172                        trap_virtual_enable_irqs(1 << IRQ_MOUSE);
    172173                }
    173174        }
     
    177178         * self-sufficient.
    178179         */
    179         sysinfo_set_item_val("kbd", NULL, true);
    180         sysinfo_set_item_val("kbd.inr", NULL, IRQ_KBD);
    181         sysinfo_set_item_val("kbd.address.physical", NULL,
     180        sysinfo_set_item_val("i8042", NULL, true);
     181        sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD);
     182        sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE);
     183        sysinfo_set_item_val("i8042.address.physical", NULL,
    182184            (uintptr_t) I8042_BASE);
    183         sysinfo_set_item_val("kbd.address.kernel", NULL,
     185        sysinfo_set_item_val("i8042.address.kernel", NULL,
    184186            (uintptr_t) I8042_BASE);
    185187#endif
  • kernel/arch/ia64/_link.ld.in

    r15817089 rfd608dc  
    3737                *(COMMON);
    3838
     39                . = ALIGN(8);
    3940                symbol_table = .;
    4041                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
  • kernel/arch/ia64/include/mm/asid.h

    r15817089 rfd608dc  
    5050 * but those extra bits are not used by the kernel.
    5151 */
    52 #define RIDS_PER_ASID           7
     52#define RIDS_PER_ASID           8
    5353
    5454#define RID_MAX                 262143          /* 2^18 - 1 */
    55 #define RID_KERNEL              0
    56 #define RID_INVALID             1
     55#define RID_KERNEL7             7
    5756
    58 #define ASID2RID(asid, vrn)     (((asid)>RIDS_PER_ASID)?(((asid)*RIDS_PER_ASID)+(vrn)):(asid))
    59 #define RID2ASID(rid)           ((rid)/RIDS_PER_ASID)
     57#define ASID2RID(asid, vrn) \
     58        ((asid) * RIDS_PER_ASID + (vrn))
    6059
    61 #define ASID_MAX_ARCH           (RID_MAX/RIDS_PER_ASID)
     60#define RID2ASID(rid) \
     61        ((rid) / RIDS_PER_ASID)
     62
     63#define ASID_MAX_ARCH           (RID_MAX / RIDS_PER_ASID)
    6264
    6365#endif
  • kernel/arch/ia64/src/ia64.c

    r15817089 rfd608dc  
    203203        }
    204204       
    205         sysinfo_set_item_val("kbd", NULL, true);
    206         sysinfo_set_item_val("kbd.inr", NULL, IRQ_KBD);
    207         sysinfo_set_item_val("kbd.type", NULL, KBD_LEGACY);
    208         sysinfo_set_item_val("kbd.address.physical", NULL,
     205        sysinfo_set_item_val("i8042", NULL, true);
     206        sysinfo_set_item_val("i8042.inr_a", NULL, IRQ_KBD);
     207        sysinfo_set_item_val("i8042.inr_b", NULL, IRQ_MOUSE);
     208        sysinfo_set_item_val("i8042.address.physical", NULL,
    209209            (uintptr_t) I8042_BASE);
    210         sysinfo_set_item_val("kbd.address.kernel", NULL,
     210        sysinfo_set_item_val("i8042.address.kernel", NULL,
    211211            (uintptr_t) I8042_BASE);
    212212#endif
  • kernel/arch/ia64/src/mm/page.c

    r15817089 rfd608dc  
    7171
    7272        /*
    73          * First set up kernel region register.
    74          * This is redundant (see start.S) but we keep it here just for sure.
    75          */
    76         rr.word = rr_read(VRN_KERNEL);
    77         rr.map.ve = 0;                  /* disable VHPT walker */
    78         rr.map.ps = PAGE_WIDTH;
    79         rr.map.rid = ASID2RID(ASID_KERNEL, VRN_KERNEL);
    80         rr_write(VRN_KERNEL, rr.word);
    81         srlz_i();
    82         srlz_d();
    83 
    84         /*
    85          * And setup the rest of region register.
     73         * Set up kernel region registers.
     74         * VRN_KERNEL has already been set in start.S.
     75         * For paranoia reasons, we set it again.
    8676         */
    8777        for(i = 0; i < REGION_REGISTERS; i++) {
    88                 /* skip kernel rr */
    89                 if (i == VRN_KERNEL)
    90                         continue;
    91        
    9278                rr.word = rr_read(i);
    9379                rr.map.ve = 0;          /* disable VHPT walker */
    94                 rr.map.rid = RID_KERNEL;
     80                rr.map.rid = ASID2RID(ASID_KERNEL, i);
    9581                rr.map.ps = PAGE_WIDTH;
    9682                rr_write(i, rr.word);
  • kernel/arch/ia64/src/start.S

    r15817089 rfd608dc  
    7474        movl r10 = (RR_MASK)
    7575        and r9 = r10, r9
    76         movl r10 = ((RID_KERNEL << RID_SHIFT) | (KERNEL_PAGE_WIDTH << PS_SHIFT))
     76        movl r10 = (((RID_KERNEL7) << RID_SHIFT) | (KERNEL_PAGE_WIDTH << PS_SHIFT))
    7777        or r9 = r10, r9
    7878       
  • kernel/arch/mips32/_link.ld.in

    r15817089 rfd608dc  
    3838                *(.bss);                        /* uninitialized static variables */
    3939                *(COMMON);                      /* global variables */
     40                . = ALIGN(8);
    4041                symbol_table = .;
    4142                *(symtab.*);
  • kernel/arch/ppc32/_link.ld.in

    r15817089 rfd608dc  
    5151                *(COMMON);      /* global variables */
    5252               
     53                . = ALIGN(8);
    5354                symbol_table = .;
    5455                *(symtab.*);    /* Symbol table, must be LAST symbol!*/
  • kernel/arch/sparc64/_link.ld.in

    r15817089 rfd608dc  
    3636                *(COMMON);                  /* global variables */
    3737               
     38                . = ALIGN(8);
    3839                symbol_table = .;
    3940                *(symtab.*);                /* Symbol table, must be LAST symbol!*/
  • tools/jobfile.py

    r15817089 rfd608dc  
    2828#
    2929"""
    30 Add a source/object file pair to a Stanse jobfile
     30Add a source/object file pair to a checker jobfile
    3131"""
    3232
     
    3737def usage(prname):
    3838        "Print usage syntax"
    39         print prname + " <JOBFILE> <SOURCE> <OBJECT> [OPTIONS ...]"
     39        print prname + " <JOBFILE> <SOURCE> <TARGET> <TOOL> <CATEGORY> [OPTIONS ...]"
    4040
    4141def main():
    42         if (len(sys.argv) < 4):
     42        if (len(sys.argv) < 6):
    4343                usage(sys.argv[0])
    4444                return
     
    4646        jobfname = sys.argv[1]
    4747        srcfname = sys.argv[2]
    48         objfname = sys.argv[3]
     48        tgtfname = sys.argv[3]
     49        toolname = sys.argv[4]
     50        category = sys.argv[5]
    4951        cwd = os.getcwd()
    50         options = " ".join(sys.argv[4:])
     52        options = " ".join(sys.argv[6:])
    5153       
    5254        jobfile = file(jobfname, "a")
    5355        fcntl.lockf(jobfile, fcntl.LOCK_EX)
    54         jobfile.write("{%s},{%s},{%s},{%s}\n" % (srcfname, objfname, cwd, options))
     56        jobfile.write("{%s},{%s},{%s},{%s},{%s},{%s}\n" % (srcfname, tgtfname, toolname, category, cwd, options))
    5557        fcntl.lockf(jobfile, fcntl.LOCK_UN)
    5658        jobfile.close()
  • tools/xtui.py

    r15817089 rfd608dc  
    213213                        sys.stdout.write("Selection[%s]: " % str(position + 1))
    214214                else:
    215                         sys.stdout.write("Selection: ")
     215                        if (cnt > 0):
     216                                sys.stdout.write("Selection[1]: ")
     217                        else:
     218                                sys.stdout.write("Selection[0]: ")
    216219                inp = sys.stdin.readline()
    217220               
     
    222225                        if (position != None):
    223226                                return (None, position)
    224                         continue
     227                        else:
     228                                if (cnt > 0):
     229                                        inp = '1'
     230                                else:
     231                                        inp = '0'
    225232               
    226233                if (inp.strip() == 'q'):
  • uspace/Makefile

    r15817089 rfd608dc  
    3333
    3434DIRS = \
     35        app/bdsh \
     36        app/edit \
     37        app/getterm \
     38        app/init \
     39        app/klog \
     40        app/mkfat \
     41        app/redir \
     42        app/tester \
     43        app/tetris \
     44        app/trace \
     45        srv/clip \
     46        srv/devmap \
     47        srv/loader \
     48        srv/ns \
     49        srv/vfs \
    3550        srv/bd/ata_bd \
    3651        srv/bd/file_bd \
    3752        srv/bd/gxe_bd \
    3853        srv/bd/rd \
    39         srv/ns \
    40         srv/loader \
    41         srv/fb \
    42         srv/kbd \
    43         srv/console \
     54        srv/bd/part/mbr_part \
    4455        srv/fs/fat \
    4556        srv/fs/tmpfs \
    4657        srv/fs/devfs \
    47         srv/vfs \
    48         srv/devmap \
    49         srv/part/mbr_part \
    50         srv/clip \
    51         app/edit \
    52         app/tetris \
    53         app/tester \
    54         app/trace \
    55         app/klog \
    56         app/init \
    57         app/getterm \
    58         app/redir \
    59         app/bdsh
     58        srv/hid/console \
     59        srv/hid/c_mouse \
     60        srv/hid/fb \
     61        srv/hid/kbd \
     62        srv/hw/char/i8042
    6063
    6164ifeq ($(UARCH),amd64)
    62         DIRS += srv/pci
     65        DIRS += srv/hw/bus/pci
    6366endif
    6467
    6568ifeq ($(UARCH),ia32)
    66         DIRS += srv/pci
     69        DIRS += srv/hw/bus/pci
    6770endif
    6871
    6972ifeq ($(UARCH),sparc64)
    7073        DIRS += \
    71                 srv/cir/fhc \
    72                 srv/cir/obio
     74                srv/hw/cir/fhc \
     75                srv/hw/cir/obio
    7376endif
    7477
     
    9699
    97100$(BUILDS): $(LIBC_BUILD) $(LIBS_BUILD)
    98         $(MAKE) -C $(basename $@) all
     101        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
    99102
    100103$(LIBS_BUILD): $(LIBC_BUILD)
    101         $(MAKE) -C $(basename $@) all
     104        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
    102105
    103106$(LIBC_BUILD):
    104         $(MAKE) -C $(basename $@) all
     107        $(MAKE) -C $(basename $@) all PRECHECK=$(PRECHECK)
  • uspace/app/bdsh/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/bdsh/Makefile.build

    r15817089 rfd608dc  
    4242        cmds/modules/help/help.c \
    4343        cmds/modules/mkdir/mkdir.c \
     44        cmds/modules/mkfile/mkfile.c \
    4445        cmds/modules/rm/rm.c \
    4546        cmds/modules/bdd/bdd.c \
     
    7980%.o: %.c $(DEPEND)
    8081        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     82ifeq ($(PRECHECK),y)
     83        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     84endif
    8185
    8286$(DEPEND):
  • uspace/app/bdsh/Makefile.common

    r15817089 rfd608dc  
    3838DEPEND = Makefile.depend
    3939DEPEND_PREV = $(DEPEND).prev
     40JOB = bdsh.job
    4041OUTPUT = bdsh
  • uspace/app/bdsh/cmds/modules/modules.h

    r15817089 rfd608dc  
    2020#include "help/entry.h"
    2121#include "mkdir/entry.h"
     22#include "mkfile/entry.h"
    2223#include "rm/entry.h"
    2324#include "bdd/entry.h"
     
    3940#include "help/help_def.h"
    4041#include "mkdir/mkdir_def.h"
     42#include "mkfile/mkfile_def.h"
    4143#include "rm/rm_def.h"
    4244#include "bdd/bdd_def.h"
  • uspace/app/edit/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/edit/Makefile.build

    r15817089 rfd608dc  
    5757%.o: %.c $(DEPEND)
    5858        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     59ifeq ($(PRECHECK),y)
     60        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     61endif
    5962
    6063$(DEPEND):
  • uspace/app/edit/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = edit.job
    3940OUTPUT = edit
  • uspace/app/edit/edit.c

    r15817089 rfd608dc  
    9898static bool done;
    9999static pane_t pane;
     100static bool cursor_visible;
    100101
    101102static int scr_rows, scr_columns;
     
    108109/** Maximum filename length that can be entered. */
    109110#define INFNAME_MAX_LEN 128
     111
     112static void cursor_show(void);
     113static void cursor_hide(void);
     114static void cursor_setvis(bool visible);
    110115
    111116static void key_handle_unmod(console_event_t const *ev);
     
    199204
    200205        /* Initial display */
     206        cursor_visible = true;
     207
     208        cursor_hide();
    201209        console_clear(con);
    202210        pane_text_display();
     
    205213                status_display("File not found. Starting empty file.");
    206214        pane_caret_display();
    207 
     215        cursor_show();
    208216
    209217        done = false;
     
    230238                /* Redraw as necessary. */
    231239
     240                cursor_hide();
     241
    232242                if (pane.rflags & REDRAW_TEXT)
    233243                        pane_text_display();
     
    238248                if (pane.rflags & REDRAW_CARET)
    239249                        pane_caret_display();
     250
     251                cursor_show();
    240252        }
    241253
     
    243255
    244256        return 0;
     257}
     258
     259static void cursor_show(void)
     260{
     261        cursor_setvis(true);
     262}
     263
     264static void cursor_hide(void)
     265{
     266        cursor_setvis(false);
     267}
     268
     269static void cursor_setvis(bool visible)
     270{
     271        if (cursor_visible != visible) {
     272                console_cursor_visibility(con, visible);
     273                cursor_visible = visible;
     274        }
    245275}
    246276
  • uspace/app/getterm/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../version $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/getterm/Makefile.build

    r15817089 rfd608dc  
    6060%.o: %.c $(DEPEND)
    6161        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     62ifeq ($(PRECHECK),y)
     63        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     64endif
    6265
    6366$(DEPEND):
  • uspace/app/getterm/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = getterm.job
    3940OUTPUT = getterm
  • uspace/app/init/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/init/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/app/init/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = init.job
    3940OUTPUT = init
  • uspace/app/init/init.c

    r15817089 rfd608dc  
    265265        spawn("/srv/fhc");
    266266        spawn("/srv/obio");
     267        srv_start("/srv/i8042");
     268        srv_start("/srv/c_mouse");
    267269
    268270        spawn("/srv/fb");
  • uspace/app/klog/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/klog/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/app/klog/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = klog.job
    3940OUTPUT = klog
  • uspace/app/redir/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../version $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/redir/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/app/redir/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = redir.job
    3940OUTPUT = redir
  • uspace/app/tester/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/tester/Makefile.build

    r15817089 rfd608dc  
    7373%.o: %.c $(DEPEND)
    7474        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     75ifeq ($(PRECHECK),y)
     76        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     77endif
    7578
    7679$(DEPEND):
  • uspace/app/tester/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = tester.job
    3940OUTPUT = tester
  • uspace/app/tetris/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/tetris/Makefile.build

    r15817089 rfd608dc  
    6060%.o: %.c $(DEPEND)
    6161        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     62ifeq ($(PRECHECK),y)
     63        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     64endif
    6265
    6366$(DEPEND):
  • uspace/app/tetris/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = tetris.job
    3940OUTPUT = tetris
  • uspace/app/trace/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/app/trace/Makefile.build

    r15817089 rfd608dc  
    6161%.o: %.c $(DEPEND)
    6262        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     63ifeq ($(PRECHECK),y)
     64        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     65endif
    6366
    6467$(DEPEND):
  • uspace/app/trace/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = trace.job
    3940OUTPUT = trace
  • uspace/lib/libblock/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(LIBBLOCK)
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBBLOCK)
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/lib/libblock/Makefile.build

    r15817089 rfd608dc  
    5353%.o: %.c $(DEPEND)
    5454        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     55ifeq ($(PRECHECK),y)
     56        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     57endif
    5558
    5659$(DEPEND):
  • uspace/lib/libblock/Makefile.common

    r15817089 rfd608dc  
    3434DEPEND = Makefile.depend
    3535DEPEND_PREV = $(DEPEND).prev
     36JOB = libblock.job
    3637LIBBLOCK = libblock.a
  • uspace/lib/libblock/libblock.c

    r15817089 rfd608dc  
    8787static int write_blocks(devcon_t *devcon, bn_t ba, size_t cnt);
    8888static int get_block_size(int dev_phone, size_t *bsize);
     89static int get_num_blocks(int dev_phone, bn_t *nblocks);
    8990
    9091static devcon_t *devcon_search(dev_handle_t dev_handle)
     
    714715
    715716        memcpy(devcon->comm_area, data, devcon->pblock_size * cnt);
    716         rc = read_blocks(devcon, ba, cnt);
     717        rc = write_blocks(devcon, ba, cnt);
    717718
    718719        fibril_mutex_unlock(&devcon->comm_area_lock);
     
    736737       
    737738        return get_block_size(devcon->dev_phone, bsize);
     739}
     740
     741/** Get number of blocks on device.
     742 *
     743 * @param dev_handle    Device handle of the block device.
     744 * @param nblocks       Output number of blocks.
     745 *
     746 * @return              EOK on success or negative error code on failure.
     747 */
     748int block_get_nblocks(dev_handle_t dev_handle, bn_t *nblocks)
     749{
     750        devcon_t *devcon;
     751
     752        devcon = devcon_search(dev_handle);
     753        assert(devcon);
     754       
     755        return get_num_blocks(devcon->dev_phone, nblocks);
    738756}
    739757
     
    789807}
    790808
     809/** Get total number of blocks on block device. */
     810static int get_num_blocks(int dev_phone, bn_t *nblocks)
     811{
     812        ipcarg_t nb_l, nb_h;
     813        int rc;
     814
     815        rc = async_req_0_2(dev_phone, BD_GET_NUM_BLOCKS, &nb_l, &nb_h);
     816        if (rc == EOK) {
     817                *nblocks = (bn_t) MERGE_LOUP32(nb_l, nb_h);
     818        }
     819
     820        return rc;
     821}
     822
    791823/** @}
    792824 */
  • uspace/lib/libblock/libblock.h

    r15817089 rfd608dc  
    6060#define BLOCK_FLAGS_NOREAD      1
    6161
    62 typedef uint64_t bn_t;  /**< Block number type. */
    63 
    6462typedef struct block {
    6563        /** Mutex protecting the reference count. */
     
    110108
    111109extern int block_get_bsize(dev_handle_t, size_t *);
     110extern int block_get_nblocks(dev_handle_t, bn_t *);
    112111extern int block_read_direct(dev_handle_t, bn_t, size_t, void *);
    113112extern int block_write_direct(dev_handle_t, bn_t, size_t, const void *);
  • uspace/lib/libc/Makefile

    r15817089 rfd608dc  
    3333all: ../../../Makefile.config ../../../config.h ../../../config.defs
    3434        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    35         $(MAKE) -f Makefile.build
     35        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3636
    3737clean:
    38         rm -f $(DEPEND) $(DEPEND_PREV) $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(LIBC) arch/*/_link.ld
     38        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(LIBC) arch/*/_link.ld
    3939        find generic/ arch/*/ -name '*.o' -follow -exec rm \{\} \;
  • uspace/lib/libc/Makefile.build

    r15817089 rfd608dc  
    112112%.o: %.S $(DEPEND)
    113113        $(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
     114ifeq ($(PRECHECK),y)
     115        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__
     116endif
    114117
    115118%.o: %.s $(DEPEND)
    116119        $(AS) $(AFLAGS) $< -o $@
     120ifeq ($(PRECHECK),y)
     121        $(JOBFILE) $(JOB) $< $@ as asm $(AFLAGS)
     122endif
    117123
    118124%.o: %.c $(DEPEND)
    119125        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     126ifeq ($(PRECHECK),y)
     127        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     128endif
    120129
    121130$(DEPEND): $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH)
  • uspace/lib/libc/Makefile.common

    r15817089 rfd608dc  
    3333DEPEND = Makefile.depend
    3434DEPEND_PREV = $(DEPEND).prev
     35JOB = libc.job
    3536LIBC = libc.a
    3637INCLUDE_KERNEL = include/kernel
  • uspace/lib/libc/Makefile.toolchain

    r15817089 rfd608dc  
    7878#
    7979
     80JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
     81
    8082ifeq ($(COMPILER),gcc_cross)
    8183        CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
  • uspace/lib/libc/generic/io/io.c

    r15817089 rfd608dc  
    554554}
    555555
     556int ftell(FILE *stream)
     557{
     558        off_t rc = lseek(stream->fd, 0, SEEK_CUR);
     559        if (rc == (off_t) (-1)) {
     560                /* errno has been set by lseek. */
     561                return -1;
     562        }
     563
     564        return rc;
     565}
     566
    556567void rewind(FILE *stream)
    557568{
     
    584595}
    585596
     597void clearerr(FILE *stream)
     598{
     599        stream->eof = false;
     600        stream->error = false;
     601}
     602
    586603int fphone(FILE *stream)
    587604{
  • uspace/lib/libc/include/ipc/bd.h

    r15817089 rfd608dc  
    4040typedef enum {
    4141        BD_GET_BLOCK_SIZE = IPC_FIRST_USER_METHOD,
     42        BD_GET_NUM_BLOCKS,
    4243        BD_READ_BLOCKS,
    4344        BD_WRITE_BLOCKS
  • uspace/lib/libc/include/sys/types.h

    r15817089 rfd608dc  
    4040typedef long off_t;
    4141typedef int mode_t;
     42typedef uint64_t bn_t;  /**< Block number type. */
    4243
    4344typedef int32_t wchar_t;
  • uspace/lib/libfs/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(LIBFS)
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBFS)
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/lib/libfs/Makefile.build

    r15817089 rfd608dc  
    5353%.o: %.c $(DEPEND)
    5454        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     55ifeq ($(PRECHECK),y)
     56        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     57endif
    5558
    5659$(DEPEND):
  • uspace/lib/libfs/Makefile.common

    r15817089 rfd608dc  
    3434DEPEND = Makefile.depend
    3535DEPEND_PREV = $(DEPEND).prev
     36JOB = libfs.job
    3637LIBFS = libfs.a
  • uspace/lib/softfloat/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(LIBSOFTFLOAT)
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBSOFTFLOAT)
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/lib/softfloat/Makefile.build

    r15817089 rfd608dc  
    6363%.o: %.c $(DEPEND)
    6464        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     65ifeq ($(PRECHECK),y)
     66        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     67endif
    6568
    6669$(DEPEND):
  • uspace/lib/softfloat/Makefile.common

    r15817089 rfd608dc  
    3434DEPEND = Makefile.depend
    3535DEPEND_PREV = $(DEPEND).prev
     36JOB = softfloat.job
    3637LIBSOFTFLOAT = libsoftfloat.a
  • uspace/lib/softint/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBC_PREFIX)/libc.a
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(LIBSOFTINT)
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(LIBSOFTINT)
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/lib/softint/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/lib/softint/Makefile.common

    r15817089 rfd608dc  
    3434DEPEND = Makefile.depend
    3535DEPEND_PREV = $(DEPEND).prev
     36JOB = softint.job
    3637LIBSOFTINT = libsoftint.a
  • uspace/srv/bd/ata_bd/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/bd/ata_bd/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/srv/bd/ata_bd/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = ata_bd.job
    3940OUTPUT = ata_bd
  • uspace/srv/bd/ata_bd/ata_bd.c

    r15817089 rfd608dc  
    296296                        ipc_answer_1(callid, EOK, block_size);
    297297                        continue;
     298                case BD_GET_NUM_BLOCKS:
     299                        ipc_answer_2(callid, EOK, LOWER32(disk[disk_id].blocks),
     300                            UPPER32(disk[disk_id].blocks));
     301                        continue;
    298302                default:
    299303                        retval = EINVAL;
  • uspace/srv/bd/file_bd/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/bd/file_bd/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/srv/bd/file_bd/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = file_bd.job
    3940OUTPUT = file_bd
  • uspace/srv/bd/file_bd/file_bd.c

    r15817089 rfd608dc  
    5656
    5757static const size_t block_size = 512;
     58static bn_t num_blocks;
    5859static FILE *img;
    5960
     
    99100{
    100101        int rc;
     102        long img_size;
    101103
    102104        rc = devmap_driver_register(NAME, file_bd_connection);
     
    109111        if (img == NULL)
    110112                return EINVAL;
     113
     114        if (fseek(img, 0, SEEK_END) != 0) {
     115                fclose(img);
     116                return EIO;
     117        }
     118
     119        img_size = ftell(img);
     120        if (img_size < 0) {
     121                fclose(img);
     122                return EIO;
     123        }
     124
     125        num_blocks = img_size / block_size;
    111126
    112127        fibril_mutex_initialize(&dev_lock);
     
    174189                        ipc_answer_1(callid, EOK, block_size);
    175190                        continue;
     191                case BD_GET_NUM_BLOCKS:
     192                        ipc_answer_2(callid, EOK, LOWER32(num_blocks),
     193                            UPPER32(num_blocks));
     194                        continue;
    176195                default:
    177196                        retval = EINVAL;
     
    186205{
    187206        size_t n_rd;
     207        int rc;
    188208
    189209        fibril_mutex_lock(&dev_lock);
    190210
    191         fseek(img, ba * block_size, SEEK_SET);
     211        clearerr(img);
     212        rc = fseek(img, ba * block_size, SEEK_SET);
     213        if (rc < 0) {
     214                fibril_mutex_unlock(&dev_lock);
     215                return EIO;
     216        }
     217
    192218        n_rd = fread(buf, block_size, cnt, img);
    193219
     
    209235{
    210236        size_t n_wr;
     237        int rc;
    211238
    212239        fibril_mutex_lock(&dev_lock);
    213240
    214         fseek(img, ba * block_size, SEEK_SET);
    215         n_wr = fread(buf, block_size, cnt, img);
     241        clearerr(img);
     242        rc = fseek(img, ba * block_size, SEEK_SET);
     243        if (rc < 0) {
     244                fibril_mutex_unlock(&dev_lock);
     245                return EIO;
     246        }
     247
     248        n_wr = fwrite(buf, block_size, cnt, img);
    216249
    217250        if (ferror(img) || n_wr < cnt) {
    218251                fibril_mutex_unlock(&dev_lock);
    219252                return EIO;     /* Write error */
     253        }
     254
     255        if (fflush(img) != 0) {
     256                fibril_mutex_unlock(&dev_lock);
     257                return EIO;
    220258        }
    221259
  • uspace/srv/bd/gxe_bd/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/bd/gxe_bd/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/srv/bd/gxe_bd/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = gxe_bd.job
    3940OUTPUT = gxe_bd
  • uspace/srv/bd/gxe_bd/gxe_bd.c

    r15817089 rfd608dc  
    234234                        ipc_answer_1(callid, EOK, block_size);
    235235                        continue;
     236                case BD_GET_NUM_BLOCKS:
     237                        retval = ENOTSUP;
     238                        break;
    236239                default:
    237240                        retval = EINVAL;
  • uspace/srv/bd/rd/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/bd/rd/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/srv/bd/rd/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = rd.job
    3940OUTPUT = rd
  • uspace/srv/bd/rd/rd.c

    r15817089 rfd608dc  
    153153                        ipc_answer_1(callid, EOK, block_size);
    154154                        continue;
     155                case BD_GET_NUM_BLOCKS:
     156                        ipc_answer_2(callid, EOK, LOWER32(rd_size / block_size),
     157                            UPPER32(rd_size / block_size));
     158                        continue;
    155159                default:
    156160                        /*
  • uspace/srv/clip/Makefile

    r15817089 rfd608dc  
    3333all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3434        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    35         $(MAKE) -f Makefile.build
     35        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3636
    3737clean:
    38         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     38        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    3939        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/clip/Makefile.build

    r15817089 rfd608dc  
    5757%.o: %.c $(DEPEND)
    5858        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     59ifeq ($(PRECHECK),y)
     60        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     61endif
    5962
    6063$(DEPEND):
  • uspace/srv/clip/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = clip.job
    3940OUTPUT = clip
  • uspace/srv/devmap/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/devmap/Makefile.build

    r15817089 rfd608dc  
    5656%.o: %.c $(DEPEND)
    5757        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     58ifeq ($(PRECHECK),y)
     59        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     60endif
    5861
    5962$(DEPEND):
  • uspace/srv/devmap/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = devmap.job
    3940OUTPUT = devmap
  • uspace/srv/fs/devfs/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/fs/devfs/Makefile.build

    r15817089 rfd608dc  
    5959%.o: %.c $(DEPEND)
    6060        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     61ifeq ($(PRECHECK),y)
     62        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     63endif
    6164
    6265$(DEPEND):
  • uspace/srv/fs/devfs/Makefile.common

    r15817089 rfd608dc  
    3838DEPEND = Makefile.depend
    3939DEPEND_PREV = $(DEPEND).prev
     40JOB = devfs.job
    4041OUTPUT = devfs
  • uspace/srv/fs/fat/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/fs/fat/Makefile.build

    r15817089 rfd608dc  
    6262%.o: %.c $(DEPEND)
    6363        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     64ifeq ($(PRECHECK),y)
     65        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     66endif
    6467
    6568$(DEPEND):
  • uspace/srv/fs/fat/Makefile.common

    r15817089 rfd608dc  
    3939DEPEND = Makefile.depend
    4040DEPEND_PREV = $(DEPEND).prev
     41JOB = fat.job
    4142OUTPUT = fat
  • uspace/srv/fs/tmpfs/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/fs/tmpfs/Makefile.build

    r15817089 rfd608dc  
    6060%.o: %.c $(DEPEND)
    6161        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     62ifeq ($(PRECHECK),y)
     63        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     64endif
    6265
    6366$(DEPEND):
  • uspace/srv/fs/tmpfs/Makefile.common

    r15817089 rfd608dc  
    3939DEPEND = Makefile.depend
    4040DEPEND_PREV = $(DEPEND).prev
     41JOB = tmpfs.job
    4142OUTPUT = tmpfs
  • uspace/srv/loader/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm arch/*/_link.ld
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm arch/*/_link.ld
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/loader/Makefile.build

    r15817089 rfd608dc  
    6666%.o: %.c $(DEPEND)
    6767        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     68ifeq ($(PRECHECK),y)
     69        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     70endif
    6871
    6972%.o: %.s $(DEPEND)
    7073        $(AS) $(AFLAGS) $< -o $@
     74ifeq ($(PRECHECK),y)
     75        $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS)
     76endif
    7177
    7278$(DEPEND):
  • uspace/srv/loader/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = loader.job
    3940OUTPUT = loader
  • uspace/srv/ns/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/ns/Makefile.build

    r15817089 rfd608dc  
    5959%.o: %.c $(DEPEND)
    6060        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     61ifeq ($(PRECHECK),y)
     62        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     63endif
    6164
    6265$(DEPEND):
  • uspace/srv/ns/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = ns.job
    3940OUTPUT = ns
  • uspace/srv/vfs/Makefile

    r15817089 rfd608dc  
    3434all: $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)
    3535        -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV)
    36         $(MAKE) -f Makefile.build
     36        $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK)
    3737
    3838clean:
    39         rm -f $(DEPEND) $(DEPEND_PREV) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
     39        rm -f $(DEPEND) $(DEPEND_PREV) $(JOB) $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm
    4040        find . -name '*.o' -follow -exec rm \{\} \;
  • uspace/srv/vfs/Makefile.build

    r15817089 rfd608dc  
    6161%.o: %.c $(DEPEND)
    6262        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     63ifeq ($(PRECHECK),y)
     64        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     65endif
    6366
    6467$(DEPEND):
  • uspace/srv/vfs/Makefile.common

    r15817089 rfd608dc  
    3737DEPEND = Makefile.depend
    3838DEPEND_PREV = $(DEPEND).prev
     39JOB = vfs.job
    3940OUTPUT = vfs
  • uspace/srv/vfs/vfs_ops.c

    r15817089 rfd608dc  
    900900                }
    901901                newpos = size + off;
     902                file->pos = newpos;
    902903                fibril_mutex_unlock(&file->lock);
    903904                ipc_answer_1(rid, EOK, newpos);
Note: See TracChangeset for help on using the changeset viewer.