mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -45,6 +45,9 @@ entry:
|
|||||||
wrpr %g0, 0, %canrestore
|
wrpr %g0, 0, %canrestore
|
||||||
wrpr %g0, 0, %otherwin
|
wrpr %g0, 0, %otherwin
|
||||||
wrpr %g0, 0, %wstate
|
wrpr %g0, 0, %wstate
|
||||||
|
! 100 Hz timer
|
||||||
|
set 10 * 1000 * 1000, %g1
|
||||||
|
wr %g1, 0, %tick_cmpr
|
||||||
|
|
||||||
! Disable I/D MMUs and caches
|
! Disable I/D MMUs and caches
|
||||||
stxa %g0, [%g0] ASI_LSU_CONTROL
|
stxa %g0, [%g0] ASI_LSU_CONTROL
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ NM := sparc64-linux-nm
|
|||||||
STRIP := sparc64-linux-strip
|
STRIP := sparc64-linux-strip
|
||||||
RANLIB := sparc64-linux-ranlib
|
RANLIB := sparc64-linux-ranlib
|
||||||
CFLAGS := -Os -Wall -W -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS -g
|
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+= -fno-builtin -nostdlib -ffreestanding
|
||||||
CFLAGS+= -Wredundant-decls -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
|
CFLAGS+= -Wredundant-decls -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
|
||||||
CFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing
|
CFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing
|
||||||
INCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
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
|
# pre rules
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ ifeq ($(shell uname), Linux)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS := -Os -Wall -W -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS -fno-builtin -g
|
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+= -Wredundant-decls -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
|
||||||
CFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing
|
CFLAGS+= -Wundef -Wendif-labels -Wstrict-aliasing
|
||||||
INCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
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
|
# pre rules
|
||||||
|
|||||||
Reference in New Issue
Block a user