ia64/xen-unstable

view config/SunOS.mk @ 16412:8c305873f2b8

x86: Make IDT/GDT/LDT updates safe.

This involves either determining that the entry will not be
read/written while the update takes place, or atomically making the
entry 'present', or doing the entire write atomically, as appropriate.

This issue raised, and original patch provided, by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Nov 21 11:38:51 2007 +0000 (2007-11-21)
parents 3d13b318349a
children d57a94546911
line source
1 AS = $(CROSS_COMPILE)gas
2 LD = $(CROSS_COMPILE)gld
3 CC = $(CROSS_COMPILE)gcc
4 CPP = $(CROSS_COMPILE)gcc -E
5 AR = $(CROSS_COMPILE)gar
6 RANLIB = $(CROSS_COMPILE)granlib
7 NM = $(CROSS_COMPILE)gnm
8 STRIP = $(CROSS_COMPILE)gstrip
9 OBJCOPY = $(CROSS_COMPILE)gobjcopy
10 OBJDUMP = $(CROSS_COMPILE)gobjdump
12 MSGFMT = gmsgfmt
14 SHELL = bash
16 INSTALL = ginstall
17 INSTALL_DIR = $(INSTALL) -d -m0755 -p
18 INSTALL_DATA = $(INSTALL) -m0644 -p
19 INSTALL_PROG = $(INSTALL) -m0755 -p
21 LIB64DIR = lib/amd64
23 SOCKET_LIBS = -lsocket
24 CURSES_LIBS = -lcurses
25 UTIL_LIBS =
26 SONAME_LDFLAG = -h
27 SHLIB_CFLAGS = -R /usr/sfw/$(LIBDIR) -shared
29 ifneq ($(debug),y)
30 # Optimisation flags are overridable
31 CFLAGS ?= -O2 -fno-omit-frame-pointer
32 else
33 # Less than -O1 produces bad code and large stack frames
34 CFLAGS ?= -O1 -fno-omit-frame-pointer
35 endif
37 CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__