diff options
author | Richard Braun <rbraun@sceen.net> | 2017-02-04 16:21:10 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-02-04 16:21:10 +0100 |
commit | 7a00044da882d30b1dea8757c7f6a1ccaa9ee08d (patch) | |
tree | 9e342eca8a673ac9b0982c3e4bda22ff5158690e /kern/spinlock_types.h | |
parent | d09b913612712c7d58e5ee3ee20703cce63ad0b0 (diff) |
kern/types: split into module-specific type headers
Using a single header for all types causing inclusion circular
dependencies isn't very elegant and doesn't scale.
Diffstat (limited to 'kern/spinlock_types.h')
-rw-r--r-- | kern/spinlock_types.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kern/spinlock_types.h b/kern/spinlock_types.h new file mode 100644 index 00000000..f5a03866 --- /dev/null +++ b/kern/spinlock_types.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2017 Richard Braun. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * + * Isolated type definition used to avoid inclusion circular dependencies. + */ + +#ifndef _KERN_SPINLOCK_TYPES_H +#define _KERN_SPINLOCK_TYPES_H + +struct spinlock { + unsigned int locked; +}; + +#endif /* _KERN_SPINLOCK_TYPES_H */ |