#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"
#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"
#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>
#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>
#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>
#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"
#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))
#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"
# 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
#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>
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>
#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;
+#ifndef _MINIX_CONST_H
+#define _MINIX_CONST_H
#ifndef CHIP
#error CHIP is not defined
#define VERBOSEBOOT_BASIC 1
#define VERBOSEBOOT_MAX 2
#define VERBOSEBOOTVARNAME "verbose"
+
+#endif /* _MINIX_CONST_H */
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
* 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 */
-#include <archconst.h>
+#include "archconst.h"
#include "apic.h"
#include "sconst.h"
#include "apic_asm.h"
#include <minix/config.h>
#include <minix/const.h>
#include <machine/interrupt.h>
-#include <archconst.h>
+#include "archconst.h"
#include "../../const.h"
#include "sconst.h"
#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"
#include "../../kernel.h"
#include "../../proc.h"
-#include <archconst.h>
+#include "archconst.h"
#include "proto.h"
#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"
#endif
#include <minix/config.h>
-#include <archtypes.h>
+#include <machine/archtypes.h>
+#include "archconst.h"
#include "config.h"
#include "debug.h"
#include "kernel.h"
#include "proc.h"
-#include <archconst.h>
+#include "archconst.h"
#include "arch/i386/hw_intr.h"
* Jul 01, 2005 Created. (Jorrit N. Herder)
*/
#include <minix/com.h>
+#include <minix/const.h>
#include "const.h"
#include "type.h"
#define PROTO_H
#include <minix/safecopies.h>
-#include <archtypes.h>
+#include <machine/archtypes.h>
#include <a.out.h>
/* Struct declarations. */
# programs, flags, etc.
CC = exec cc
-CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$i
+CPPFLAGS=-I$i
CFLAGS = $(CPROFILE) $(CPPFLAGS)
LDFLAGS = -i
LIBS = -lsys
#include <unistd.h>
#include <signal.h>
-#include <archtypes.h>
+#include <machine/archtypes.h>
#include "proto.h"
#include "glo.h"
# programs, flags, etc.
CC = exec cc
-CPPFLAGS=-I../../kernel/arch/$(ARCH)/include -I$i
+CPPFLAGS=-I$i
CFLAGS = $(CPROFILE) $(CPPFLAGS)
LDFLAGS = -i
#include <signal.h>
#include <stdlib.h>
#include <string.h>
-#include <archconst.h>
#include "mproc.h"
#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"
#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"
#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"
# programs, flags, etc.
CC = exec cc
-CPPFLAGS = -I../../kernel/arch/$(ARCH)/include
+CPPFLAGS =
CFLAGS = -I$i $(CPROFILE) $(CPPFLAGS)
LDFLAGS = -i
LIBS = -lsys
#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"
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
OBJ = vm.o pagetable.o arch_pagefaults.o util.o
-CPPFLAGS=-I../../../kernel/arch/$(ARCH)/include -I.
+CPPFLAGS=-I.
CFLAGS = $(CPROFILE) $(CPPFLAGS)
all: $(OBJ)
-#include <archtypes.h>
#include <minix/config.h>
#include <minix/const.h>
#include <minix/type.h>
extern int missing_spares;
-#include <archtypes.h>
+#include <machine/archtypes.h>
#include "../../kernel/const.h"
#include "../../kernel/config.h"
#include "../../kernel/proc.h"
#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"