1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Forced 32bit alignment of struct simple_lock.

This commit is contained in:
Steve Passe 1997-07-23 20:40:52 +00:00
parent 194fb96e6a
commit 740dc1b5f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27632
2 changed files with 6 additions and 4 deletions

View File

@ -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 */

View File

@ -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 */