Subversion Repositories HelenOS-historic

Compare Revisions

No changes between revisions

Ignore whitespace Rev 467 → Rev 468

/SPARTAN/trunk/clean
0,0 → 1,0
link tools/clean
Property changes:
Added: svn:special
+*
\ No newline at end of property
/SPARTAN/trunk/arch/ia32/include/barrier.h
43,16 → 43,14
#define CS_ENTER_BARRIER() __asm__ volatile ("" ::: "memory")
#define CS_LEAVE_BARRIER() __asm__ volatile ("" ::: "memory")
 
#if (FENCES == p4)
#ifdef CONFIG_FENCES_P4
# define memory_barrier() __asm__ volatile ("mfence\n" ::: "memory")
# define read_barrier() __asm__ volatile ("sfence\n" ::: "memory")
# define write_barrier() __asm__ volatile ("lfence\n" ::: "memory")
#elif (FENCES == p3)
# define memory_barrier() __asm__ volatile ("xchgl %%eax,%%eax\n" ::: "memory")
# define read_barrier() __asm__ volatile ("sfence\n" ::: "memory")
# define write_barrier() __asm__ volatile ("xchgl %%eax,%%eax\n" ::: "memory")
#else
# error Unsupported FENCES value
# define read_barrier() __asm__ volatile ("lfence\n" ::: "memory")
# define write_barrier() __asm__ volatile ("sfence\n" ::: "memory")
#elif CONFIG_FENCES_P3
# define memory_barrier() __asm__ volatile ("\n" ::: "memory")
# define read_barrier() __asm__ volatile ("\n" ::: "memory")
# define write_barrier() __asm__ volatile ("sfence\n" ::: "memory")
#endif
 
#endif
/SPARTAN/trunk/arch/ia32/Makefile.inc
49,27 → 49,27
 
ifeq ($(CPU),athlon-xp)
CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
DEFS += -DFENCES=p3
DEFS += -DCONFIG_FENCES_P3
CONFIG_SMP = n
CONFIG_HT = n
endif
ifeq ($(CPU),athlon-mp)
CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
DEFS += -DFENCES=p3
DEFS += -DCONFIG_FENCES_P3
CONFIG_HT = n
endif
ifeq ($(CPU),pentium3)
CFLAGS += -march=pentium3 -mmmx -msse
DEFS += -DFENCES=p3
DEFS += -DCONFIG_FENCES_P3
CONFIG_HT = n
endif
ifeq ($(CPU),prescott)
CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
DEFS += -DFENCES=p4
DEFS += -DCONFIG_FENCES_P4
endif
ifeq ($(CPU),pentium4)
CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
DEFS += -DFENCES=p4
DEFS += -DCONFIG_FENCES_P4
endif
 
## Own configuration directives