Greg Ungerer [Tue, 18 Feb 2003 13:47:55 +0000 (05:47 -0800)]
[PATCH] create an architecture specific flat header for m68knommu
Add a per-architecture flat.h flat format executable header. The idea is
to support the different options required in a clean way. For starters
we need to be able to configure the initial stack layout, and this
differs for different CPU types.
This first patch adds the header for the m68knommu architecture.
Greg Ungerer [Tue, 18 Feb 2003 13:47:47 +0000 (05:47 -0800)]
[PATCH] fix text and data sizing in MMUless task_nommu.c
This patch does a couple of things to the MMUless proc support:
1. change current->sig to current->sighand
2. initialize vsize var in task_vsize() function
3. correctly set *text and *data values in task_vsize() function
Greg Ungerer [Tue, 18 Feb 2003 13:47:26 +0000 (05:47 -0800)]
[PATCH] use local RODATA setup for m68knommu linker script
This patch removes the use of the common RODATA define in the m68knommu
architecture. It cannot be used the same way for the m68knommu target.
For starters just inserting it here is syntactically wrong. All the read
only parts are grouped into a single "text" segment, and this is the root
cause of the problem. So for the m68knommu arch it makes sense to not
use the generic RODATA setup, but to list them locally.
This patch reformats the 68360 crt_ram.S file to make it consistent
with the other m68knommu assembler files, and generally to good
style standards :-)
Greg Ungerer [Tue, 18 Feb 2003 13:47:11 +0000 (05:47 -0800)]
[PATCH] inline unsued functions for MMUless configuration
This patch adds inline versions of init_emergency_isa_pool() and
blk_queue_bounce() for MMUless builds. This patch was originally
from Christoph Hellwig, as part of the MMUless merge.
Greg Ungerer [Tue, 18 Feb 2003 13:47:03 +0000 (05:47 -0800)]
[PATCH] include the architecture flat file header in common flat header
This patch adds support into the common flat.h header to include
the architecture specific flat.h header. This is modelled on the
same scheme as the elf include header file support.
Greg Ungerer [Tue, 18 Feb 2003 13:46:56 +0000 (05:46 -0800)]
[PATCH] create an architecture specific flat header for v850
This patch adds a v850 architecture specific flat file header.
It supports the stack layout define needed by the flat format
load binfmt_flat.c (for MMUless CPU's).
Greg Ungerer [Tue, 18 Feb 2003 13:46:48 +0000 (05:46 -0800)]
[PATCH] reformat m68knommu 68328/pilot crt0_rom.S
This patch reformats the 68328/pilot crt_rom.S file to make it consistent
with the other m68knommu assembler files, and generally to good style
standards :-)
Greg Ungerer [Tue, 18 Feb 2003 13:46:41 +0000 (05:46 -0800)]
[PATCH] create common vector setup code for m68knommu/ColdFire
This patch creates a common set of vector code for the ColdFire
sub-architecture of the m68knommu architecture. The basic setup
code for all ColdFire CPU's is the same. Some more patches will
follow this that remove theis common code from each of the
ColdFire CPU configs.
This patch reformats the 68360 crt_rom.S file to make it consistent
with the other m68knommu assembler files, and generally to good
style standards :-)
Greg Ungerer [Tue, 18 Feb 2003 13:45:56 +0000 (05:45 -0800)]
[PATCH] bounds check and no argv/envp support for binfmt_flat load
This patch to the MMUless flat loader does 2 important things:
1. Allow for architectures that do not want argv and envp on
the initial process stack (v850 is an example of this)
2. Does some bounds checking on the zipped flat header when
processing it.
Greg Ungerer [Tue, 18 Feb 2003 13:45:41 +0000 (05:45 -0800)]
[PATCH] m68knommu cacheflush.h cleanup
This patch overhauls the cache support routines for the m68knommu
architecture. It removes depricated functions, and fixes those required
to operate as per Documentation/cachetlb.txt.
Miles Bader [Tue, 18 Feb 2003 13:39:50 +0000 (05:39 -0800)]
[PATCH] Add a v850 config option to pass illegal insn traps to the kernel
On the v850 RTE-MA1-CB-MULTI platform, these are normally intercepted by
the monitor for the use of an external debugger, but if you want to use
a linux-resident debugger, the kernel has to see them.
Miles Bader [Tue, 18 Feb 2003 13:39:36 +0000 (05:39 -0800)]
[PATCH] v850 kernel entry fixes and cleanup
1) Preserve the v850 system-call-number register when handling a signal;
otherwise system calls will not be correctly restarted afterwards
2) Correctly handle illegal insn exceptions, which need a special
instruction to return (not reti), and save PC/PSW to a different place
2) Remove some unnecessary register saving in the trap handler
3) Consolidate various places that use the register save/restore macros
4) Eliminate some unused compile-time configuration stuff
5) A bit of whitespace and other syntactic cleanup
Miles Bader [Tue, 18 Feb 2003 13:39:12 +0000 (05:39 -0800)]
[PATCH] Set child process initial stack-pointers correctly on the v850
Previously the v850's copy_thread function didn't set the child's stack
pointer at all, with the result that it accidentally worked for vfork
(where the child has the same SP as the parent), but not for user
threads; kernel threads also accidentally worked, for a different
reason.
Andrew Morton [Tue, 18 Feb 2003 13:29:10 +0000 (05:29 -0800)]
[PATCH] TTY module refcounting fix
Patch from Max Krasnyansky <maxk@qualcomm.com>
This changeset adds module refcounting for TTY line disciplines. I've sent
the patch to LKM earlier. No negative comments (actually most people didn't
seem to care). This is needed at least for Bluetooth and IrDA (Jean is ok
with the patch).
Andrew Morton [Tue, 18 Feb 2003 13:28:55 +0000 (05:28 -0800)]
[PATCH] consolidate and cleanup profiling code.
Patch from Nikita Danilov <Nikita@Namesys.COM>
this moves functions from identical per-architecture
arch/*/kernel/profile.c into generic kernel/profile.c. Also, identical
{x86,parisc,ppc64,sparc64}_profile_hook()'s are all replaced by the
single kernel/profile.c:profile_hook(), which is #defined to noop in
include/linux/profile.h if CONFIG_PROFILING is not set.
Andrew Morton [Tue, 18 Feb 2003 13:25:42 +0000 (05:25 -0800)]
[PATCH] make startup_32 kernel entry point
Patch from Andrey Panin <pazke@orbita1.ru>
This patch marks startup_32 (in head.S) as kernel entry point,
visws kernel loader uses raw elf kernel images and entry point
at stext causes jump to wrong address.
Andrew Morton [Tue, 18 Feb 2003 13:25:35 +0000 (05:25 -0800)]
[PATCH] export some functions from i8259.c
Patch from Andrey Panin <pazke@orbita1.ru>
This trivial patch exports some functions from 8259.c file.
Visws subarch needs them to handle interrupts from legacy devices
connected to PIIX4 i8259s, which are in turn connected to SGI
Cobalt APIC.
Andrew Morton [Tue, 18 Feb 2003 13:25:27 +0000 (05:25 -0800)]
[PATCH] allow SMP kernel build without io_apic.c
Patch from Andrey Panin <pazke@orbita1.ru>
I'm here again, starting another hopeless attempt to submmit
visws subarch support for 2.5. This series of patches was tested
by me and brave people from linux-visws-devel mailing list and
our beloved workstations seem to work well under 2.5.xx.
This patch moves enable_NMI_through_LVT0() function from io_apic.c
to apic.c to allow SMP kernel build without io_apic.c included.
Andrew Morton [Tue, 18 Feb 2003 13:24:57 +0000 (05:24 -0800)]
[PATCH] fix kirq for clustered apic mode
Patch from Dave Hansen <haveblue@us.ibm.com>
The new kirq patch assumes flat addressing APIC mode where apicid = (1
<< cpu). This isn't true for clustered mode.
- Change name/type of irq_balance_mask. The type of apicid seems to
be int.
- Change instance of (1<<cpu) to cpu_to_logical_apicid()
- Don't use target_cpu_mask, use min_loaded, and convert the real way
Tested on Summit, and plain SMP. Martin Bligh and I figured this out
together, and he agrees.
Andrew Morton [Tue, 18 Feb 2003 13:24:42 +0000 (05:24 -0800)]
[PATCH] export add_to_page_cache() and __pagevec_lru_add to
CIFS is using these.
Given that the readpages() address_space op is supposed to add the pages to
pagecache, it makes sense to make these functions available to modules.
I can't say that I put a lot of though into the readpages API. It was
designed as just enough functionality to be able to stuff a bunch of
readahead pages into a single BIO. The only reason I made it an a_op at all
was because we have toi enter the fs to pick up the ->get_block callback's
address.
But a couple of filesystems seem to be making use of it now. Reiser4 will
need access at the do_page_cache_readahead() level too.
Andrew Morton [Tue, 18 Feb 2003 13:24:33 +0000 (05:24 -0800)]
[PATCH] fix for uninitialized timer in drm_drv.h
Patch from Martin Josefsson <gandalf@wlug.westbo.se>
Here's a fix for an uninitialized timer in drm_drv.h, for some reason it
initilizes the timer when the device is opened, not at init. It moves
the initilization for the waitqueue to init aswell.
Patrick McHardy [Tue, 18 Feb 2003 12:18:40 +0000 (04:18 -0800)]
[IPV{4,6}]: lru queue for ip_fragment evictor.
The current ip_fragment evictor kills the oldest entry of each hash bucket
starting with 0 instead of killing the oldest entry of all buckets. This
leads
to unfair behaviour if one of the higher hash slots carries alot of
fragments.
This patch holds the frag heads in a lru queue so we can kills the least
recently used first. Each arriving fragment counts as usage.
This gets rid of the port semaphore, and the serialization caused by
that, and replaces it with the proper reference counting logic for
the usb serial object.
[PATCH] USB: add "present" flag to usb_device structure.
This solves lots of races when drivers hold a reference to the usb_device
after the device is physically removed from the system (like when a user
has a open handle.) This now prevents any new urbs being submitted or
canceled for the device.