]> Zhao Yanbai Git Server - minix.git/commit
Split of architecture-dependent and -independent functions for i386,
authorBen Gras <ben@minix3.org>
Fri, 22 Dec 2006 15:22:27 +0000 (15:22 +0000)
committerBen Gras <ben@minix3.org>
Fri, 22 Dec 2006 15:22:27 +0000 (15:22 +0000)
commit6f7768560995f355490bf0022aa42dee2dcca06d
tree158fabf2dc0f68f7b97094a230a9bfd748ce5aba
parentf7984144d514d5ddb96bd16b59ae5bb4a2b7679a
Split of architecture-dependent and -independent functions for i386,
mainly in the kernel and headers. This split based on work by
Ingmar Alting <iaalting@cs.vu.nl> done for his Minix PowerPC architecture
port.

 . kernel does not program the interrupt controller directly, do any
   other architecture-dependent operations, or contain assembly any more,
   but uses architecture-dependent functions in arch/$(ARCH)/.
 . architecture-dependent constants and types defined in arch/$(ARCH)/include.
 . <ibm/portio.h> moved to <minix/portio.h>, as they have become, for now,
   architecture-independent functions.
 . int86, sdevio, readbios, and iopenable are now i386-specific kernel calls
   and live in arch/i386/do_* now.
 . i386 arch now supports even less 86 code; e.g. mpx86.s and klib86.s have
   gone, and 'machine.protected' is gone (and always taken to be 1 in i386).
   If 86 support is to return, it should be a new architecture.
 . prototypes for the architecture-dependent functions defined in
   kernel/arch/$(ARCH)/*.c but used in kernel/ are in kernel/proto.h
 . /etc/make.conf included in makefiles and shell scripts that need to
   know the building architecture; it defines ARCH=<arch>, currently only
   i386.
 . some basic per-architecture build support outside of the kernel (lib)
 . in clock.c, only dequeue a process if it was ready
 . fixes for new include files

files deleted:
 . mpx/klib.s - only for choosing between mpx/klib86 and -386
 . klib86.s - only for 86

i386-specific files files moved (or arch-dependent stuff moved) to arch/i386/:
 . mpx386.s (entry point)
 . klib386.s
 . sconst.h
 . exception.c
 . protect.c
 . protect.h
 . i8269.c
100 files changed:
commands/ibm/postmort.c
commands/ibm/readclock.c
commands/ibm/sdump.c
commands/mdb/core.c
commands/mdb/kernel.c
commands/mdb/mdb.c
commands/ps/ps.c
commands/simple/dumpcore.c
commands/simple/top.c
drivers/floppy/floppy.c
drivers/memory/memory.c
drivers/rescue/Makefile [deleted file]
drivers/rescue/rescue.c [deleted file]
drivers/rtl8139/rtl8139.c
drivers/tty/Makefile
drivers/tty/keyboard.c
etc/Makefile
include/minix/config.h
include/minix/portio.h [moved from include/ibm/portio.h with 97% similarity]
include/minix/sys_config.h
include/minix/type.h
kernel/Makefile
kernel/arch/i386/Makefile [new file with mode: 0755]
kernel/arch/i386/clock.c [new file with mode: 0755]
kernel/arch/i386/do_int86.c [moved from kernel/system/do_int86.c with 94% similarity]
kernel/arch/i386/do_iopenable.c [moved from kernel/system/do_iopenable.c with 91% similarity]
kernel/arch/i386/do_readbios.c [moved from kernel/system/do_readbios.c with 97% similarity]
kernel/arch/i386/do_sdevio.c [moved from kernel/system/do_sdevio.c with 98% similarity]
kernel/arch/i386/exception.c [moved from kernel/exception.c with 96% similarity]
kernel/arch/i386/i8259.c [new file with mode: 0755]
kernel/arch/i386/include/archconst.h [new file with mode: 0644]
kernel/arch/i386/include/archtypes.h [new file with mode: 0644]
kernel/arch/i386/include/protect.h [moved from kernel/protect.h with 100% similarity]
kernel/arch/i386/klib386.s [moved from kernel/klib386.s with 97% similarity]
kernel/arch/i386/memory.c [new file with mode: 0644]
kernel/arch/i386/mpx386.s [moved from kernel/mpx386.s with 99% similarity]
kernel/arch/i386/protect.c [moved from kernel/protect.c with 81% similarity]
kernel/arch/i386/proto.h [new file with mode: 0644]
kernel/arch/i386/sconst.h [moved from kernel/sconst.h with 83% similarity]
kernel/arch/i386/system.c [new file with mode: 0644]
kernel/clock.c
kernel/config.h
kernel/const.h
kernel/debug.h
kernel/glo.h
kernel/i8259.c [deleted file]
kernel/interface.h [new file with mode: 0644]
kernel/interrupt.c [new file with mode: 0644]
kernel/kernel.h
kernel/klib.s [deleted file]
kernel/klib88.s [deleted file]
kernel/kprintf.c [deleted file]
kernel/main.c
kernel/mpx.s [deleted file]
kernel/mpx88.s [deleted file]
kernel/priv.h
kernel/proc.c
kernel/proc.h
kernel/profile.c
kernel/profile.h
kernel/proto.h
kernel/start.c
kernel/system.c
kernel/system/Makefile
kernel/system/do_devio.c
kernel/system/do_exec.c
kernel/system/do_fork.c
kernel/system/do_getinfo.c
kernel/system/do_newmap.c
kernel/system/do_nice.c
kernel/system/do_safecopy.c
kernel/system/do_segctl.c
kernel/system/do_sigreturn.c
kernel/system/do_sigsend.c
kernel/system/do_sprofile.c
kernel/system/do_trace.c
kernel/system/do_umap.c
kernel/system/do_vdevio.c
kernel/system/do_vm.c
kernel/table.c
kernel/type.h
kernel/utility.c
lib/Makefile.in
lib/ansi/abort.c
lib/generate.sh
lib/ip/domainname.c
lib/posix/_lstat.c
lib/syslib/pci_set_acl.c
lib/zlib-1.2.3/Makefile.in
servers/is/Makefile
servers/is/dmp_kernel.c
servers/is/inc.h
servers/pm/Makefile
servers/pm/alloc.c
servers/pm/main.c
servers/pm/misc.c
servers/pm/signal.c
servers/pm/utility.c
servers/rs/Makefile
servers/rs/inc.h