Changeset 60133d0 in mainline


Ignore:
Timestamp:
2007-05-31T23:30:32Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ff3a34b
Parents:
1e847fb
Message:

First fixes for suncc support.
It is going to be a long way…

Location:
kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r1e847fb r60133d0  
    3939DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL
    4040CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
     41#SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all
    4142LFLAGS = -M
    4243AFLAGS =
     
    121122ifeq ($(COMPILER),gcc_native)
    122123        CC = gcc
     124        AS_CC = gcc
    123125        AS = as
    124126        LD = ld
     
    130132ifeq ($(COMPILER),icc_native)
    131133        CC = icc
     134        AS_CC = gcc
    132135        AS = as
    133136        LD = ld
     
    139142ifeq ($(COMPILER),suncc_native)
    140143        CC = suncc
     144        AS_CC = gcc
    141145        AS = as
    142146        LD = ld
     
    148152ifeq ($(COMPILER),gcc_cross)
    149153        CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
     154        AS_CC = $(CC)
    150155        AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
    151156        LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
     
    332337
    333338%.o: %.S
    334         $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     339        $(AS_CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
    335340
    336341%.o: %.s
  • kernel/arch/ia32/include/asm.h

    r1e847fb r60133d0  
    6161{
    6262        asm volatile ("hlt\n");
    63 };
     63}
    6464
    6565static inline void cpu_sleep(void)
    6666{
    6767        asm volatile ("hlt\n");
    68 };
     68}
    6969
    7070#define GEN_READ_REG(reg) static inline unative_t read_ ##reg (void) \
     
    8080    }
    8181
    82 GEN_READ_REG(cr0);
    83 GEN_READ_REG(cr2);
    84 GEN_READ_REG(cr3);
    85 GEN_WRITE_REG(cr3);
    86 
    87 GEN_READ_REG(dr0);
    88 GEN_READ_REG(dr1);
    89 GEN_READ_REG(dr2);
    90 GEN_READ_REG(dr3);
    91 GEN_READ_REG(dr6);
    92 GEN_READ_REG(dr7);
    93 
    94 GEN_WRITE_REG(dr0);
    95 GEN_WRITE_REG(dr1);
    96 GEN_WRITE_REG(dr2);
    97 GEN_WRITE_REG(dr3);
    98 GEN_WRITE_REG(dr6);
    99 GEN_WRITE_REG(dr7);
     82GEN_READ_REG(cr0)
     83GEN_READ_REG(cr2)
     84GEN_READ_REG(cr3)
     85GEN_WRITE_REG(cr3)
     86
     87GEN_READ_REG(dr0)
     88GEN_READ_REG(dr1)
     89GEN_READ_REG(dr2)
     90GEN_READ_REG(dr3)
     91GEN_READ_REG(dr6)
     92GEN_READ_REG(dr7)
     93
     94GEN_WRITE_REG(dr0)
     95GEN_WRITE_REG(dr1)
     96GEN_WRITE_REG(dr2)
     97GEN_WRITE_REG(dr3)
     98GEN_WRITE_REG(dr6)
     99GEN_WRITE_REG(dr7)
    100100
    101101/** Byte to port
  • kernel/generic/include/mm/slab.h

    r1e847fb r60133d0  
    7272typedef struct {
    7373        link_t link;
    74         count_t busy;  /**< Count of full slots in magazine */
    75         count_t size;  /**< Number of slots in magazine */
    76         void *objs[0]; /**< Slots in magazine */
     74        count_t busy;   /**< Count of full slots in magazine */
     75        count_t size;   /**< Number of slots in magazine */
     76        void *objs[];   /**< Slots in magazine */
    7777} slab_magazine_t;
    7878
Note: See TracChangeset for help on using the changeset viewer.