Fix compilation failure for CONFIG_SMP=y builds.

This commit is contained in:
Justinien Bouron 2019-03-10 04:23:14 -07:00
parent 4db99f4012
commit f9accfb8ff
5 changed files with 6 additions and 3 deletions

View File

@ -19,6 +19,7 @@
#if defined(CONFIG_SMP) && defined(__GNUC__)
#ifndef __ASSEMBLY__
typedef unsigned int bitchunk_t;
static inline void bits_fill(bitchunk_t * chunks, unsigned bits)
{
unsigned c, cnt;

View File

@ -9,6 +9,7 @@
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
#include <limits.h>
#include <minix/type.h>
#include <minix/ipc.h>
#include <minix/com.h>
@ -19,7 +20,6 @@
#include <minix/sysutil.h>
#include <minix/endpoint.h>
#include <string.h>
#include <limits.h>
#include <stddef.h>
#include <errno.h>
#include <sys/param.h>

View File

@ -11,6 +11,7 @@
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
#include <limits.h>
#include <minix/bitmap.h>
#include <minix/callnr.h>
#include <minix/com.h>
@ -34,7 +35,6 @@
#include <errno.h>
#include <lib.h>
#include <limits.h>
#include <signal.h>
#include <stddef.h>
#include <stdlib.h>

View File

@ -1,7 +1,7 @@
#ifndef __SPINLOCK_H__
#define __SPINLOCK_H__
#include "kernel/kernel.h"
#include <machine/archtypes.h>
typedef struct spinlock {
atomic_t val;

View File

@ -5,6 +5,8 @@
#include <machine/interrupt.h>
#include <machine/multiboot.h>
typedef uint32_t bitchunk_t;
/* Process table and system property related types. */
typedef int proc_nr_t; /* process table entry number */
typedef short sys_id_t; /* system process index */