Userspace no longer includes the kernel's arch/*
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 5 Apr 2010 04:10:50 +0000 (21:10 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:40 +0000 (17:35 -0700)
commitb25e66a17cdd3754ba719e6e3eec7d3c5f4c8494
treed3f2c5696c7beb77979ee58fbc489f45d89c9976
parent6e39dfd1014e9bbccd7f3fa41e2e504b4cdb1a92
Userspace no longer includes the kernel's arch/*

The kernel and userspace still share kern/include/ros/arch, which points
to arch specific folders, but not the entire kern/arch/XXX/ folder
(which is what kern/include/arch pointed to).  This helps sort out some
issues with repeated symbols (reboot in arch/arch.h conflicts with
libc), makes the kernel interface more explicit, and will help us to
avoid making changes to the kernel for no reason other than userspace
includes its files.

There are a few places where things are ghetto - mostly because they
ought to be solved properly (read_tsc()) or will go away with future
commits (segmentation stuff).

Long term, I'd like to minimize the amount of stuff in kern/include/ros,
even if it means having copies of arch-specific things.  And the copies
are not always copies - often there are slight differences between the
kernel and userspace.
18 files changed:
kern/arch/i686/atomic.h
kern/arch/i686/env.c
kern/arch/i686/membar.h [deleted file]
kern/arch/i686/mmu.h
kern/arch/i686/ros/membar.h [new file with mode: 0644]
kern/arch/i686/ros/mmu.h
kern/arch/sparc/atomic.h
kern/arch/sparc/membar.h [deleted file]
kern/arch/sparc/ros/membar.h [new file with mode: 0644]
kern/include/ros/procdata.h
kern/include/ros/ring_buffer.h
tests/breakpoint.c
tests/mhello.c
tests/mproctests.c
tests/proctests.c
tools/compilers/gcc-glibc/Makefile
tools/compilers/gcc-glibc/glibc-2.11.1-ros/sysdeps/ros/i386/tls.h
user/parlib/panic.c