HPET can be used as system clock for x86_64 to set HPET as system clock you have to enable: CONFIG_ONESHOT=y CONFIG_ALARM_ARCH=y CONFIG_INTEL64_ONESHOT=y CONFIG_ARCH_INTEL64_HPET_ALARM=y Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
79 lines
2.5 KiB
Plaintext
79 lines
2.5 KiB
Plaintext
############################################################################
|
|
# arch/x86_64/src/intel64/Make.defs
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership. The
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance with the
|
|
# License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
############################################################################
|
|
|
|
include common/Make.defs
|
|
|
|
CMN_CSRCS += intel64_createstack.c intel64_initialstate.c intel64_irq.c
|
|
CMN_CSRCS += intel64_map_region.c intel64_regdump.c intel64_releasestack.c
|
|
CMN_CSRCS += intel64_rtc.c intel64_restore_auxstate.c intel64_savestate.c
|
|
CMN_CSRCS += intel64_stackframe.c intel64_schedulesigaction.c
|
|
CMN_CSRCS += intel64_sigdeliver.c intel64_usestack.c x86_64_tcbinfo.c
|
|
CMN_CSRCS += intel64_systemreset.c intel64_freq.c intel64_cache.c
|
|
|
|
# Required Intel64 files
|
|
|
|
CHIP_ASRCS = intel64_saveusercontext.S intel64_fullcontextrestore.S intel64_vectors.S intel64_head.S
|
|
CHIP_CSRCS = intel64_start.c intel64_handlers.c intel64_idle.c intel64_lowsetup.c
|
|
CHIP_CSRCS += intel64_serial.c intel64_rng.c intel64_check_capability.c
|
|
CHIP_CSRCS += intel64_cpu.c
|
|
|
|
ifeq ($(CONFIG_MM_PGALLOC),y)
|
|
CHIP_CSRCS += intel64_pgalloc.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_HAVE_TESTSET), y)
|
|
CHIP_ASRCS += intel64_testset.S
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SMP),y)
|
|
CHIP_CSRCS += intel64_cpuidlestack.c
|
|
CHIP_CSRCS += intel64_cpupause.c
|
|
CHIP_CSRCS += intel64_cpustart.c
|
|
endif
|
|
|
|
# Configuration-dependent intel64 files
|
|
|
|
ifeq ($(CONFIG_MULTBOOT2_FB_TERM),y)
|
|
CHIP_CSRCS += intel64_mbfb.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_INTEL64_HAVE_TSC),y)
|
|
ifeq ($(CONFIG_SCHED_TICKLESS),y)
|
|
CHIP_CSRCS += intel64_tsc_tickless.c
|
|
else
|
|
CHIP_CSRCS += intel64_tsc_timerisr.c
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_INTEL64_HPET),y)
|
|
CHIP_CSRCS += intel64_hpet.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_INTEL64_HPET_ALARM),y)
|
|
CHIP_CSRCS += intel64_hpet_alarm.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_INTEL64_ONESHOT),y)
|
|
CHIP_CSRCS += intel64_oneshot.c intel64_oneshot_lower.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
|
CHIP_CSRCS += intel64_fpucmp.c
|
|
endif |