Fix compilation failure for CONFIG_SMP=y builds.
This commit is contained in:
parent
4db99f4012
commit
f9accfb8ff
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#if defined(CONFIG_SMP) && defined(__GNUC__)
|
#if defined(CONFIG_SMP) && defined(__GNUC__)
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
typedef unsigned int bitchunk_t;
|
||||||
static inline void bits_fill(bitchunk_t * chunks, unsigned bits)
|
static inline void bits_fill(bitchunk_t * chunks, unsigned bits)
|
||||||
{
|
{
|
||||||
unsigned c, cnt;
|
unsigned c, cnt;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
/* The following are so basic, all the *.c files get them automatically. */
|
/* The following are so basic, all the *.c files get them automatically. */
|
||||||
#include <minix/config.h> /* MUST be first */
|
#include <minix/config.h> /* MUST be first */
|
||||||
|
#include <limits.h>
|
||||||
#include <minix/type.h>
|
#include <minix/type.h>
|
||||||
#include <minix/ipc.h>
|
#include <minix/ipc.h>
|
||||||
#include <minix/com.h>
|
#include <minix/com.h>
|
||||||
|
|
@ -19,7 +20,6 @@
|
||||||
#include <minix/sysutil.h>
|
#include <minix/sysutil.h>
|
||||||
#include <minix/endpoint.h>
|
#include <minix/endpoint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
/* The following are so basic, all the *.c files get them automatically. */
|
/* The following are so basic, all the *.c files get them automatically. */
|
||||||
#include <minix/config.h> /* MUST be first */
|
#include <minix/config.h> /* MUST be first */
|
||||||
|
#include <limits.h>
|
||||||
#include <minix/bitmap.h>
|
#include <minix/bitmap.h>
|
||||||
#include <minix/callnr.h>
|
#include <minix/callnr.h>
|
||||||
#include <minix/com.h>
|
#include <minix/com.h>
|
||||||
|
|
@ -34,7 +35,6 @@
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <lib.h>
|
#include <lib.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __SPINLOCK_H__
|
#ifndef __SPINLOCK_H__
|
||||||
#define __SPINLOCK_H__
|
#define __SPINLOCK_H__
|
||||||
|
|
||||||
#include "kernel/kernel.h"
|
#include <machine/archtypes.h>
|
||||||
|
|
||||||
typedef struct spinlock {
|
typedef struct spinlock {
|
||||||
atomic_t val;
|
atomic_t val;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
#include <machine/interrupt.h>
|
#include <machine/interrupt.h>
|
||||||
#include <machine/multiboot.h>
|
#include <machine/multiboot.h>
|
||||||
|
|
||||||
|
typedef uint32_t bitchunk_t;
|
||||||
|
|
||||||
/* Process table and system property related types. */
|
/* Process table and system property related types. */
|
||||||
typedef int proc_nr_t; /* process table entry number */
|
typedef int proc_nr_t; /* process table entry number */
|
||||||
typedef short sys_id_t; /* system process index */
|
typedef short sys_id_t; /* system process index */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user