Changes in / [cc250b3:ecd1a0a] in mainline


Ignore:
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    rcc250b3 recd1a0a  
    173173        $(USPACE_PATH)/app/mkexfat/mkexfat \
    174174        $(USPACE_PATH)/app/mkmfs/mkmfs \
     175        $(USPACE_PATH)/app/lsusb/lsusb \
    175176        $(USPACE_PATH)/app/sbi/sbi \
    176177        $(USPACE_PATH)/app/sportdmp/sportdmp \
  • boot/arch/ppc32/_link.ld.in

    rcc250b3 recd1a0a  
    22
    33SECTIONS {
    4         . = 0x02000000;
     4        . = 0x01000000;
    55        .text : {
    66                *(BOOTSTRAP);
  • boot/arch/ppc32/include/arch.h

    rcc250b3 recd1a0a  
    3535#define BOOT_OFFSET  0x8000
    3636
    37 #define LOADER_ADDRESS  0x02000000
     37#define LOADER_ADDRESS  0x01000000
    3838
    3939#ifndef __ASM__
  • boot/arch/ppc32/src/main.c

    rcc250b3 recd1a0a  
    103103        }
    104104       
    105         if (top >= (size_t) loader_address_pa) {
    106                 printf("Inflated components overlap loader area.\n");
    107                 printf("The boot image is too large. Halting.\n");
    108                 halt();
    109         }
    110        
    111105        void *balloc_base;
    112106        void *balloc_base_pa;
  • kernel/arch/arm32/src/exception.c

    rcc250b3 recd1a0a  
    142142#elif defined(PROCESSOR_armv4) | defined(PROCESSOR_armv5)
    143143        asm volatile (
    144                 "mrc p15, 0, %[control_reg], c1, c0"
     144                "mrc p15, 0, %[control_reg], c1, c1"
    145145                : [control_reg] "=r" (control_reg)
    146146        );
     
    157157#elif defined(PROCESSOR_armv4) | defined(PROCESSOR_armv5)
    158158        asm volatile (
    159                 "mcr p15, 0, %[control_reg], c1, c0"
     159                "mcr p15, 0, %[control_reg], c1, c1"
    160160                :: [control_reg] "r" (control_reg)
    161161        );
  • kernel/genarch/src/drivers/arm926_uart/arm926_uart.c

    rcc250b3 recd1a0a  
    8383        arm926_uart_t *uart = irq->instance;
    8484
    85         // TODO make pio_read accept const pointers and remove the cast
     85        // TODO make pio_read accept consts pointers and remove the cast
    8686        while ((pio_read_32((ioport32_t*)&uart->regs->flag) & ARM926_UART_FLAG_RXFE_FLAG) == 0) {
    8787                /* We ignore all error flags here */
     
    109109
    110110        /* Mask all interrupts */
    111         uart->regs->interrupt_mask = 0;
     111        uart->regs->interrupt_mask = ARM926_UART_INTERRUPT_ALL;
    112112
    113113        outdev_initialize("arm926_uart_dev", &uart->outdev, &arm926_uart_ops);
     
    133133        irq_register(&uart->irq);
    134134        /* Enable receive interrupt */
    135         uart->regs->interrupt_mask |= ARM926_UART_INTERRUPT_RX_FLAG;
     135        uart->regs->interrupt_mask &= ~ARM926_UART_INTERRUPT_RX_FLAG;
    136136}
    137137
  • kernel/generic/include/lib/elf_load.h

    rcc250b3 recd1a0a  
    4242 * ELF error return codes
    4343 */
    44 #define EE_OK             0  /* No error */
    45 #define EE_INVALID        1  /* Invalid ELF image */
    46 #define EE_MEMORY         2  /* Cannot allocate address space */
    47 #define EE_INCOMPATIBLE   3  /* ELF image is not compatible with current architecture */
    48 #define EE_UNSUPPORTED    4  /* Non-supported ELF (e.g. dynamic ELFs) */
    49 #define EE_LOADER         5  /* The image is actually a program loader. */
    50 #define EE_IRRECOVERABLE  6  /* Irrecoverable error. */
     44#define EE_OK                   0       /* No error */
     45#define EE_INVALID              1       /* Invalid ELF image */
     46#define EE_MEMORY               2       /* Cannot allocate address space */
     47#define EE_INCOMPATIBLE         3       /* ELF image is not compatible with current architecture */
     48#define EE_UNSUPPORTED          4       /* Non-supported ELF (e.g. dynamic ELFs) */
     49#define EE_LOADER               5       /* The image is actually a program loader. */
     50#define EE_IRRECOVERABLE        6
    5151
    5252/**
    5353 * This flags is passed when running the loader, otherwise elf_load()
    5454 * would return with a EE_LOADER error code.
     55 *
    5556 */
    5657#define ELD_F_NONE    0
  • uspace/lib/c/arch/abs32le/_link.ld.in

    rcc250b3 recd1a0a  
    1515#ifdef LOADER
    1616        . = 0x70001000 + SIZEOF_HEADERS;
     17       
     18        .interp : {
     19                *(.interp);
     20        } :interp :text
    1721#else
    1822        . = 0x1000 + SIZEOF_HEADERS;
    1923#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 16);
    2027       
    2128        .text : {
     
    2330                *(.rodata .rodata.*);
    2431        } :text
    25        
    26 #ifdef LOADER
    27         .interp : {
    28                 *(.interp);
    29         } :interp :text
    30 #endif
    3132       
    3233        . = . + 0x1000;
  • uspace/lib/c/arch/amd64/_link.ld.in

    rcc250b3 recd1a0a  
    1616#ifdef LOADER
    1717        . = 0x70001000 + SIZEOF_HEADERS;
     18       
     19        .interp : {
     20                *(.interp);
     21        } :interp :text
    1822#else
    1923        . = 0x1000 + SIZEOF_HEADERS;
    2024#endif
     25       
     26        /* Make sure the code is aligned reasonably */
     27        . = ALIGN(., 16);
    2128       
    2229        .init : {
     
    2835                *(.rodata .rodata.*);
    2936        } :text
    30        
    31 #ifdef LOADER
    32         .interp : {
    33                 *(.interp);
    34         } :interp :text
    35 #endif
    3637       
    3738        . = . + 0x1000;
  • uspace/lib/c/arch/arm32/_link.ld.in

    rcc250b3 recd1a0a  
    1515#ifdef LOADER
    1616        . = 0x70001000 + SIZEOF_HEADERS;
     17       
     18        .interp : {
     19                *(.interp);
     20        } :interp :text
    1721#else
    1822        . = 0x1000 + SIZEOF_HEADERS;
    1923#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 8);
    2027       
    2128        .init : {
     
    2734                *(.rodata .rodata.*);
    2835        } :text
    29        
    30 #ifdef LOADER
    31         .interp : {
    32                 *(.interp);
    33         } :interp :text
    34 #endif
    3536       
    3637        . = . + 0x1000;
  • uspace/lib/c/arch/ia32/_link.ld.in

    rcc250b3 recd1a0a  
    2424        . = 0x1000 + SIZEOF_HEADERS;
    2525#endif
     26       
     27#if defined(LOADER) || defined(DLEXE)
     28        .interp : {
     29                *(.interp);
     30        } :interp :text
     31#endif
     32       
     33        /* Make sure the code is aligned reasonably */
     34        . = ALIGN(., 16);
    2635       
    2736        .init : {
     
    6271        } :text
    6372#endif
    64        
    65 #if defined(LOADER) || defined(DLEXE)
    66         .interp : {
    67                 *(.interp);
    68         } :interp :text
    69 #endif
    70        
    7173        . = . + 0x1000;
    7274       
  • uspace/lib/c/arch/ia64/_link.ld.in

    rcc250b3 recd1a0a  
    1515#ifdef LOADER
    1616        . = 0x800000000 + SIZEOF_HEADERS;
     17       
     18        .interp : {
     19                *(.interp);
     20        } :interp :text
    1721#else
    1822        . = 0x4000 + SIZEOF_HEADERS;
    1923#endif
    2024       
    21         /* Workaround proper alignment of the .init section */
     25        /* Make sure the code is aligned reasonably */
    2226        . = ALIGN(., 16);
    2327       
     
    3034                *(.rodata .rodata.*);
    3135        } :text
    32        
    33 #ifdef LOADER
    34         .interp : {
    35                 *(.interp);
    36         } :interp :text
    37 #endif
    3836       
    3937        . = . + 0x4000;
  • uspace/lib/c/arch/mips32/_link.ld.in

    rcc250b3 recd1a0a  
    1515#ifdef LOADER
    1616        . = 0x70004000 + SIZEOF_HEADERS;
     17       
     18        .interp : {
     19                *(.interp);
     20        } :interp :text
    1721#else
    1822        . = 0x4000 + SIZEOF_HEADERS;
    1923#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 16);
    2027       
    2128        .init : {
     
    2734                *(.rodata .rodata.*);
    2835        } :text
    29        
    30 #ifdef LOADER
    31         .interp : {
    32                 *(.interp);
    33         } :interp :text
    34 #endif
    3536       
    3637        . = . + 0x4000;
  • uspace/lib/c/arch/mips64/_link.ld.in

    rcc250b3 recd1a0a  
    1616#ifdef LOADER
    1717        . = 0x70004000 + SIZEOF_HEADERS;
     18       
     19        .interp : {
     20                *(.interp);
     21        } :interp :text
    1822#else
    1923        . = 0x4000 + SIZEOF_HEADERS;
    2024#endif
     25       
     26        /* Make sure the code is aligned reasonably */
     27        . = ALIGN(., 16);
    2128       
    2229        .init : {
     
    2835                *(.rodata .rodata.*);
    2936        } :text
    30        
    31 #ifdef LOADER
    32         .interp : {
    33                 *(.interp);
    34         } :interp :text
    35 #endif
    3637       
    3738        . = . + 0x4000;
  • uspace/lib/c/arch/ppc32/_link.ld.in

    rcc250b3 recd1a0a  
    1616#ifdef LOADER
    1717        . = 0x70001000 + SIZEOF_HEADERS;
     18       
     19        .interp : {
     20                *(.interp);
     21        } :interp :text
    1822#else
    1923        . = 0x1000 + SIZEOF_HEADERS;
    2024#endif
     25       
     26        /* Make sure the code is aligned reasonably */
     27        . = ALIGN(., 4);
    2128       
    2229        .init : {
     
    2835                *(.rodata .rodata.*);
    2936        } :text
    30        
    31 #ifdef LOADER
    32         .interp : {
    33                 *(.interp);
    34         } :interp :text
    35 #endif
    3637       
    3738        . = . + 0x1000;
  • uspace/lib/c/arch/sparc64/_link.ld.in

    rcc250b3 recd1a0a  
    1515#ifdef LOADER
    1616        . = 0x70004000 + SIZEOF_HEADERS;
     17       
     18        .interp : {
     19                *(.interp);
     20        } :interp :text
    1721#else
    1822        . = 0x4000 + SIZEOF_HEADERS;
    1923#endif
     24       
     25        /* Make sure the code is aligned reasonably */
     26        . = ALIGN(., 16);
    2027       
    2128        .init : {
     
    2734                *(.rodata .rodata.*);
    2835        } :text
    29        
    30 #ifdef LOADER
    31         .interp : {
    32                 *(.interp);
    33         } :interp :text
    34 #endif
    3536       
    3637        . = . + 0x4000;
Note: See TracChangeset for help on using the changeset viewer.