Project

General

Profile

Bug #5461 ยป page.diff

Gary Mills, 2014-12-21 01:51 PM

View differences:

vm_pagelist.c Wed Dec 10 12:36:17 2014
23 23
 */
24 24

  
25 25
/*
26
 * Copyright 2015 Gary Mills
26 27
 * Copyright 2012 Joyent, Inc.  All rights reserved.
27 28
 */
28 29

  
......
72 73
/* vm_cpu_data0 for the boot cpu before kmem is initialized */
73 74

  
74 75
#if L2CACHE_ALIGN_MAX <= MAX_PRAGMA_ALIGN
75
#pragma align	L2CACHE_ALIGN_MAX(vm_cpu_data0)
76
#define	_ALIGNV L2CACHE_ALIGN_MAX
76 77
#else
77
#pragma align	MAX_PRAGMA_ALIGN(vm_cpu_data0)
78
#define	_ALIGNV MAX_PRAGMA_ALIGN
78 79
#endif
80

  
81
#ifdef	__GNUC__
82
char		vm_cpu_data0[VM_CPU_DATA_PADSIZE] \
83
		__attribute__ ((aligned (_ALIGNV)));
84
#else
85
#pragma	align _ALIGNV(vm_cpu_data0)
79 86
char		vm_cpu_data0[VM_CPU_DATA_PADSIZE];
87
#endif
80 88

  
81 89
/*
82 90
 * number of page colors equivalent to reqested color in page_get routines.
    (1-1/1)