Arnd Bergmann
f2224ff07f
microblaze: use generic dma-mapping-broken.h
...
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 <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-05-21 15:56:07 +02:00
Michal Simek
a6029d1c8c
microblaze: prepare signal handling for generic unistd.h
...
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 <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-05-21 15:56:07 +02:00
Arnd Bergmann
732703af9c
microblaze: clean up checksum.c
...
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 <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-05-21 15:56:07 +02:00
Arnd Bergmann
838d2406ee
microblaze: remove bad_user_access_length
...
This function was actually causing harm, by hiding
errors about invalid sized get_user/put_user accesses.
Signed-off-by: Arnd Bergmann <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-05-21 15:56:06 +02:00
Arnd Bergmann
bb09791344
microblaze: do not include types.h in ptrace.h
...
linux/types.h breaks the uclibc build, so don't
include it here.
Signed-off-by: Arnd Bergmann <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-05-21 15:56:06 +02:00
Arnd Bergmann
0c60155e14
microblaze: add a dummy pgprot_noncached
...
Some device drivers call this, so add a macro
that pretends to do this. Since there is no
MMU support, it won't actually result in an
uncached mapping, though.
Signed-off-by: Arnd Bergmann <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-05-21 15:56:06 +02:00
Michal Simek
873a2e89c5
microblaze: Remove POWERPC reference from Microblaze gpio.h
...
Signed-off-by: Michal Simek <[email protected] >
2009-05-21 15:56:04 +02:00
Grant Likely
0763ed2355
of: make of_(un)register_platform_driver common code
...
Some drivers using of_register_platform_driver() wrapper break on sparc
because the wrapper isn't in the header file. This patch moves it from
Microblaze and PowerPC implementations and makes it common code.
Fixes this sparc64 allmodconfig build error (at least):
drivers/leds/leds-gpio.c: In function `gpio_led_init':
drivers/leds/leds-gpio.c:295: error: implicit declaration of function `of_register_platform_driver'
drivers/leds/leds-gpio.c: In function `gpio_led_exit':
drivers/leds/leds-gpio.c:311: error: implicit declaration of function `of_unregister_platform_driver'
Signed-off-by: Grant Likely <[email protected] >
Acked-by: David S. Miller <[email protected] >
Cc: Michal Simek <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Stephen Rothwell <[email protected] >
Cc: Richard Purdie <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2009-05-02 15:36:10 -07:00
Michal Simek
2921e2bd67
microblaze: Add STATE_SAVE_ARG_SPACE for noMMU kernel too
...
For noMMU kernel this change nothing bring but this change
helps with MMU synchronization.
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:27:33 +02:00
Michal Simek
e1c4bd0897
microblaze: Move start_thread to process.c
...
This change is due to upcomming MMU merge
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:09:18 +02:00
Michal Simek
df4f3eb7c3
microblaze: Add missing preadv and pwritev syscalls
...
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:09:17 +02:00
Michal Simek
ce0b755f7d
microblaze: Add missing declaration for die and _exception func
...
This change remove sparse errors.
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:09:17 +02:00
Michal Simek
2eba318e0d
microblaze: Move task_pt_regs up
...
This change is important for easier merge with Microblaze MMU code.
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:09:17 +02:00
Michal Simek
ac3efab506
microblaze: Rename kernel_mode to pt_mode in pt_regs
...
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:09:17 +02:00
Michal Simek
ceb8944b3a
microblaze: Remove uncache shadow condition
...
Uncached shadow feature is not supported in current
kernel code that's why I removed it.
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:09:16 +02:00
Michal Simek
f2ec24fd42
microblaze: Remove unneded per cpu SYSCALL_SAVE variable
...
Signed-off-by: Michal Simek <[email protected] >
2009-04-23 16:09:16 +02:00
Huang Weiyi
00300d6746
microblaze: remove duplicated #include's
...
Remove duplicated #include's in
arch/microblaze/include/asm/io.h
arch/microblaze/kernel/prom.c
arch/microblaze/kernel/ptrace.c
arch/microblaze/kernel/signal.c
arch/microblaze/kernel/sys_microblaze.c
Signed-off-by: Huang Weiyi <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-04-14 11:09:15 +02:00
Michal Simek
39141bfcad
microblaze: Add TIMESTAMPING constants to socket.h
...
This changes was introduce with
commit: cb9eff0978
net: new user space API for time stamping of incoming and outgoing packets
Signed-off-by: Michal Simek <[email protected] >
2009-04-14 10:37:20 +02:00
Michal Simek
6c149fd7cd
microblaze: Add missing empty ftrace.h file
...
Signed-off-by: Michal Simek <[email protected] >
2009-04-14 10:37:18 +02:00
Michal Simek
5a9bd51810
microblaze: Fix problem with removing zero length files
...
Adding one new line was recommended solution.
Test with make distclean
Tested-by: Jeff Garzik <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-04-14 10:37:09 +02:00
Michal Simek
eedbdab99f
microblaze_v8: Interrupt handling and timer support
...
Reviewed-by: Thomas Gleixner <[email protected] >
Reviewed-by: Ingo Molnar <[email protected] >
Reviewed-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:49 +01:00
Michal Simek
3be100114a
microblaze_v8: syscalls.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:49 +01:00
Michal Simek
36174f4e87
microblaze_v8: pci headers
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:48 +01:00
Michal Simek
e96978b272
microblaze_v8: Kbuild file
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:47 +01:00
Michal Simek
4684dadec6
microblaze_v8: string.h thread_info.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:47 +01:00
Michal Simek
dd0105a6e9
microblaze_v8: unistd.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:46 +01:00
Michal Simek
9de8901153
microblaze_v8: fcntl.h sockios.h ucontext.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:45 +01:00
Michal Simek
a9ebdfc5ed
microblaze_v8: pool.h socket.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:44 +01:00
Michal Simek
0a7d800de2
microblaze_v8: device.h param.h topology.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:44 +01:00
Michal Simek
4115ac8381
microblaze_v8: headers files entry.h current.h mman.h registers.h sembuf.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:43 +01:00
Michal Simek
aa683ff145
microblaze_v8: namei.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:42 +01:00
Michal Simek
a1a741e414
microblaze_v8: gpio.h, serial.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:42 +01:00
Michal Simek
407f99912b
microblaze_v8: headers simple files - empty or redirect to asm-generic
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:41 +01:00
Michal Simek
3a5c17b573
microblaze_v8: sigcontext.h siginfo.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:40 +01:00
Michal Simek
19d1b40ac5
microblaze_v8: termbits.h termios.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:40 +01:00
Michal Simek
fb621f1790
microblaze_v8: stats headers
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:39 +01:00
Michal Simek
9981cd94d5
microblaze_v8: clinkage.h linkage.h sections.h kmap_types.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:38 +01:00
Michal Simek
4511ec153a
microblaze_v8: system.h processor.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:37 +01:00
Michal Simek
6a3cece5e5
microblaze_v8: headers pgalloc.h pgtable.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:37 +01:00
Michal Simek
10713b1d9f
microblaze_v8: atomic.h bitops.h swab.h byteorder.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:36 +01:00
Michal Simek
4dbdc9a596
microblaze_v8: headers for irq
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:35 +01:00
Michal Simek
69b1b7817e
microblaze_v8: dma support
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:35 +01:00
Michal Simek
c6087fdc77
microblaze_v8: headers for executables format FLAT, ELF
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:34 +01:00
Michal Simek
2c572c2824
microblaze_v8: io.h IO operations
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:33 +01:00
Michal Simek
97f34d71a0
microblaze_v8: ioctl support
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:33 +01:00
Michal Simek
6d9c3f2085
microblaze_v8: definitions of types
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:32 +01:00
Michal Simek
8c4f92fe02
microblaze_v8: bug headers files
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:32 +01:00
Michal Simek
9b8a45d927
microblaze_v8: includes SHM*, msgbuf
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:31 +01:00
Michal Simek
4b87d7a4f9
microblaze_v8: page.h, segment.h, unaligned.h
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:30 +01:00
Michal Simek
a95d0e1602
microblaze_v8: memory inicialization, MMU, TLB
...
Reviewed-by: Ingo Molnar <[email protected] >
Acked-by: John Linn <[email protected] >
Acked-by: Stephen Neuendorffer <[email protected] >
Acked-by: John Williams <[email protected] >
Signed-off-by: Michal Simek <[email protected] >
2009-03-27 14:25:29 +01:00