Set up tick_cmpr, update assembly flags

git-svn-id: svn://coreboot.org/openbios/openbios-devel@209 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-07-18 10:29:47 +00:00
parent 67ff89df9f
commit 1a3d4f52b4
3 changed files with 7 additions and 4 deletions

View File

@@ -45,6 +45,9 @@ entry:
wrpr %g0, 0, %canrestore
wrpr %g0, 0, %otherwin
wrpr %g0, 0, %wstate
! 100 Hz timer
set 10 * 1000 * 1000, %g1
wr %g1, 0, %tick_cmpr
! Disable I/D MMUs and caches
stxa %g0, [%g0] ASI_LSU_CONTROL

View File

@@ -20,12 +20,12 @@ NM := sparc64-linux-nm
STRIP := sparc64-linux-strip
RANLIB := sparc64-linux-ranlib
CFLAGS := -Os -Wall -W -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS -g
CFLAGS+= -Wa,-xarch=v9 -Wa,-64 -m64 -mcpu=ultrasparc -mcmodel=medany
CFLAGS+= -Wa,-xarch=v9b -Wa,-64 -m64 -mcpu=ultrasparc -mcmodel=medany
CFLAGS+= -fno-builtin -nostdlib -ffreestanding
CFLAGS+= -Wredundant-decls -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
CFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing
INCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
AS_FLAGS := -Wa,-xarch=v9 -Wa,-64 -g
AS_FLAGS := -Wa,-xarch=v9b -Wa,-64 -g
#
# pre rules

View File

@@ -29,11 +29,11 @@ ifeq ($(shell uname), Linux)
endif
CFLAGS := -Os -Wall -W -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS -fno-builtin -g
CFLAGS+= -Wa,-xarch=v9 -Wa,-64 -m64 -mcpu=ultrasparc -mcmodel=medany
CFLAGS+= -Wa,-xarch=v9b -Wa,-64 -m64 -mcpu=ultrasparc -mcmodel=medany
CFLAGS+= -Wredundant-decls -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
CFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing
INCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
AS_FLAGS := -Wa,-xarch=v9 -Wa,-64 -g
AS_FLAGS := -Wa,-xarch=v9b -Wa,-64 -g
#
# pre rules