Skip to content
Snippets Groups Projects
Commit 68cebb80 authored by Shinya Kuribayashi's avatar Shinya Kuribayashi
Browse files

MIPS: Move timer code to arch/mips/cpu/$(CPU)/


Current timer routines (arch/mips/lib/timer.c) are implemented assuming
that MIPS32 coprocessor (CP0) resources, Counter and Compare registers
in this case, are available.  But this doesn't always work.

We need to make sure that all MIPS-based systems don't necessarily use
CP0 counter/compare registers as time keeping resources.  And some MIPS
variant processors might come with different hardware specs with genuine
MIPS32 CP0 registers.

With this change, each $(CPU)/ directory can have its own timer code.

Signed-off-by: default avatarShinya Kuribayashi <skuribay@pobox.com>
parent 660da094
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ LIB = $(obj)lib$(CPU).o ...@@ -27,7 +27,7 @@ LIB = $(obj)lib$(CPU).o
START = start.o START = start.o
SOBJS-y = cache.o SOBJS-y = cache.o
COBJS-y = cpu.o interrupts.o COBJS-y = cpu.o interrupts.o time.o
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
......
File moved
...@@ -33,7 +33,6 @@ COBJS-y += bootm_qemu_mips.o ...@@ -33,7 +33,6 @@ COBJS-y += bootm_qemu_mips.o
else else
COBJS-y += bootm.o COBJS-y += bootm.o
endif endif
COBJS-y += time.o
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment