cyrix.c (04ba8747e1329fa9e274b4634d792f811a3b0677) cyrix.c (f8bd9f25c9815161a39886fdd96d110b536a6074)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/init.h>
3#include <linux/io.h>
4#include <linux/mm.h>
5
6#include <asm/processor-cyrix.h>
7#include <asm/processor-flags.h>
8#include <asm/mtrr.h>

--- 220 unchanged lines hidden (view full) ---

229 setCx86(arr + 0, ((unsigned char *)&base)[3]);
230 setCx86(arr + 1, ((unsigned char *)&base)[2]);
231 setCx86(arr + 2, (((unsigned char *)&base)[1]) | arr_size);
232 setCx86(CX86_RCR_BASE + reg, arr_type);
233
234 post_set();
235}
236
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/init.h>
3#include <linux/io.h>
4#include <linux/mm.h>
5
6#include <asm/processor-cyrix.h>
7#include <asm/processor-flags.h>
8#include <asm/mtrr.h>

--- 220 unchanged lines hidden (view full) ---

229 setCx86(arr + 0, ((unsigned char *)&base)[3]);
230 setCx86(arr + 1, ((unsigned char *)&base)[2]);
231 setCx86(arr + 2, (((unsigned char *)&base)[1]) | arr_size);
232 setCx86(CX86_RCR_BASE + reg, arr_type);
233
234 post_set();
235}
236
237static const struct mtrr_ops cyrix_mtrr_ops = {
237const struct mtrr_ops cyrix_mtrr_ops = {
238 .vendor = X86_VENDOR_CYRIX,
239 .set = cyrix_set_arr,
240 .get = cyrix_get_arr,
241 .get_free_region = cyrix_get_free_region,
242 .validate_add_page = generic_validate_add_page,
243 .have_wrcomb = positive_have_wrcomb,
244};
238 .vendor = X86_VENDOR_CYRIX,
239 .set = cyrix_set_arr,
240 .get = cyrix_get_arr,
241 .get_free_region = cyrix_get_free_region,
242 .validate_add_page = generic_validate_add_page,
243 .have_wrcomb = positive_have_wrcomb,
244};
245
246int __init cyrix_init_mtrr(void)
247{
248 set_mtrr_ops(&cyrix_mtrr_ops);
249 return 0;
250}