Forced 32bit alignment of struct simple_lock.
This commit is contained in:
parent
194fb96e6a
commit
740dc1b5f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27632
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)lock.h 8.12 (Berkeley) 5/19/95
|
||||
* $Id$
|
||||
* $Id: lock.h,v 1.2 1997/07/23 18:34:21 smp Exp smp $
|
||||
*/
|
||||
|
||||
#ifndef _LOCK_H_
|
||||
@ -47,7 +47,8 @@
|
||||
* can be gained. The simple locks are defined in <machine/param.h>.
|
||||
*/
|
||||
struct lock {
|
||||
struct simplelock lk_interlock; /* lock on remaining fields */
|
||||
struct simplelock lk_interlock __attribute__ ((aligned (4)));
|
||||
/* lock on remaining fields */
|
||||
u_int lk_flags; /* see below */
|
||||
int lk_sharecount; /* # of accepted shared locks */
|
||||
int lk_waitcount; /* # of processes sleeping for lock */
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)lock.h 8.12 (Berkeley) 5/19/95
|
||||
* $Id$
|
||||
* $Id: lock.h,v 1.2 1997/07/23 18:34:21 smp Exp smp $
|
||||
*/
|
||||
|
||||
#ifndef _LOCK_H_
|
||||
@ -47,7 +47,8 @@
|
||||
* can be gained. The simple locks are defined in <machine/param.h>.
|
||||
*/
|
||||
struct lock {
|
||||
struct simplelock lk_interlock; /* lock on remaining fields */
|
||||
struct simplelock lk_interlock __attribute__ ((aligned (4)));
|
||||
/* lock on remaining fields */
|
||||
u_int lk_flags; /* see below */
|
||||
int lk_sharecount; /* # of accepted shared locks */
|
||||
int lk_waitcount; /* # of processes sleeping for lock */
|
||||
|
Loading…
Reference in New Issue
Block a user