xref: /xnu-12377.1.9/tests/apple_generic_timer_legacy.c (revision f6217f891ac0bb64f3d375211650a4c1ff8ca1ea)
1*f6217f89SApple OSS Distributions #include <darwintest.h>
2*f6217f89SApple OSS Distributions #include <sys/sysctl.h>
3*f6217f89SApple OSS Distributions #include "apple_generic_timer.h"
4*f6217f89SApple OSS Distributions #include "test_utils.h"
5*f6217f89SApple OSS Distributions 
6*f6217f89SApple OSS Distributions T_GLOBAL_META(
7*f6217f89SApple OSS Distributions 	T_META_NAMESPACE("xnu.arm"),
8*f6217f89SApple OSS Distributions 	T_META_RADAR_COMPONENT_NAME("xnu"),
9*f6217f89SApple OSS Distributions 	T_META_RADAR_COMPONENT_VERSION("arm"),
10*f6217f89SApple OSS Distributions 	T_META_ENABLED(TARGET_CPU_ARM64),
11*f6217f89SApple OSS Distributions 	T_META_OWNER("xi_han"),
12*f6217f89SApple OSS Distributions 	T_META_RUN_CONCURRENTLY(true),
13*f6217f89SApple OSS Distributions 	XNU_T_META_SOC_SPECIFIC
14*f6217f89SApple OSS Distributions 	);
15*f6217f89SApple OSS Distributions 
16*f6217f89SApple OSS Distributions T_DECL(apple_generic_timer_legacy,
17*f6217f89SApple OSS Distributions     "Test that CNTFRQ_EL0 reads the correct frequency when built with old SDKs")
18*f6217f89SApple OSS Distributions {
19*f6217f89SApple OSS Distributions 	/* Always expect 24 MHz. Check Makefile for SDK version overrides. */
20*f6217f89SApple OSS Distributions 	agt_test_helper(false);
21*f6217f89SApple OSS Distributions }
22