History log of /arch/mips/kernel/asm-offsets.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7281cd22973008a782860e48ed8d85d00204168c 03-Aug-2010 David Daney <ddaney@caviumnetworks.com> MIPS: Remove unused task_struct.trap_no field.

It is initialized to zero and only ever read. Remove it, and pass zero in
its place.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1531/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
325f8a0a31df567dbafafc48f8e60f3c1f101a46 04-Dec-2009 David Daney <ddaney@caviumnetworks.com> MIPS: Two-level pagetables for 64-bit kernels with 64KB pages.

For 64-bit kernels with 64KB pages and two level page tables, there are
42 bits worth of virtual address space This is larger than the 40 bits of
virtual address space obtained with the default 4KB Page size and three
levels, so there are no draw backs for using two level tables with this
configuration.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/761/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
a0b54e256d513ed99e456bea6e4e188ff92e7c46 31-Jul-2009 Nelson Elhage <nelhage@ksplice.com> MIPS: Use PAGE_SIZE in assembly instead of _PAGE_SIZE.

Now that PAGE_SIZE is available to assembly directly, there is no need
to separately expose it as _PAGE_SIZE through asm-offsets.

In addition, remove _PAGE_SHIFT from asm-offsets, since it was never
needed, and is not used anywhere.

Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
363c55cae53742f3f685a1814912c6d4fda245b4 04-Jun-2009 Wu Zhangjin <wuzj@lemote.com> MIPS: Add hibernation support

[Ralf: SMP support requires CPU hotplugging which MIPS currently doesn't
support. As implemented in this patch cache and tlb flushing will also be
invoked with interrupts disabled so smp_call_function() will blow up in
charming ways. So limit to !SMP.]

Reviewed-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Yan Hua <yanh@lemote.com>
Reviewed-by: Arnaud Patard <apatard@mandriva.com>
Reviewed-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
Signed-off-by: Hu Hongbing <huhb@lemote.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
babed555695fad25820fb5fb0b5068c56e375900 12-Dec-2008 David Daney <ddaney@caviumnetworks.com> MIPS: Add Cavium OCTEON specific registers to ptrace.h and asm-offsets.c

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Tomaso Paoletti <tpaoletti@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
fd04d2067508d4a2b8cdb51d9ede1c0d96f13602 29-Apr-2008 Christoph Lameter <clameter@sgi.com> mips: use kbuild.h instead of macros in asm-offsets.c

Use the macros provided in kbuild.h

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/arch/mips/kernel/asm-offsets.c
bf2ae2b37c06cc9fb6fc03d99617f1161939980f 28-Apr-2008 Christoph Lameter <clameter@sgi.com> pageflags: standardize comment inclusion in asm-offsets.h and fix MIPS

Add the ability to pass comments into asm-offsets.h by generating asm
output like

-># comment line

Mips needs this feature to preserve the comments that are in
asm-mips/asm-offsets.h right now.

Then remove the special handling for mips from Kbuild and convert mips to use
the new string to include the comments.

Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/arch/mips/kernel/asm-offsets.c
03b8b8e7c9c36e2d7c4bc9c63eeed872e6f01ad0 01-Aug-2007 Ralf Baechle <ralf@linux-mips.org> [MIPS] Extract {PGD,PMD,PTE}_ORDER into asm-offset.h

For debugging purposes only.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
293c5bd13f124c325f74f89ad26edf5612ce7235 25-Jul-2007 Ralf Baechle <ralf@linux-mips.org> [MIPS] Fixup secure computing stuff.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
f7e4217b007d1f73e7e3cf10ba4fea4a608c603f 09-May-2007 Roman Zippel <zippel@linux-m68k.org> rename thread_info to stack

This finally renames the thread_info field in task structure to stack, so that
the assumptions about this field are gone and archs have more freedom about
placing the thread_info structure.

Nonbroken archs which have a proper thread pointer can do the access to both
current thread and task structure via a single pointer.

It'll allow for a few more cleanups of the fork code, from which e.g. ia64
could benefit.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
[akpm@linux-foundation.org: build fix]
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ian Molton <spyro@f2s.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
Cc: Richard Curnow <rc@rc0.org.uk>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp>
Cc: Andi Kleen <ak@muc.de>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/arch/mips/kernel/asm-offsets.c
05bc284a719b778243f51e23c88fe6cefe6b219b 26-Apr-2007 Ralf Baechle <ralf@linux-mips.org> [MIPS] Remove unused _THREAD_SIZE_ORDER from asm-offset.c.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
9693a85378b590cc7a4aa2db2174422585c7c8c4 02-Feb-2007 Franck Bui-Huu <fbuihuu@gmail.com> [MIPS] Add basic SMARTMIPS ASE support

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 <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
6bfe96616062acb75c2460f01acc79236a8ba0e8 05-Feb-2007 Franck Bui-Huu <fbuihuu@gmail.com> [MIPS] signal32: no need to save c0_status register in setup_sigcontext32()

All the information in the MIPS c0_status register is priviledged.
Nothing that would constitute part of the thread context.

The one flag one could possibly argument about might be c0_status.fr
but none of the ABIs or tools or application software can make use
of it.

So for consistency with restore_sigcontext32(), which does not
restore c0_status register, this patch remove the saving part.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
69a6c312e5ebb2e929ceb67e6246e2d9314f1d29 23-Jan-2007 Atsushi Nemoto <anemo@mba.ocn.ne.jp> [MIPS] Move some kernel globals from asm file to C file.

This get rid of some undesirable hole in BSS section due to random
order of placement.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
242954b5aa8e5ec84f46a84637daf08ee4247c6e 24-Oct-2006 Ralf Baechle <ralf@linux-mips.org> [MIPS] 16K & 64K page size fixes

Derived from Peter Watkins <treestem@gmail.com>'s work.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
937a801576f954bd030d7c4a5a94571710d87c0b 07-Oct-2006 Ralf Baechle <ralf@linux-mips.org> [MIPS] Complete fixes after removal of pt_regs argument to int handlers.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
6ab3d5624e172c553004ecc862bfeac16d9d68b7 30-Jun-2006 Jörn Engel <joern@wohnheim.fh-wedel.de> Remove obsolete #include <linux/config.h>

Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
/arch/mips/kernel/asm-offsets.c
eae89076e696f51762d81d6e2538c3beb59fa7bd 15-May-2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp> [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs.

The struct mips_fpu_soft_struct and mips_fpu_hard_struct are
completely same now and the kernel fpu emulator assumes that. This
patch unifies them to mips_fpu_struct and get rid of mips_fpu_union.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
1c0c1ae4f3d5057d091677d0ef7dbaeb28122ded 08-May-2006 Daniel Jacobowitz <dan@debian.org> [MIPS] Update struct sigcontext member names

Rename the 64-bit sc_hi and sc_lo arrays to use the same names
as the 32-bit struct sigcontext (sc_mdhi, sc_hi1, et cetera).

Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
41c594ab65fc89573af296d192aa5235d09717ab 05-Apr-2006 Ralf Baechle <ralf@linux-mips.org> [MIPS] MT: Improved multithreading support.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
e50c0a8fa60da9ac0e0a70caa8a3a803815c1f2f 31-May-2005 Ralf Baechle <ralf@linux-mips.org> Support the MIPS32 / MIPS64 DSP ASE.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
3c37026d43c47bec4710cbda286f4a17f416f5e6 13-Apr-2005 Ralf Baechle <ralf@linux-mips.org> NPTL, round one.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
/arch/mips/kernel/asm-offsets.c
e6c69bd39199656a8bbd0569edaff60574ff9cac 11-Sep-2005 Sam Ravnborg <sam@mars.ravnborg.org> mips: rename offsets.c to asm-offsets.c

Cannot build MIPS now.
We need to change offset.c to asm-offsets.c

Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
/arch/mips/kernel/asm-offsets.c