aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel
AgeCommit message (Collapse)AuthorFilesLines
2008-05-16sh: fix sh7785 master clock valueYoshihiro Shimoda1-1/+1
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-16sh: Fix up thread info pointer in syscall_badsys resume path.Hideo Saito1-0/+1
Entry to resume_userspace expects r8 to contain current_thread_info, which happens in all paths except for syscall_badsys, where r8 was being inadvertently trampled. Reload it before the branch. Signed-off-by: Hideo Saito <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-16sh: disable initrd defaults in .empty_zero_page.Paul Mundt1-2/+2
When using initramfs on systems that don't explicitly clear LOADER_TYPE, unpack_to_rootfs() tramples tramples the range with the defaults taken out of .empty_zero_page. This causes kernels with valid initramfs images to bail out with crc or gzip magic mismatch errors after the second unpack takes place on certain platform configurations. Signed-off-by: Paul Mundt <[email protected]>
2008-05-16sh: display boot params by default on entry.Paul Mundt1-0/+11
Some kernel and boot loader configurations tweak the .empty_zero_page settings, while others do not. Print the values out on entry as a debugging aid. Signed-off-by: Paul Mundt <[email protected]>
2008-05-14lib: create common ascii hex arrayHarvey Harrison1-8/+0
Add a common hex array in hexdump.c so everyone can use it. Add a common hi/lo helper to avoid the shifting masking that is done to get the upper and lower nibbles of a byte value. Pull the pack_hex_byte helper from kgdb as it is opencoded many places in the tree that will be consolidated. Signed-off-by: Harvey Harrison <[email protected]> Acked-by: Paul Mundt <[email protected]> Cc: Jason Wessel <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-05-09SH: catch negative denormal_subf1() retval in denormal_add()Roel Kluin1-2/+2
'ix' is unsigned but denormal_subf1() may return a negative int. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: intc register modify fixMagnus Damm1-0/+9
Make sure register modifications stay atomic. Fixes processors with shared priority register masking. Dual bitmap masking is unaffected. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: no high level trigger on some sh3 cpusMagnus Damm1-0/+5
The processor models sh7706, sh7707 and sh7709 don't support high level trigger sense configuration. And the intc code looks like crap these days so what's the difference. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: clean up sh7710 and sh7720 intc tablesMagnus Damm2-8/+1
Clean up the intc tables by removing unneeded #ifdefs. The vector list is what selects which interrupt sources that should be added, having unsupported bitfields listed is ok as long as the vector is excluded from the list. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: add interrupt ack code to sh3Magnus Damm2-7/+87
This patch adds interrupt acknowledge code for external interrupt sources on sh3 processors. Only really required for edge triggered interrupts, but we ack regardless of sense configuration. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: unify external irq pin code for sh3Magnus Damm6-94/+75
This patch unifies the sh3 external irq pin code. It buys us some savings with reduced code redundancy, but the main feature with this change is irq sense selection support for all sh3 processors. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: reset hardware from early printkMagnus Damm1-3/+3
Reset the transmitter and receiver when setting up early printk. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: drain and wait for early printkMagnus Damm1-0/+6
Drain by waiting for all characters to be sent, and make sure to wait a little bit after setting up the baud rate. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: use sci_out() for early printkMagnus Damm1-11/+13
Use sci_out() instead of ctrl_outw() for early printk setup code. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: add memory resources to /proc/iomemMagnus Damm1-1/+37
Add physical memory resources such as System RAM, Kernel code/data/bss and reserved crash dump area to /proc/iomem. Same strategy as on x86. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: add kernel bss resourceMagnus Damm1-0/+7
Do like everyone else and have a struct resource for kernel bss. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: fix sh7705 interrupt vector typoMagnus Damm1-1/+1
Fix sh7705 interrupt sources for vectors 0xc80 and 0xca0. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh: intc_sh5 depends on cayman board for IRQ priority table.Paul Mundt1-35/+38
Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh64: Some symbol exports to make the allmodconfig happier.Paul Mundt4-2/+28
Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh64: Setup I/D-TLB defaults in SH-5 probe path.Paul Mundt1-0/+4
Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh64: Fixup the nommu build.Paul Mundt1-0/+28
Signed-off-by: Paul Mundt <[email protected]>
2008-05-08sh64: fixups for xtime_lock seqlock conversion.Paul Mundt1-2/+2
Signed-off-by: Paul Mundt <[email protected]>
2008-05-03unified (weak) sys_pipe implementationUlrich Drepper1-17/+0
This replaces the duplicated arch-specific versions of "sys_pipe()" with one unified implementation. This removes almost 250 lines of duplicated code. It's marked __weak, so that *if* an architecture wants to override the default implementation it can do so by simply having its own replacement version, since many architectures use alternate calling conventions for the 'pipe()' system call for legacy reasons (ie traditional UNIX implementations often return the two file descriptors in registers) I still haven't changed the cris version even though Linus says the BKL isn't needed. The arch maintainer can easily do it if there are really no obstacles. Signed-off-by: Ulrich Drepper <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-04-29sh: use kbuild.h instead of defining macros in asm-offsets.cChristoph Lameter1-5/+2
Signed-off-by: Christoph Lameter <[email protected]> Cc: Paul Mundt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-04-29proper __do_softirq() prototypeAdrian Bunk1-2/+0
Add a proper prototype for __do_softirq() in include/linux/interrupt.h Signed-off-by: Adrian Bunk <[email protected]> Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-04-18sh: Fix up L2 cache probe.Paul Mundt1-0/+6
SH7723 is the first hard silicon to implement the L2, and unsurprisingly, does the precise inverse of what the specification alleges. XOR the URAM/L2 size bits to get back in line with the existing parsing logic. Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Fix up SH-4A part probe.Paul Mundt1-1/+1
The SH-4A series probe we were relying on doesn't work any more on the newer parts, bump this up to use CVR.CHIP instead so we have consistent behaviour across all of the parts, which is what this should have been testing in the first place. Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Add support for SH7723 CPU subtype.Paul Mundt4-11/+318
This adds basic support for the SH7723 MobileR2 CPU. Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Fix up SH7763 build.Paul Mundt1-9/+1
Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Add I2C platform data to sh7722Magnus Damm1-0/+21
Add platform data for the SuperH Mobile I2C block to sh7722. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Use physical addresses for sh7722 USBF resourcesMagnus Damm1-4/+3
Use physical addresses and change resource name to follow data sheet. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Hook up the rest of the SH7770 serial ports.Paul Mundt1-1/+36
Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Add support for Solution Engine SH7721 boardYoshihiro Shimoda1-6/+9
Add support for Solution Engine SH7721 board(MS7721RP01). Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Initial support for the MX-G CPU.Paul Mundt4-3/+176
Signed-off-by: Paul Mundt <[email protected]>
2008-04-18sh: Create an sh debugfs root.Paul Mundt1-0/+14
Signed-off-by: Paul Mundt <[email protected]>
2008-04-17Generic semaphore implementationMatthew Wilcox5-152/+2
Semaphores are no longer performance-critical, so a generic C implementation is better for maintainability, debuggability and extensibility. Thanks to Peter Zijlstra for fixing the lockdep warning. Thanks to Harvey Harrison for pointing out that the unlikely() was unnecessary. Signed-off-by: Matthew Wilcox <[email protected]> Acked-by: Ingo Molnar <[email protected]>
2008-04-16sh: export empty_zero_pageAndrew Morton2-0/+2
ERROR: "empty_zero_page" [fs/ext4/ext4dev.ko] undefined! Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-04-16sh: arch/sh/kernel/traps_32.c needs asm/fpu.hAndrew Morton1-0/+1
arch/sh/kernel/traps_32.c: In function `do_reserved_inst': arch/sh/kernel/traps_32.c:667: error: implicit declaration of function `do_fpu_inst' Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-04-16sh64: add missing #include <asm/fpu.h>'sAdrian Bunk4-0/+4
This patch fixes some compile errors due to missing save_fpu() prototypes on sh64 caused by commit 9bbafce2eec190ef7e44b0eb1095ba17ce6ad3af (sh: Fix occasional FPU register corruption under preempt). Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-26sh: Fix occasional FPU register corruption under preempt.Paul Mundt6-0/+6
Presently with preempt enabled there's the possibility to be preempted after the TIF_USEDFPU test and the register save, leading to bogus state post-__switch_to(). Use an explicit preempt_disable()/enable() pair around unlazy_fpu()/clear_fpu() to avoid this. Follows the x86 change. Reported-by: Takuo Koguchi <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-21SH: Use newer, non-deprecated __SPIN_LOCK_UNLOCKED macro.Robert P. J. Day1-1/+1
Signed-off-by: Robert P. J. Day <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-13sh: Fix up the address error exception handler for SH-2.Kieran Bingham1-1/+0
Presently the SH-2/SH-2A address error exception dispatch copies off the register state from the stack and skips over the first register, skewing the rest. Fix up the math here so that the proper register state is handed down to the exception handler itself. Signed-off-by: Kieran Bingham <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-06sh: Fix up section mismatches.Paul Mundt2-2/+2
Signed-off-by: Paul Mundt <[email protected]>
2008-03-06sh: replace remaining __FUNCTION__ occurrencesHarvey Harrison6-7/+7
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-06sh: export copy-page() to modulesAndrew Morton2-0/+2
ERROR: "copy_page" [fs/unionfs/unionfs.ko] undefined! like all the other architectures. Cc: Erez Zadok <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-03-06sh_ksyms_32.c update for gcc 4.3Adrian Bunk1-2/+2
This patch fixes the following build error with landisk_defconfig when using gcc 4.3: <-- snip --> ... MODPOST 50 modules ERROR: "__udivsi3_i4i" [net/sunrpc/sunrpc.ko] undefined! ERROR: "__udivsi3_i4i" [net/appletalk/appletalk.ko] undefined! ERROR: "__udivsi3_i4i" [fs/ufs/ufs.ko] undefined! ERROR: "__udivsi3_i4i" [fs/ntfs/ntfs.ko] undefined! ERROR: "__sdivsi3_i4i" [fs/ntfs/ntfs.ko] undefined! ERROR: "__udivsi3_i4i" [fs/nfsd/nfsd.ko] undefined! ERROR: "__sdivsi3_i4i" [fs/nfsd/nfsd.ko] undefined! ERROR: "__udivsi3_i4i" [fs/nfs/nfs.ko] undefined! ERROR: "__udivsi3_i4i" [fs/lockd/lockd.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/usb/storage/usb-storage.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/usb/serial/pl2303.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/usb/serial/pl2303.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/usb/serial/ftdi_sio.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/usb/misc/sisusbvga/sisusbvga.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/usb/misc/sisusbvga/sisusbvga.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/media/video/v4l1-compat.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/media/video/v4l1-compat.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/media/video/usbvideo/vicam.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/media/video/usbvideo/usbvideo.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/media/video/usbvideo/usbvideo.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/media/video/sn9c102/sn9c102.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/media/video/sn9c102/sn9c102.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/media/video/se401.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/media/video/pwc/pwc.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/md/raid0.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/md/md-mod.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/md/md-mod.ko] undefined! ERROR: "__udivsi3_i4i" [drivers/md/linear.ko] undefined! ERROR: "__sdivsi3_i4i" [drivers/hid/usbhid/usbhid.ko] undefined! make[2]: *** [__modpost] Error 1 <-- snip --> Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-26serial: Move asm-sh/sci.h to linux/serial_sci.h.Paul Mundt18-18/+18
This header is needed on other architectures as well (namely h8300), which currently fails to build without this in place. Rather than duplicating the port definition completely there, just move this to a common location instead. This should get h8300 working again for 2.6.25, in addition to the changes already pushed by Sato-san in -rc2. Signed-off-by: Paul Mundt <[email protected]>
2008-02-26sh: fix rtc_resources setup for sh770xRafael Ignacio Zurita1-3/+3
Fix the RTC resources setup for sh770x. Whit these proper start values RTC driver (drivers/rtc/rtc-sh.c) works. Signed-off-by: Rafael Ignacio Zurita <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-26sh: Storage class should be before const qualifierTobias Klauser1-2/+2
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-25sh: Rename SH-3 CCR3 reg to avoid synclink_cs clash.Paul Mundt1-2/+2
drivers/char/pcmcia/synclink_cs.c:284:1: warning: "CCR3" redefined In file included from include/asm/cache.h:13, from include/asm/processor_32.h:15, from include/asm/processor.h:60, from include/linux/prefetch.h:14, from include/linux/list.h:8, from include/linux/module.h:9, from drivers/char/pcmcia/synclink_cs.c:38: include/asm/cpu/cache.h:38:1: warning: this is the location of the previous definition Signed-off-by: Paul Mundt <[email protected]>