07 Mar, 2007

7 commits


05 Mar, 2007

6 commits


27 Feb, 2007

2 commits


22 Feb, 2007

1 commit

  • This patch adds trivial support for SMARTMIPS extension. This extension
    is currently implemented by 4KS[CD] CPUs.

    Basically it saves/restores ACX register, which is part of the SMARTMIPS
    ASE, when needed. This patch does *not* add any support for Smartmips MMU
    features.

    Futhermore this patch does not add explicit support for 4KS[CD] CPUs since
    they are respectively mips32 and mips32r2 compliant. So with the current
    processor configuration, a platform that has such CPUs needs to select
    both configs:

    CPU_HAS_SMARTMIPS
    SYS_HAS_CPU_MIPS32_R[12]

    This is due to the processor configuration which is mixing up all the
    architecture variants and the processor types.

    The drawback of this, is that we currently pass '-march=mips32' option to
    gcc when building a kernel instead of '-march=4ksc' for 4KSC case. This
    can lead to a kernel image a little bit bigger than required.

    Signed-off-by: Franck Bui-Huu
    Signed-off-by: Ralf Baechle

    Franck Bui-Huu
     

20 Feb, 2007

2 commits

  • From the 01408c4939479ec46c15aa7ef6e2406be50eeeca log message:

    The problem is that when we write to a file, the copy from userspace to
    pagecache is first done with preemption disabled, so if the source
    address is not immediately available the copy fails *and* *zeros* *the*
    *destination*.

    This is a problem because a concurrent read (which admittedly is an odd
    thing to do) might see zeros rather that was there before the write, or
    what was there after, or some mixture of the two (any of these being a
    reasonable thing to see).

    If the copy did fail, it will immediately be retried with preemption
    re-enabled so any transient problem with accessing the source won't
    cause an error.

    The first copying does not need to zero any uncopied bytes, and doing
    so causes the problem. It uses copy_from_user_atomic rather than
    copy_from_user so the simple expedient is to change copy_from_user_atomic
    to *not* zero out bytes on failure.

    < --- end cite --- >

    This patch finally implements at least a not so pretty solution by
    duplicating the relevant part of __copy_user.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • The kernel use 64-bit for sc_regs[0], and both N32/N64 userland
    expects it was 64-bit. But size of 'long' on N32 is actually 32-bit.
    So this definition make some confusion. Use __u32 and __u64 for
    N32/N64 sigcontext to get rid of this confusion.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

19 Feb, 2007

7 commits


14 Feb, 2007

7 commits


12 Feb, 2007

3 commits

  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] signal: do not inline handle_signal()
    [MIPS] signal: do not use save_static_function() anymore
    [MIPS] signal32: no need to save c0_status register in setup_sigcontext32()
    [MIPS] signal32: reduce {setup,restore}_sigcontext32 sizes
    [MIPS] signal: factorize debug code
    [MIPS] signal: test return value of install_sigtramp()
    [MIPS] signal32: remove duplicate code
    [MIPS] signal: clean up sigframe structure
    [MIPS] signal: do not inline functions in signal-common.h
    [MIPS] signals: reduce {setup,restore}_sigcontext sizes
    [MIPS] Fix warning in get_user when fetching pointer object from userspace.
    [MIPS] Fix eth2 platform device id for jaguar_atx and ocelot_3 platforms
    [MIPS] JMR3927 and RBTX49x7 support little endian
    [MIPS] RBTX49x7: declare prom_getcmdline()
    [MIPS] RTLX: Sprinkle device model code into code to make udev happier.
    [MIPS] VPE: Sprinkle device model code into code to make udev happier.

    Linus Torvalds
     
  • The line discipline numbers N_* are currently defined for each architecture
    individually, but (except for a seeming mistake) identically, in
    asm/termios.h. There is no obvious reason why these numbers should be
    architecture specific, nor any apparent relationship with the termios
    structure. The total number of these, NR_LDISCS, is defined in linux/tty.h
    anyway. So I propose the following patch which moves the definitions of
    the individual line disciplines to linux/tty.h too.

    Three of these numbers (N_MASC, N_PROFIBUS_FDL, and N_SMSBLOCK) are unused
    in the current kernel, but the patch still keeps the complete set in case
    there are plans to use them yet.

    Signed-off-by: Tilman Schmidt
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tilman Schmidt
     
  • Remove the last vestiges of the long-deprecated "MAP_ANON" page protection
    flag: use "MAP_ANONYMOUS" instead.

    Signed-off-by: Robert P. J. Day
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     

11 Feb, 2007

3 commits


10 Feb, 2007

2 commits