Move archtypes.h, fpu.h, and stackframe.h

Move archtypes.h to include/ dir, since several servers require it. Move
fpu.h and stackframe.h to arch-specific header directory. Make source
files and makefiles aware of the new header locations.
This commit is contained in:
Arun Thomas 2010-03-09 09:41:14 +00:00
parent 27d53256e4
commit 1f9ce647cf
40 changed files with 45 additions and 45 deletions

View file

@ -33,7 +33,7 @@
#undef EXTERN /* <minix/const.h> defined this */
#define EXTERN /* so we get proc & mproc */
#include "../../kernel/arch/i386/include/archtypes.h"
#include <machine/archtypes.h>
#include "../../kernel/const.h"
#include "../../kernel/type.h"
#include "../../kernel/proc.h"

View file

@ -10,7 +10,7 @@
#undef EXTERN
#define EXTERN
#include "../../kernel/arch/i386/include/archtypes.h"
#include <machine/archtypes.h>
#include "../../servers/pm/const.h"
#include "../../servers/pm/type.h"
#include "../../servers/pm/mproc.h"

View file

@ -14,7 +14,7 @@
#include <string.h>
#include <sys/ptrace.h>
#include <kernel/arch/i386/include/archtypes.h>
#include <machine/archtypes.h>
#include <kernel/const.h>
#include <kernel/type.h>
#include <kernel/proc.h>

View file

@ -11,7 +11,7 @@
#include <sys/ptrace.h>
#include "proto.h"
#include <kernel/arch/i386/include/archtypes.h>
#include <machine/archtypes.h>
#include <kernel/const.h>
#include <kernel/type.h>
#include <kernel/proc.h>

View file

@ -45,7 +45,7 @@
#include <setjmp.h>
#include "proto.h"
#include "../../kernel/arch/i386/include/archtypes.h"
#include <machine/archtypes.h>
#include <kernel/const.h>
#include <kernel/type.h>
#include <kernel/proc.h>

View file

@ -78,7 +78,7 @@
#include <stdio.h>
#include <ttyent.h>
#include "../../kernel/arch/i386/include/archtypes.h"
#include <machine/archtypes.h>
#include "../../kernel/const.h"
#include "../../kernel/type.h"
#include "../../kernel/proc.h"

View file

@ -15,7 +15,7 @@
#include <string.h>
#include <stdlib.h>
#include "../../kernel/arch/i386/include/archtypes.h"
#include <machine/archtypes.h>
#include "../../kernel/proc.h"
#define CLICK_WORDS (CLICK_SIZE / sizeof(unsigned long))

View file

@ -34,7 +34,7 @@
#include <minix/u64.h>
#include "../../kernel/arch/i386/include/archtypes.h"
#include <machine/archtypes.h>
#include "../../servers/pm/mproc.h"
#include "../../kernel/const.h"
#include "../../kernel/proc.h"

View file

@ -14,7 +14,7 @@ d = ..
# programs, flags, etc.
MAKE = exec make
CC = exec cc
CPPFLAGS = -I.. -I../.. -I../../kernel/arch/$(ARCH)/include -I$i
CPPFLAGS = -I.. -I../.. -I$i
CFLAGS = $(CPPFLAGS)
LDFLAGS = -i
LIBS = -lsys -ltimers

View file

@ -14,7 +14,7 @@
#include <termios.h>
#include <signal.h>
#include <unistd.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include <minix/callnr.h>
#include <minix/com.h>
#include <minix/keymap.h>

View file

@ -1,6 +1,7 @@
INCSDIR= /usr/include/i386
INCS= bios.h cmos.h cpu.h diskparm.h int86.h interrupt.h memory.h \
partition.h pci.h ports.h vm.h
INCS= archtypes.h bios.h cmos.h cpu.h diskparm.h fpu.h int86.h \
interrupt.h memory.h partition.h pci.h ports.h stackframe.h \
vm.h
.include <minix.kinc.mk>

View file

@ -3,9 +3,8 @@
#define _I386_TYPES_H
#include <minix/sys_config.h>
#include "archconst.h"
#include <sys/stackframe.h>
#include <sys/fpu.h>
#include <machine/stackframe.h>
#include <machine/fpu.h>
struct segdesc_s { /* segment descriptor for protected mode */
u16_t limit_low;

View file

@ -1,3 +1,5 @@
#ifndef _MINIX_CONST_H
#define _MINIX_CONST_H
#ifndef CHIP
#error CHIP is not defined
@ -151,3 +153,5 @@
#define VERBOSEBOOT_BASIC 1
#define VERBOSEBOOT_MAX 2
#define VERBOSEBOOTVARNAME "verbose"
#endif /* _MINIX_CONST_H */

View file

@ -2,12 +2,12 @@
INCSDIR= /usr/include/sys
INCS= asynchio.h dir.h file.h fpu.h ioc_cmos.h ioc_disk.h \
INCS= asynchio.h dir.h file.h ioc_cmos.h ioc_disk.h \
ioc_file.h ioc_memory.h ioc_scsi.h ioc_sound.h ioc_tape.h \
ioctl.h ioc_tty.h ipc.h jmp_buf.h kbdio.h mman.h \
mount.h mtio.h param.h ptrace.h queue.h resource.h \
select.h sem.h shm.h sigcontext.h signal.h socket.h \
soundcard.h stackframe.h statfs.h stat.h svrctl.h timeb.h \
soundcard.h statfs.h stat.h svrctl.h timeb.h \
time.h times.h types.h uio.h un.h utsname.h video.h vm.h \
wait.h

View file

@ -23,8 +23,8 @@
* be added in a different struct.
*/
#if (_MINIX_CHIP == _CHIP_INTEL)
#include <sys/stackframe.h>
#include <sys/fpu.h>
#include <machine/stackframe.h>
#include <machine/fpu.h>
typedef struct stackframe_s sigregs;
struct sigframe { /* stack frame created for signalled process */

View file

@ -1,4 +1,4 @@
#include <archconst.h>
#include "archconst.h"
#include "apic.h"
#include "sconst.h"
#include "apic_asm.h"

View file

@ -4,7 +4,7 @@
#include <minix/config.h>
#include <minix/const.h>
#include <machine/interrupt.h>
#include <archconst.h>
#include "archconst.h"
#include "../../const.h"
#include "sconst.h"

View file

@ -68,7 +68,7 @@ begbss:
#include <minix/const.h>
#include <minix/com.h>
#include <machine/interrupt.h>
#include <archconst.h>
#include "archconst.h"
#include "../../const.h"
#include "../../proc.h"
#include "sconst.h"

View file

@ -5,7 +5,7 @@
#include "../../kernel.h"
#include "../../proc.h"
#include <archconst.h>
#include "archconst.h"
#include "proto.h"

View file

@ -10,8 +10,8 @@
#include <minix/portio.h>
#include <minix/cpufeature.h>
#include <a.out.h>
#include <archconst.h>
#include "archconst.h"
#include "proto.h"
#include "../../proc.h"
#include "../../debug.h"

View file

@ -12,7 +12,8 @@
#endif
#include <minix/config.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include "archconst.h"
#include "config.h"
#include "debug.h"

View file

@ -15,7 +15,7 @@
#include "kernel.h"
#include "proc.h"
#include <archconst.h>
#include "archconst.h"
#include "arch/i386/hw_intr.h"

View file

@ -13,6 +13,7 @@
* Jul 01, 2005 Created. (Jorrit N. Herder)
*/
#include <minix/com.h>
#include <minix/const.h>
#include "const.h"
#include "type.h"

View file

@ -4,7 +4,7 @@
#define PROTO_H
#include <minix/safecopies.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include <a.out.h>
/* Struct declarations. */

View file

@ -15,7 +15,7 @@ f = $u/src/servers/fs
# programs, flags, etc.
CC = exec cc
CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$i
CPPFLAGS=-I$i
CFLAGS = $(CPROFILE) $(CPPFLAGS)
LDFLAGS = -i
LIBS = -lsys

View file

@ -28,7 +28,7 @@
#include <unistd.h>
#include <signal.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include "proto.h"
#include "glo.h"

View file

@ -12,7 +12,7 @@ k = $u/src/kernel
# programs, flags, etc.
CC = exec cc
CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$i
CPPFLAGS=-I$i
CFLAGS = $(CPROFILE) $(CPPFLAGS)
LDFLAGS = -i

View file

@ -9,7 +9,6 @@
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <archconst.h>
#include "mproc.h"

View file

@ -26,8 +26,7 @@
#include <sys/resource.h>
#include <sys/utsname.h>
#include <string.h>
#include <archconst.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include <env.h>
#include "mproc.h"
#include "param.h"

View file

@ -24,8 +24,7 @@
#include <minix/type.h>
#include <minix/vm.h>
#include <string.h>
#include <archconst.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include <lib.h>
#include <assert.h>
#include "mproc.h"

View file

@ -22,8 +22,7 @@
#include <minix/config.h>
#include <timers.h>
#include <string.h>
#include <archconst.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include "../../kernel/const.h"
#include "../../kernel/config.h"
#include "../../kernel/type.h"

View file

@ -13,7 +13,7 @@ b = $i/ibm
# programs, flags, etc.
CC = exec cc
CPPFLAGS = -I../../kernel/arch/$(ARCH)/include
CPPFLAGS =
CFLAGS = -I$i $(CPROFILE) $(CPPFLAGS)
LDFLAGS = -i
LIBS = -lsys

View file

@ -27,7 +27,7 @@
#include <minix/dmap.h>
#include <minix/endpoint.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include <timers.h> /* For priv.h */
#include "../../kernel/priv.h"
#include "../../kernel/ipc.h"

View file

@ -8,7 +8,7 @@ OBJ = main.o alloc.o utility.o exec.o exit.o fork.o break.o \
physravl.o rs.o queryexit.o map_mem.o
ARCHOBJ = $(ARCH)/vm.o $(ARCH)/pagetable.o $(ARCH)/arch_pagefaults.o $(ARCH)/util.o
CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$(ARCH)
CPPFLAGS=-I$(ARCH)
CFLAGS = $(CPROFILE) $(CPPFLAGS)
# build local binary

View file

@ -3,7 +3,7 @@ include /etc/make.conf
OBJ = vm.o pagetable.o arch_pagefaults.o util.o
CPPFLAGS=-I../../../kernel/arch/$(ARCH)/include -I.
CPPFLAGS=-I.
CFLAGS = $(CPROFILE) $(CPPFLAGS)
all: $(OBJ)

View file

@ -1,5 +1,4 @@
#include <archtypes.h>
#include <minix/config.h>
#include <minix/const.h>
#include <minix/type.h>

View file

@ -34,7 +34,7 @@
extern int missing_spares;
#include <archtypes.h>
#include <machine/archtypes.h>
#include "../../kernel/const.h"
#include "../../kernel/config.h"
#include "../../kernel/proc.h"

View file

@ -29,8 +29,7 @@
#include "glo.h"
#include "util.h"
#include <archconst.h>
#include <archtypes.h>
#include <machine/archtypes.h>
#include "../../kernel/const.h"
#include "../../kernel/config.h"
#include "../../kernel/type.h"