summaryrefslogtreecommitdiffstats
path: root/arch/microblaze (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-linus' of ↵Linus Torvalds2009-06-135-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: add generic lib/checksum.c asm-generic: add a generic uaccess.h asm-generic: add generic NOMMU versions of some headers asm-generic: add generic atomic.h and io.h asm-generic: add legacy I/O header files asm-generic: add generic versions of common headers asm-generic: make bitops.h usable asm-generic: make pci.h usable directly asm-generic: make get_rtc_time overridable asm-generic: rename page.h and uaccess.h asm-generic: rename atomic.h to atomic-long.h asm-generic: add a generic unistd.h asm-generic: add generic ABI headers asm-generic: add generic sysv ipc headers asm-generic: introduce asm/bitsperlong.h asm-generic: rename termios.h, signal.h and mman.h
| * asm-generic: rename page.h and uaccess.hArnd Bergmann2009-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The current asm-generic/page.h only contains the get_order function, and asm-generic/uaccess.h only implements unaligned accesses. This renames the file to getorder.h and uaccess-unaligned.h to make room for new page.h and uaccess.h file that will be usable by all simple (e.g. nommu) architectures. Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
| * asm-generic: rename atomic.h to atomic-long.hArnd Bergmann2009-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | The existing asm-generic/atomic.h only defines the atomic_long type. This renames it to atomic-long.h so we have a place to add a truly generic atomic.h that can be used on all non-SMP systems. Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ingo Molnar <mingo@elte.hu>
| * asm-generic: introduce asm/bitsperlong.hArnd Bergmann2009-06-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides a reliable way for asm-generic/types.h and other files to find out if it is running on a 32 or 64 bit platform. We cannot use CONFIG_64BIT for this in headers that are included from user space because CONFIG symbols are not available there. We also cannot do it inside of asm/types.h because some headers need the word size but cannot include types.h. The solution is to introduce a new header <asm/bitsperlong.h> that defines both __BITS_PER_LONG for user space and BITS_PER_LONG for usage in the kernel. The asm-generic version falls back to 32 bit unless the architecture overrides it, which I did for all 64 bit platforms. Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
| * asm-generic: rename termios.h, signal.h and mman.hArnd Bergmann2009-06-112-2/+2
| | | | | | | | | | | | | | | | | | | | The existing asm-generic versions are incomplete and included by some architectures. New architectures should be able to use a generic version, so rename the existing files and change all users, which lets us add the new files. Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
* | microblaze: Don't use access_ok for unalignedJohn Williams2009-06-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | it assumes we have an unaligned exception handler which (a) may not be true (b) costs a lot of performance Instead we'll use struct/union method for big endian accesses, and byte-shifting for little endian. Signed-off-by: John Williams <john.williams@petalogix.com>
* | microblaze: remove unused flat_stack_align() definitionAndrew Morton2009-06-021-1/+0
| | | | | | | | | | Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Fix problem with early_printk in startupMichal Simek2009-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem arise when is incopatibility between kernel/dts/pvr and kernel tries to announce it. Early printk device (uartlite in our case) was in TLB 2 and when kernel extract DTB it necessary to allocate at least one TLB at the end of memory. First free TLB was number two where was early printk. But checking mechanism (kernel/dts/pvr) was after extrahing but TLB 2 was different. This caused that kernel hung up. Moving early printk device to TLB 63 solve it and we don't protect it which means that we can use early_printk messages only for initial parts of kernel then we rewrite TLB 63. Reported-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: MakefilesMichal Simek2009-05-265-1/+11
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Kconfig updateMichal Simek2009-05-261-3/+109
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: stat.h MMU updateMichal Simek2009-05-261-41/+36
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Elf updateMichal Simek2009-05-261-0/+93
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Update dma.h for MMUMichal Simek2009-05-261-0/+5
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Update cacheflush.hMichal Simek2009-05-261-1/+19
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Update signal returning addressMichal Simek2009-05-261-0/+8
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Traps MMU updateMichal Simek2009-05-262-16/+42
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Enable fork syscall for MMU and add fork as vfork for noMMUMichal Simek2009-05-262-2/+6
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Update linker script for MMUMichal Simek2009-05-261-2/+1
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Add MMU related exceptions handlingMichal Simek2009-05-261-8/+37
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: uaccess MMU updateMichal Simek2009-05-262-52/+381
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Update exception handling - MMU exceptionMichal Simek2009-05-261-7/+739
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: entry.S, entry.hMichal Simek2009-05-262-2/+1151
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Add CURRENT_TASK for entry.SMichal Simek2009-05-261-0/+8
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: MMU asm offset updateMichal Simek2009-05-261-5/+16
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Update tlb.h and tlbflush.hMichal Simek2009-05-262-0/+56
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Update process creation for MMUMichal Simek2009-05-264-13/+181
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: pgalloc.h and page.hMichal Simek2009-05-262-43/+314
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: io.h MMU updateMichal Simek2009-05-261-0/+31
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Page table - ioremap - pgtable.c/h, section updateMichal Simek2009-05-263-0/+825
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Context handling - mmu_context.c/hMichal Simek2009-05-264-21/+238
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Page fault handling high level - fault.cMichal Simek2009-05-261-0/+304
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: mmu.h updateMichal Simek2009-05-261-2/+102
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: MMU initializationMichal Simek2009-05-261-4/+154
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: TLB low level codeMichal Simek2009-05-261-0/+120
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Alocate TLB for early consoleMichal Simek2009-05-262-2/+11
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: MMU update for startup codeMichal Simek2009-05-261-0/+190
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze_mmu_v2: Add mmu_defconfigMichal Simek2009-05-261-0/+798
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Fix size of __kernel_mode_t to shortMichal Simek2009-05-261-1/+1
| | | | | | | | | | | | | | This patches solve problem with inconsistency between kernel and glibc Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Add audit and seccomp thread flags.Edgar E. Iglesias2009-05-261-0/+9
| | | | | | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* | microblaze: Kbuild updateMichal Simek2009-05-221-24/+1
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Fix cast warning for __va in prom.cMichal Simek2009-05-211-2/+3
| | | | | | | | | | | | | | __va expect 32bit value but of_read_ulong(of_read_number) returns 64bit value Signed-off-by: Michal Simek <monstr@monstr.eu>
* | Microblaze: Remove unused variable from paging initMichal Simek2009-05-211-1/+0
| | | | | | | | Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Cleanup compiled-in rootfs in BSS sectionMichal Simek2009-05-211-21/+32
| | | | | | | | | | | | | | | | | | | | | | This patch is based on patch from Steve Magnani. There were bug for compiled-in rootfs. We have to move moving rootfs which is in BSS section to _ebss section which is at the end of kernel and then clear bss section not vice-versa. Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Fix early cmdline for CMDLINE_FORCEMichal Simek2009-05-212-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | This patch fixed parsing early parameters because current implementation does that early parse DTS command line and then parse CMDLINE line which is compiled-in. For case that DTS doesn't contain command line is copied command line from kernel with is done in prom.c that's why I can remove it from machine_early_init. Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Guard __HAVE_ARCH macros with __KERNEL__ in string.hSteve Magnani2009-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | A polarity reversal in the __KERNEL__ guard prevents the __HAVE_ARCH flags from being defined in kernel compilation. I noticed that there's now an option for assembly-optimized versions of memcpy and memmove. I believe this may be buggy; when I turn it on, all my printk output gets smashed together, as if the newlines aren't getting copied. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: clean LDFLAGS to build kernelThomas Chou2009-05-211-0/+2
| | | | | | | | | | | | | | | | Extra LDFLAGS from user space building may cause kernel failed to compile. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: Fix paging init-zone initializationSteve Magnani2009-05-211-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fix problem with bad zone initialization. This bug wasn't perform because Microblaze doesn't define CONFIG_ZONE_DMA and ZONE_NORMAL was 0 for this case that's why free_area_init works with correct values. Original message: I believe that the switch from ZONE_DMA (== 0) to ZONE_NORMAL broke the free area initialization. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: use generic dma-mapping-broken.hArnd Bergmann2009-05-212-130/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Microblaze does not support the Linux DMA mapping API at this point, so disable CONFIG_NO_DMA. This lets us use the generic dma-mapping-broken.h implementation instead of providing a different copy. Any drivers that try to use DMA mapping now get omitted from Kconfig or produce a link error, rather than failing silently at run time. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: prepare signal handling for generic unistd.hMichal Simek2009-05-213-76/+17
| | | | | | | | | | | | | | | | | | We need to define set_restore_sigmask() in order to get pselect and ppoll. Also, the setup_frame function can not be used when __NR_sigreturn is not defined. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>
* | microblaze: clean up checksum.cArnd Bergmann2009-05-212-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the function prototypes in the checksum code to have the usual prototypes, typically by turning int arguments into __wsum. Also change csum_partial_copy_from_user() to operate on the right address space and export ip_fast_csum, which is used in modular networking code. The new version is now sparse-clean including endianess checks. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <monstr@monstr.eu>