Changeset 60133d0 in mainline
- Timestamp:
- 2007-05-31T23:30:32Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff3a34b
- Parents:
- 1e847fb
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r1e847fb r60133d0 39 39 DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL 40 40 CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ 41 #SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all 41 42 LFLAGS = -M 42 43 AFLAGS = … … 121 122 ifeq ($(COMPILER),gcc_native) 122 123 CC = gcc 124 AS_CC = gcc 123 125 AS = as 124 126 LD = ld … … 130 132 ifeq ($(COMPILER),icc_native) 131 133 CC = icc 134 AS_CC = gcc 132 135 AS = as 133 136 LD = ld … … 139 142 ifeq ($(COMPILER),suncc_native) 140 143 CC = suncc 144 AS_CC = gcc 141 145 AS = as 142 146 LD = ld … … 148 152 ifeq ($(COMPILER),gcc_cross) 149 153 CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc 154 AS_CC = $(CC) 150 155 AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as 151 156 LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld … … 332 337 333 338 %.o: %.S 334 $( CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@339 $(AS_CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 335 340 336 341 %.o: %.s -
kernel/arch/ia32/include/asm.h
r1e847fb r60133d0 61 61 { 62 62 asm volatile ("hlt\n"); 63 } ;63 } 64 64 65 65 static inline void cpu_sleep(void) 66 66 { 67 67 asm volatile ("hlt\n"); 68 } ;68 } 69 69 70 70 #define GEN_READ_REG(reg) static inline unative_t read_ ##reg (void) \ … … 80 80 } 81 81 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) ;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) 100 100 101 101 /** Byte to port -
kernel/generic/include/mm/slab.h
r1e847fb r60133d0 72 72 typedef struct { 73 73 link_t link; 74 count_t busy; 75 count_t size; 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 */ 77 77 } slab_magazine_t; 78 78
Note:
See TracChangeset
for help on using the changeset viewer.