Changes in / [ecd1a0a:cc250b3] in mainline


Ignore:
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

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

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

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

    recd1a0a rcc250b3  
    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       
    105111        void *balloc_base;
    106112        void *balloc_base_pa;
  • kernel/arch/arm32/src/exception.c

    recd1a0a rcc250b3  
    142142#elif defined(PROCESSOR_armv4) | defined(PROCESSOR_armv5)
    143143        asm volatile (
    144                 "mrc p15, 0, %[control_reg], c1, c1"
     144                "mrc p15, 0, %[control_reg], c1, c0"
    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, c1"
     159                "mcr p15, 0, %[control_reg], c1, c0"
    160160                :: [control_reg] "r" (control_reg)
    161161        );
  • kernel/genarch/src/drivers/arm926_uart/arm926_uart.c

    recd1a0a rcc250b3  
    8383        arm926_uart_t *uart = irq->instance;
    8484
    85         // TODO make pio_read accept consts pointers and remove the cast
     85        // TODO make pio_read accept const 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 = ARM926_UART_INTERRUPT_ALL;
     111        uart->regs->interrupt_mask = 0;
    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

    recd1a0a rcc250b3  
    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
     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. */
    5151
    5252/**
    5353 * This flags is passed when running the loader, otherwise elf_load()
    5454 * would return with a EE_LOADER error code.
    55  *
    5655 */
    5756#define ELD_F_NONE    0
  • uspace/lib/c/arch/abs32le/_link.ld.in

    recd1a0a rcc250b3  
    1515#ifdef LOADER
    1616        . = 0x70001000 + SIZEOF_HEADERS;
    17        
    18         .interp : {
    19                 *(.interp);
    20         } :interp :text
    2117#else
    2218        . = 0x1000 + SIZEOF_HEADERS;
    2319#endif
    24        
    25         /* Make sure the code is aligned reasonably */
    26         . = ALIGN(., 16);
    2720       
    2821        .text : {
     
    3023                *(.rodata .rodata.*);
    3124        } :text
     25       
     26#ifdef LOADER
     27        .interp : {
     28                *(.interp);
     29        } :interp :text
     30#endif
    3231       
    3332        . = . + 0x1000;
  • uspace/lib/c/arch/amd64/_link.ld.in

    recd1a0a rcc250b3  
    1616#ifdef LOADER
    1717        . = 0x70001000 + SIZEOF_HEADERS;
    18        
    19         .interp : {
    20                 *(.interp);
    21         } :interp :text
    2218#else
    2319        . = 0x1000 + SIZEOF_HEADERS;
    2420#endif
    25        
    26         /* Make sure the code is aligned reasonably */
    27         . = ALIGN(., 16);
    2821       
    2922        .init : {
     
    3528                *(.rodata .rodata.*);
    3629        } :text
     30       
     31#ifdef LOADER
     32        .interp : {
     33                *(.interp);
     34        } :interp :text
     35#endif
    3736       
    3837        . = . + 0x1000;
  • uspace/lib/c/arch/arm32/_link.ld.in

    recd1a0a rcc250b3  
    1515#ifdef LOADER
    1616        . = 0x70001000 + SIZEOF_HEADERS;
    17        
    18         .interp : {
    19                 *(.interp);
    20         } :interp :text
    2117#else
    2218        . = 0x1000 + SIZEOF_HEADERS;
    2319#endif
    24        
    25         /* Make sure the code is aligned reasonably */
    26         . = ALIGN(., 8);
    2720       
    2821        .init : {
     
    3427                *(.rodata .rodata.*);
    3528        } :text
     29       
     30#ifdef LOADER
     31        .interp : {
     32                *(.interp);
     33        } :interp :text
     34#endif
    3635       
    3736        . = . + 0x1000;
  • uspace/lib/c/arch/ia32/_link.ld.in

    recd1a0a rcc250b3  
    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);
    3526       
    3627        .init : {
     
    7162        } :text
    7263#endif
     64       
     65#if defined(LOADER) || defined(DLEXE)
     66        .interp : {
     67                *(.interp);
     68        } :interp :text
     69#endif
     70       
    7371        . = . + 0x1000;
    7472       
  • uspace/lib/c/arch/ia64/_link.ld.in

    recd1a0a rcc250b3  
    1515#ifdef LOADER
    1616        . = 0x800000000 + SIZEOF_HEADERS;
    17        
    18         .interp : {
    19                 *(.interp);
    20         } :interp :text
    2117#else
    2218        . = 0x4000 + SIZEOF_HEADERS;
    2319#endif
    2420       
    25         /* Make sure the code is aligned reasonably */
     21        /* Workaround proper alignment of the .init section */
    2622        . = ALIGN(., 16);
    2723       
     
    3430                *(.rodata .rodata.*);
    3531        } :text
     32       
     33#ifdef LOADER
     34        .interp : {
     35                *(.interp);
     36        } :interp :text
     37#endif
    3638       
    3739        . = . + 0x4000;
  • uspace/lib/c/arch/mips32/_link.ld.in

    recd1a0a rcc250b3  
    1515#ifdef LOADER
    1616        . = 0x70004000 + SIZEOF_HEADERS;
    17        
    18         .interp : {
    19                 *(.interp);
    20         } :interp :text
    2117#else
    2218        . = 0x4000 + SIZEOF_HEADERS;
    2319#endif
    24        
    25         /* Make sure the code is aligned reasonably */
    26         . = ALIGN(., 16);
    2720       
    2821        .init : {
     
    3427                *(.rodata .rodata.*);
    3528        } :text
     29       
     30#ifdef LOADER
     31        .interp : {
     32                *(.interp);
     33        } :interp :text
     34#endif
    3635       
    3736        . = . + 0x4000;
  • uspace/lib/c/arch/mips64/_link.ld.in

    recd1a0a rcc250b3  
    1616#ifdef LOADER
    1717        . = 0x70004000 + SIZEOF_HEADERS;
    18        
    19         .interp : {
    20                 *(.interp);
    21         } :interp :text
    2218#else
    2319        . = 0x4000 + SIZEOF_HEADERS;
    2420#endif
    25        
    26         /* Make sure the code is aligned reasonably */
    27         . = ALIGN(., 16);
    2821       
    2922        .init : {
     
    3528                *(.rodata .rodata.*);
    3629        } :text
     30       
     31#ifdef LOADER
     32        .interp : {
     33                *(.interp);
     34        } :interp :text
     35#endif
    3736       
    3837        . = . + 0x4000;
  • uspace/lib/c/arch/ppc32/_link.ld.in

    recd1a0a rcc250b3  
    1616#ifdef LOADER
    1717        . = 0x70001000 + SIZEOF_HEADERS;
    18        
    19         .interp : {
    20                 *(.interp);
    21         } :interp :text
    2218#else
    2319        . = 0x1000 + SIZEOF_HEADERS;
    2420#endif
    25        
    26         /* Make sure the code is aligned reasonably */
    27         . = ALIGN(., 4);
    2821       
    2922        .init : {
     
    3528                *(.rodata .rodata.*);
    3629        } :text
     30       
     31#ifdef LOADER
     32        .interp : {
     33                *(.interp);
     34        } :interp :text
     35#endif
    3736       
    3837        . = . + 0x1000;
  • uspace/lib/c/arch/sparc64/_link.ld.in

    recd1a0a rcc250b3  
    1515#ifdef LOADER
    1616        . = 0x70004000 + SIZEOF_HEADERS;
    17        
    18         .interp : {
    19                 *(.interp);
    20         } :interp :text
    2117#else
    2218        . = 0x4000 + SIZEOF_HEADERS;
    2319#endif
    24        
    25         /* Make sure the code is aligned reasonably */
    26         . = ALIGN(., 16);
    2720       
    2821        .init : {
     
    3427                *(.rodata .rodata.*);
    3528        } :text
     29       
     30#ifdef LOADER
     31        .interp : {
     32                *(.interp);
     33        } :interp :text
     34#endif
    3635       
    3736        . = . + 0x4000;
Note: See TracChangeset for help on using the changeset viewer.