Changes in / [ac36aed:0c2d9bb] in mainline


Ignore:
Files:
102 added
7 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    rac36aed r0c2d9bb  
    3939@ "mips64" MIPS 64-bit
    4040@ "ppc32" PowerPC 32-bit (iMac G4)
     41@ "sparc32" SPARC v8 (32-bit)
    4142@ "sparc64" Sun UltraSPARC 64-bit
    4243! PLATFORM (choice)
     
    6061@ "generic" Generic Sun workstation or server
    6162! [PLATFORM=sparc64] MACHINE (choice)
     63
     64% Machine type
     65@ "leon3" Gaisler Aeroflex LEON3
     66! [PLATFORM=sparc32] MACHINE (choice)
    6267
    6368% Machine type
     
    8893
    8994% CPU type
     95@ "leon3" Gaisler Aeroflex LEON3
     96! [PLATFORM=sparc32&MACHINE=leon3] PROCESSOR (choice)
     97
     98% CPU type
    9099@ "cortex_a8" ARM Cortex A-8
    91100! [PLATFORM=arm32&(MACHINE=beagleboardxm|MACHINE=beaglebone)] PROCESSOR (choice)
     
    176185! [PLATFORM=sparc64] KARCH (choice)
    177186
     187% Kernel architecture
     188@ "sparc32"
     189! [PLATFORM=sparc32] KARCH (choice)
    178190
    179191## Mapping between platform and user space architecture
     
    223235! [PLATFORM=sparc64] UARCH (choice)
    224236
     237% User space architecture
     238@ "sparc32"
     239! [PLATFORM=sparc32] UARCH (choice)
    225240
    226241## Mapping between platform and boot architecture
     
    270285! [PLATFORM=sparc64] BARCH (choice)
    271286
     287% Boot architecture
     288@ "sparc32"
     289! [PLATFORM=sparc32] BARCH (choice)
    272290
    273291## Mapping between platform and image format
     
    284302@ "binary"
    285303! [PLATFORM=mips64] IMAGE (choice)
    286 
    287304
    288305## Compiler options
     
    314331@ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler)
    315332@ "clang" Clang
    316 ! [PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64] COMPILER (choice)
     333! [PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64|PLATFORM=sparc32] COMPILER (choice)
    317334
    318335
     
    341358
    342359% Hierarchical page tables support
    343 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32] CONFIG_PAGE_PT (y)
     360! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc32] CONFIG_PAGE_PT (y)
    344361
    345362% Page hash table support
     
    347364
    348365% Software integer division support
    349 ! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32] CONFIG_SOFTINT (y)
     366! [PLATFORM=abs32le|PLATFORM=ia32|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc32] CONFIG_SOFTINT (y)
    350367
    351368% ASID support
    352 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID (y)
     369! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64|PLATFORM=sparc32] CONFIG_ASID (y)
    353370
    354371% ASID FIFO support
    355 ! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_ASID_FIFO (y)
     372! [PLATFORM=ia64|PLATFORM=mips32|PLATFORM=mips64|PLATFORM=ppc32|PLATFORM=sparc64|PLATFORM=sparc32] CONFIG_ASID_FIFO (y)
    356373
    357374% OpenFirmware tree support
     
    492509! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&PLATFORM=arm32&(MACHINE=beagleboardxm|MACHINE=beaglebone)] CONFIG_OMAP_UART (y/n)
    493510
     511% Support for GRLIB UART
     512! [PLATFORM=sparc32&MACHINE=leon3] CONFIG_GRLIB_UART (y)
     513
     514% Support for GRLIB IRQMP
     515! [PLATFORM=sparc32&MACHINE=leon3] CONFIG_GRLIB_IRQMP (y)
     516
    494517% Support for i8042 controller
    495518! [CONFIG_PC_KBD=y] CONFIG_I8042 (y)
     
    511534
    512535% Serial line input module
    513 ! [CONFIG_DSRLNIN=y|(PLATFORM=arm32&MACHINE=gta02)|(PLATFORM=arm32&MACHINE=integratorcp&CONFIG_ARM926_UART=y)|(PLATFORM=arm32&MACHINE=beaglebone&CONFIG_OMAP_UART=y)|(PLATFORM=arm32&MACHINE=beagleboardxm&CONFIG_OMAP_UART=y)|(PLATFORM=ia64&MACHINE=i460GX&CONFIG_NS16550=y)|(PLATFORM=ia64&MACHINE=ski)|(PLATFORM=sparc64&PROCESSOR=sun4v)] CONFIG_SRLN (y)
     536! [CONFIG_DSRLNIN=y|(PLATFORM=sparc32)|(PLATFORM=arm32&MACHINE=gta02)|(PLATFORM=arm32&MACHINE=integratorcp&CONFIG_ARM926_UART=y)|(PLATFORM=arm32&MACHINE=beaglebone&CONFIG_OMAP_UART=y)|(PLATFORM=arm32&MACHINE=beagleboardxm&CONFIG_OMAP_UART=y)|(PLATFORM=ia64&MACHINE=i460GX&CONFIG_NS16550=y)|(PLATFORM=ia64&MACHINE=ski)|(PLATFORM=sparc64&PROCESSOR=sun4v)] CONFIG_SRLN (y)
    514537
    515538% EGA support
     
    626649@ "5" Linux kernel
    627650! [PLATFORM=arm32&MACHINE!=beagleboardxm&MACHINE!=beaglebone] UIMAGE_OS (choice)
     651
     652% uImage OS type
     653@ "5" Linux kernel
     654! [PLATFORM=sparc32] UIMAGE_OS (choice)
  • kernel/genarch/Makefile.inc

    rac36aed r0c2d9bb  
    110110endif
    111111
     112ifeq ($(CONFIG_GRLIB_UART),y)
     113        GENARCH_SOURCES += \
     114                genarch/src/drivers/grlib_uart/grlib_uart.c
     115endif
     116
     117ifeq ($(CONFIG_GRLIB_IRQMP),y)
     118        GENARCH_SOURCES += \
     119                genarch/src/drivers/grlib_irqmp/grlib_irqmp.c
     120endif
     121
    112122ifeq ($(CONFIG_AM335X_TIMERS),y)
    113123        GENARCH_SOURCES += \
  • kernel/generic/src/main/main.c

    rac36aed r0c2d9bb  
    166166        config.stack_base = config.base + config.kernel_size;
    167167       
     168        printf("base = 0x%08x\n", config.base);
     169        printf("kernel_size = 0x%08x\n", config.kernel_size);
     170        printf("stack_base = 0x%08x\n", config.stack_base);
     171
    168172        /* Avoid placing stack on top of init */
    169173        size_t i;
  • kernel/generic/src/proc/scheduler.c

    rac36aed r0c2d9bb  
    6464#include <stacktrace.h>
    6565
     66//#define       SCHEDULER_VERBOSE 1
     67
    6668static void scheduler_separated_stack(void);
    6769
     
    518520#ifdef SCHEDULER_VERBOSE
    519521        printf("cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64
    520             ", nrdy=%ld)\n", CPU->id, THREAD->tid, THREAD->priority,
     522            ", nrdy=%d)\n", CPU->id, THREAD->tid, THREAD->priority,
    521523            THREAD->ticks, atomic_get(&CPU->nrdy));
    522524#endif
  • tools/autotool.py

    rac36aed r0c2d9bb  
    263263                clang_target = "powerpc-unknown-linux"
    264264                helenos_target = "ppc-helenos"
     265       
     266        if (config['PLATFORM'] == "sparc32"):
     267                target = config['PLATFORM'];
     268                gnu_target = "sparc-leon3-linux-gnu"
     269                helenos_target = "sparc-leon3-helenos"
    265270       
    266271        if (config['PLATFORM'] == "sparc64"):
  • tools/toolchain.sh

    rac36aed r0c2d9bb  
    155155        echo " ppc32      32-bit PowerPC"
    156156        echo " ppc64      64-bit PowerPC"
     157        echo " sparc32    SPARC V8"
    157158        echo " sparc64    SPARC V9"
    158159        echo " all        build all targets"
     
    378379                        HELENOS_TARGET="ppc64-helenos"
    379380                        ;;
     381                "sparc32")
     382                        LINUX_TARGET="sparc-leon3-linux-gnu"
     383                        HELENOS_TARGET="sparc-leon3-helenos"
     384                        ;;
    380385                "sparc64")
    381386                        LINUX_TARGET="sparc64-linux-gnu"
     
    555560
    556561case "$1" in
    557         amd64|arm32|ia32|ia64|mips32|mips32eb|mips64|ppc32|ppc64|sparc64)
     562        amd64|arm32|ia32|ia64|mips32|mips32eb|mips64|ppc32|ppc64|sparc32|sparc64)
    558563                prepare
    559564                build_target "$1"
     
    570575                build_target "ppc32"
    571576                build_target "ppc64"
     577                build_target "sparc32"
    572578                build_target "sparc64"
    573579                ;;
     
    583589                build_target "ppc32" &
    584590                build_target "ppc64" &
     591                build_target "sparc32" &
    585592                build_target "sparc64" &
    586593                wait
     
    605612               
    606613                build_target "ppc64" &
     614                build_target "sparc32" &
     615                wait
     616               
    607617                build_target "sparc64" &
    608618                wait
  • uspace/lib/c/include/atomicdflt.h

    rac36aed r0c2d9bb  
    6060static inline bool cas(atomic_t *val, atomic_count_t ov, atomic_count_t nv)
    6161{
    62         return __sync_bool_compare_and_swap(&val->count, ov, nv);
     62// XXX  return __sync_bool_compare_and_swap(&val->count, ov, nv);
     63        return false;
    6364}
    6465#endif
Note: See TracChangeset for help on using the changeset viewer.