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