File tree Expand file tree Collapse file tree 8 files changed +93
-0
lines changed Expand file tree Collapse file tree 8 files changed +93
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ C_SRCS += arch/x86/configs/$(CONFIG_BOARD)/ve820.c
140
140
C_SRCS += arch/x86/configs/$(CONFIG_BOARD ) /pt_dev.c
141
141
endif
142
142
143
+ C_SRCS += arch/x86/configs/$(CONFIG_BOARD ) /board.c
144
+
143
145
C_SRCS += boot/acpi.c
144
146
C_SRCS += boot/dmar_parse.c
145
147
S_SRCS += arch/x86/idt.S
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ #include <board.h>
8
+
9
+ struct platform_clos_info platform_clos_array [0 ];
10
+ uint16_t platform_clos_num = 0 ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ #include <board.h>
8
+ #include <msr.h>
9
+
10
+ struct platform_clos_info platform_clos_array [4 ] = {
11
+ {
12
+ .clos_mask = 0xff ,
13
+ .msr_index = MSR_IA32_L2_MASK_0 ,
14
+ },
15
+ {
16
+ .clos_mask = 0xff ,
17
+ .msr_index = MSR_IA32_L2_MASK_1 ,
18
+ },
19
+ {
20
+ .clos_mask = 0xff ,
21
+ .msr_index = MSR_IA32_L2_MASK_2 ,
22
+ },
23
+ {
24
+ .clos_mask = 0xff ,
25
+ .msr_index = MSR_IA32_L2_MASK_3 ,
26
+ },
27
+ };
28
+
29
+ uint16_t platform_clos_num = (uint16_t )(sizeof (platform_clos_array )/sizeof (struct platform_clos_info ));
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ #include <board.h>
8
+
9
+ struct platform_clos_info platform_clos_array [0 ];
10
+ uint16_t platform_clos_num = 0 ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ #include <board.h>
8
+
9
+ struct platform_clos_info platform_clos_array [0 ];
10
+ uint16_t platform_clos_num = 0 ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ #include <board.h>
8
+
9
+ struct platform_clos_info platform_clos_array [0 ];
10
+ uint16_t platform_clos_num = 0 ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2019 Intel Corporation. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ #ifndef BOARD_H
7
+ #define BOARD_H
8
+
9
+ #include <types.h>
10
+
11
+ struct platform_clos_info {
12
+ uint32_t clos_mask ;
13
+ uint32_t msr_index ;
14
+ };
15
+
16
+ extern struct platform_clos_info platform_clos_array [];
17
+ extern uint16_t platform_clos_num ;
18
+
19
+ #endif /* BOARD_H */
Original file line number Diff line number Diff line change 341
341
#define MSR_IA32_PM_CTL1 0x00000DB1U
342
342
#define MSR_IA32_THREAD_STALL 0x00000DB2U
343
343
#define MSR_IA32_L2_MASK_0 0x00000D10U
344
+ #define MSR_IA32_L2_MASK_1 0x00000D11U
345
+ #define MSR_IA32_L2_MASK_2 0x00000D12U
346
+ #define MSR_IA32_L2_MASK_3 0x00000D13U
344
347
#define MSR_IA32_BNDCFGS 0x00000D90U
345
348
#define MSR_IA32_EFER 0xC0000080U
346
349
#define MSR_IA32_STAR 0xC0000081U
You can’t perform that action at this time.
0 commit comments