Changes in / [cc250b3:ecd1a0a] in mainline
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
rcc250b3 recd1a0a 173 173 $(USPACE_PATH)/app/mkexfat/mkexfat \ 174 174 $(USPACE_PATH)/app/mkmfs/mkmfs \ 175 $(USPACE_PATH)/app/lsusb/lsusb \ 175 176 $(USPACE_PATH)/app/sbi/sbi \ 176 177 $(USPACE_PATH)/app/sportdmp/sportdmp \ -
boot/arch/ppc32/_link.ld.in
rcc250b3 recd1a0a 2 2 3 3 SECTIONS { 4 . = 0x0 2000000;4 . = 0x01000000; 5 5 .text : { 6 6 *(BOOTSTRAP); -
boot/arch/ppc32/include/arch.h
rcc250b3 recd1a0a 35 35 #define BOOT_OFFSET 0x8000 36 36 37 #define LOADER_ADDRESS 0x0 200000037 #define LOADER_ADDRESS 0x01000000 38 38 39 39 #ifndef __ASM__ -
boot/arch/ppc32/src/main.c
rcc250b3 recd1a0a 103 103 } 104 104 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 111 105 void *balloc_base; 112 106 void *balloc_base_pa; -
kernel/arch/arm32/src/exception.c
rcc250b3 recd1a0a 142 142 #elif defined(PROCESSOR_armv4) | defined(PROCESSOR_armv5) 143 143 asm volatile ( 144 "mrc p15, 0, %[control_reg], c1, c 0"144 "mrc p15, 0, %[control_reg], c1, c1" 145 145 : [control_reg] "=r" (control_reg) 146 146 ); … … 157 157 #elif defined(PROCESSOR_armv4) | defined(PROCESSOR_armv5) 158 158 asm volatile ( 159 "mcr p15, 0, %[control_reg], c1, c 0"159 "mcr p15, 0, %[control_reg], c1, c1" 160 160 :: [control_reg] "r" (control_reg) 161 161 ); -
kernel/genarch/src/drivers/arm926_uart/arm926_uart.c
rcc250b3 recd1a0a 83 83 arm926_uart_t *uart = irq->instance; 84 84 85 // TODO make pio_read accept const pointers and remove the cast85 // TODO make pio_read accept consts pointers and remove the cast 86 86 while ((pio_read_32((ioport32_t*)&uart->regs->flag) & ARM926_UART_FLAG_RXFE_FLAG) == 0) { 87 87 /* We ignore all error flags here */ … … 109 109 110 110 /* Mask all interrupts */ 111 uart->regs->interrupt_mask = 0;111 uart->regs->interrupt_mask = ARM926_UART_INTERRUPT_ALL; 112 112 113 113 outdev_initialize("arm926_uart_dev", &uart->outdev, &arm926_uart_ops); … … 133 133 irq_register(&uart->irq); 134 134 /* Enable receive interrupt */ 135 uart->regs->interrupt_mask |=ARM926_UART_INTERRUPT_RX_FLAG;135 uart->regs->interrupt_mask &= ~ARM926_UART_INTERRUPT_RX_FLAG; 136 136 } 137 137 -
kernel/generic/include/lib/elf_load.h
rcc250b3 recd1a0a 42 42 * ELF error return codes 43 43 */ 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 51 51 52 52 /** 53 53 * This flags is passed when running the loader, otherwise elf_load() 54 54 * would return with a EE_LOADER error code. 55 * 55 56 */ 56 57 #define ELD_F_NONE 0 -
uspace/lib/c/arch/abs32le/_link.ld.in
rcc250b3 recd1a0a 15 15 #ifdef LOADER 16 16 . = 0x70001000 + SIZEOF_HEADERS; 17 18 .interp : { 19 *(.interp); 20 } :interp :text 17 21 #else 18 22 . = 0x1000 + SIZEOF_HEADERS; 19 23 #endif 24 25 /* Make sure the code is aligned reasonably */ 26 . = ALIGN(., 16); 20 27 21 28 .text : { … … 23 30 *(.rodata .rodata.*); 24 31 } :text 25 26 #ifdef LOADER27 .interp : {28 *(.interp);29 } :interp :text30 #endif31 32 32 33 . = . + 0x1000; -
uspace/lib/c/arch/amd64/_link.ld.in
rcc250b3 recd1a0a 16 16 #ifdef LOADER 17 17 . = 0x70001000 + SIZEOF_HEADERS; 18 19 .interp : { 20 *(.interp); 21 } :interp :text 18 22 #else 19 23 . = 0x1000 + SIZEOF_HEADERS; 20 24 #endif 25 26 /* Make sure the code is aligned reasonably */ 27 . = ALIGN(., 16); 21 28 22 29 .init : { … … 28 35 *(.rodata .rodata.*); 29 36 } :text 30 31 #ifdef LOADER32 .interp : {33 *(.interp);34 } :interp :text35 #endif36 37 37 38 . = . + 0x1000; -
uspace/lib/c/arch/arm32/_link.ld.in
rcc250b3 recd1a0a 15 15 #ifdef LOADER 16 16 . = 0x70001000 + SIZEOF_HEADERS; 17 18 .interp : { 19 *(.interp); 20 } :interp :text 17 21 #else 18 22 . = 0x1000 + SIZEOF_HEADERS; 19 23 #endif 24 25 /* Make sure the code is aligned reasonably */ 26 . = ALIGN(., 8); 20 27 21 28 .init : { … … 27 34 *(.rodata .rodata.*); 28 35 } :text 29 30 #ifdef LOADER31 .interp : {32 *(.interp);33 } :interp :text34 #endif35 36 36 37 . = . + 0x1000; -
uspace/lib/c/arch/ia32/_link.ld.in
rcc250b3 recd1a0a 24 24 . = 0x1000 + SIZEOF_HEADERS; 25 25 #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); 26 35 27 36 .init : { … … 62 71 } :text 63 72 #endif 64 65 #if defined(LOADER) || defined(DLEXE)66 .interp : {67 *(.interp);68 } :interp :text69 #endif70 71 73 . = . + 0x1000; 72 74 -
uspace/lib/c/arch/ia64/_link.ld.in
rcc250b3 recd1a0a 15 15 #ifdef LOADER 16 16 . = 0x800000000 + SIZEOF_HEADERS; 17 18 .interp : { 19 *(.interp); 20 } :interp :text 17 21 #else 18 22 . = 0x4000 + SIZEOF_HEADERS; 19 23 #endif 20 24 21 /* Workaround proper alignment of the .init section*/25 /* Make sure the code is aligned reasonably */ 22 26 . = ALIGN(., 16); 23 27 … … 30 34 *(.rodata .rodata.*); 31 35 } :text 32 33 #ifdef LOADER34 .interp : {35 *(.interp);36 } :interp :text37 #endif38 36 39 37 . = . + 0x4000; -
uspace/lib/c/arch/mips32/_link.ld.in
rcc250b3 recd1a0a 15 15 #ifdef LOADER 16 16 . = 0x70004000 + SIZEOF_HEADERS; 17 18 .interp : { 19 *(.interp); 20 } :interp :text 17 21 #else 18 22 . = 0x4000 + SIZEOF_HEADERS; 19 23 #endif 24 25 /* Make sure the code is aligned reasonably */ 26 . = ALIGN(., 16); 20 27 21 28 .init : { … … 27 34 *(.rodata .rodata.*); 28 35 } :text 29 30 #ifdef LOADER31 .interp : {32 *(.interp);33 } :interp :text34 #endif35 36 36 37 . = . + 0x4000; -
uspace/lib/c/arch/mips64/_link.ld.in
rcc250b3 recd1a0a 16 16 #ifdef LOADER 17 17 . = 0x70004000 + SIZEOF_HEADERS; 18 19 .interp : { 20 *(.interp); 21 } :interp :text 18 22 #else 19 23 . = 0x4000 + SIZEOF_HEADERS; 20 24 #endif 25 26 /* Make sure the code is aligned reasonably */ 27 . = ALIGN(., 16); 21 28 22 29 .init : { … … 28 35 *(.rodata .rodata.*); 29 36 } :text 30 31 #ifdef LOADER32 .interp : {33 *(.interp);34 } :interp :text35 #endif36 37 37 38 . = . + 0x4000; -
uspace/lib/c/arch/ppc32/_link.ld.in
rcc250b3 recd1a0a 16 16 #ifdef LOADER 17 17 . = 0x70001000 + SIZEOF_HEADERS; 18 19 .interp : { 20 *(.interp); 21 } :interp :text 18 22 #else 19 23 . = 0x1000 + SIZEOF_HEADERS; 20 24 #endif 25 26 /* Make sure the code is aligned reasonably */ 27 . = ALIGN(., 4); 21 28 22 29 .init : { … … 28 35 *(.rodata .rodata.*); 29 36 } :text 30 31 #ifdef LOADER32 .interp : {33 *(.interp);34 } :interp :text35 #endif36 37 37 38 . = . + 0x1000; -
uspace/lib/c/arch/sparc64/_link.ld.in
rcc250b3 recd1a0a 15 15 #ifdef LOADER 16 16 . = 0x70004000 + SIZEOF_HEADERS; 17 18 .interp : { 19 *(.interp); 20 } :interp :text 17 21 #else 18 22 . = 0x4000 + SIZEOF_HEADERS; 19 23 #endif 24 25 /* Make sure the code is aligned reasonably */ 26 . = ALIGN(., 16); 20 27 21 28 .init : { … … 27 34 *(.rodata .rodata.*); 28 35 } :text 29 30 #ifdef LOADER31 .interp : {32 *(.interp);33 } :interp :text34 #endif35 36 36 37 . = . + 0x4000;
Note:
See TracChangeset
for help on using the changeset viewer.