Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/footbridge Move the ipl_cookie_t definition ear...
details: https://anonhg.NetBSD.org/src/rev/cfeb391fd4a1
branches: trunk
changeset: 343225:cfeb391fd4a1
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 25 16:41:06 2016 +0000
description:
Move the ipl_cookie_t definition earlier, since the mutex internal impl
uses it.
diffstat:
sys/arch/arm/footbridge/footbridge_intr.h | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r d662627af284 -r cfeb391fd4a1 sys/arch/arm/footbridge/footbridge_intr.h
--- a/sys/arch/arm/footbridge/footbridge_intr.h Mon Jan 25 16:34:52 2016 +0000
+++ b/sys/arch/arm/footbridge/footbridge_intr.h Mon Jan 25 16:41:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: footbridge_intr.h,v 1.17 2016/01/25 16:30:42 christos Exp $ */
+/* $NetBSD: footbridge_intr.h,v 1.18 2016/01/25 16:41:06 christos Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -38,6 +38,11 @@
#ifndef _FOOTBRIDGE_INTR_H_
#define _FOOTBRIDGE_INTR_H_
+typedef uint8_t ipl_t;
+typedef struct {
+ ipl_t _ipl;
+} ipl_cookie_t;
+
#include <arm/mutex.h>
#include <arm/cpu.h>
#include <arm/armreg.h>
@@ -160,10 +165,6 @@
#define spl0() (void)_spllower(IPL_NONE)
#define spllowersoftclock() (void)_spllower(IPL_SOFTCLOCK)
-typedef uint8_t ipl_t;
-typedef struct {
- ipl_t _ipl;
-} ipl_cookie_t;
static inline ipl_cookie_t
makeiplcookie(ipl_t ipl)
Home |
Main Index |
Thread Index |
Old Index