Module Name:    src
Committed By:   skrll
Date:           Sun Dec 26 08:41:29 UTC 2021

Modified Files:
        src/sys/arch/arm/include: mutex.h

Log Message:
port-arm/50563: pool allocator corruption due to __MUTEX_PRIVATE

This file has moved on somewhat since the PR was raised, but nevertheless
let's add the CTASSERT "just in case".


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/arm/include/mutex.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/include/mutex.h
diff -u src/sys/arch/arm/include/mutex.h:1.26 src/sys/arch/arm/include/mutex.h:1.27
--- src/sys/arch/arm/include/mutex.h:1.26	Wed Aug 25 04:13:41 2021
+++ src/sys/arch/arm/include/mutex.h	Sun Dec 26 08:41:29 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mutex.h,v 1.26 2021/08/25 04:13:41 thorpej Exp $	*/
+/*	$NetBSD: mutex.h,v 1.27 2021/12/26 08:41:29 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -82,4 +82,6 @@ struct kmutex {
 
 #endif	/* __MUTEX_PRIVATE */
 
+__CTASSERT(sizeof(struct kmutex) == sizeof(uintptr_t));
+
 #endif /* _ARM_MUTEX_H_ */

Reply via email to