Changeset 941d1e9 in mainline


Ignore:
Timestamp:
2005-09-29T22:47:42Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
922c7ce
Parents:
40a468a
Message:

Make cross-compiler the default compiler on IA-32.
For native compilations, use ./build.ia32 native.

Small changes elsewhere.

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • Makefile.config

    r40a468a r941d1e9  
    55#ARCH=amd64
    66
    7 # If this is yes, then cross compiler will be used instead of host compiler
    8 CROSS_COMPILER=no
     7# If this is yes, then the native compiler will be used instead of cross compiler
     8NATIVE_COMPILER=no
    99
    1010# Support for symetric multiprocessors
  • arch/ia32/Makefile.inc

    r40a468a r941d1e9  
    1 ifeq (${CROSS_COMPILER},yes)
     1ifeq (${NATIVE_COMPILER},yes)
     2        CC=gcc
     3        AS=as
     4        LD=ld
     5        OBJCOPY=objcopy
     6        OBJDUMP=objdump
     7else
    28        IA-32_TARGET=i686-pc-linux-gnu
    39
     
    1016        OBJCOPY=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objcopy
    1117        OBJDUMP=$(IA-32_BINUTILS_DIR)/$(IA-32_TARGET)-objdump
    12 else
    13         CC=gcc
    14         AS=as
    15         LD=ld
    16         OBJCOPY=objcopy
    17         OBJDUMP=objdump
    1818endif
    1919
  • arch/ia32/_link.ld.in

    r40a468a r941d1e9  
    2222                *(K_TEXT_START_2);
    2323                unmapped_ktext_end = .;
    24                
     24       
    2525                unmapped_kdata_start = .;
    2626                *(K_DATA_START);
    27                 LONG(0xdeadbeaf);               /* TODO: remove 0xdeadbeaf */
    2827                unmapped_kdata_end = .;
     28               
     29                LONG(0xdeadbeaf);               /* TODO: remove 0xdeadbeaf */                                           
    2930        }
    3031       
     
    5051                LONG(unmapped_kdata_end - unmapped_kdata_start);
    5152                *(.bss);                        /* uninitialized static variables */
    52                 *(.note.GNU-stack);
    53                 *(.comment);
    54 
    5553                symbol_table = .;
    5654                *(symtab.*);                    /* Symbol table, must be LAST symbol! */
     
    5856                kdata_end = .;
    5957        }
     58
     59        /DISCARD/ : {
     60                *(.note.GNU-stack);             
     61                *(.comment);
     62        }
     63
    6064       
    6165        _hardcoded_kernel_size = (ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start) + (kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start);
  • arch/ia32/src/asm.S

    r40a468a r941d1e9  
    207207# Compare a given number of bytes (3rd argument)
    208208# at memory locations defined by 1st and 2nd argument
    209 # for equality. If the bytes are equal, EAX contains
    210 # 0.
     209# for equality. If the bytes are equal, EAX contains 0.
    211210#
    212211SRC=12
  • build.ia32

    r40a468a r941d1e9  
    33COMPILER=""
    44
    5 if [ $1 == "cross" ];
     5if [ $1 == "native" ];
    66then
    7         COMPILER="CROSS_COMPILER=yes";
     7        COMPILER="NATIVE_COMPILER=yes";
    88fi;
    99
  • include/fpu_context.h

    r40a468a r941d1e9  
    2727 */
    2828
    29 #ifndef fpu_context_h
    30 #define fpu_context_h
     29#ifndef __FPU_CONTEXT_H__
     30#define __FPU_CONTEXT_H__
    3131
    3232
     
    4141
    4242
    43 #endif /*fpu_context_h*/
     43#endif /* __FPU_CONTEXT_H__ */
    4444
  • include/mm/buddy.h

    r40a468a r941d1e9  
    3535#define BUDDY_SYSTEM_INNER_BLOCK        0xff
    3636
    37 struct buddy_operations {
     37struct buddy_system_operations {
    3838        link_t *(* find_buddy)(link_t *);
    3939        link_t *(* bisect)(link_t *);
     
    4646        __u8 max_order;
    4747        link_t *order;
    48         buddy_operations_t *op;
     48        buddy_system_operations_t *op;
    4949};
    5050
    51 extern buddy_system_t *buddy_system_create(__u8 max_order, buddy_operations_t *op);
     51extern buddy_system_t *buddy_system_create(__u8 max_order, buddy_system_operations_t *op);
    5252extern link_t *buddy_system_alloc(buddy_system_t *b, __u8 i);
    5353extern void buddy_system_free(buddy_system_t *b, link_t *block);
  • include/mm/heap.h

    r40a468a r941d1e9  
    3838struct chunk {
    3939        int used;
    40         struct chunk *next;
    41         struct chunk *prev;
     40        chunk_t *next;
     41        chunk_t *prev;
    4242        __u32 size;
    4343        __native data[0];
  • include/typedefs.h

    r40a468a r941d1e9  
    6565
    6666typedef struct buddy_system buddy_system_t;
    67 typedef struct buddy_operations buddy_operations_t;
     67typedef struct buddy_system_operations buddy_system_operations_t;
    6868
    6969typedef struct zone zone_t;
  • src/mm/buddy.c

    r40a468a r941d1e9  
    4444 * @return New buddy system.
    4545 */
    46 buddy_system_t *buddy_system_create(__u8 max_order, buddy_operations_t *op)
     46buddy_system_t *buddy_system_create(__u8 max_order, buddy_system_operations_t *op)
    4747{
    4848        buddy_system_t *b;
Note: See TracChangeset for help on using the changeset viewer.