mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
This backports the following upstream commits all as one patch:54f5de7099ecc1a899371a0ef85f84f106af4e90097eed1038935874141d0ec62d2909c4caa778152ea1d13f64570dcf2c15564b3bffc60067bd8a55f8b72560968c7b49b3ec9206de95b12c6a10161d05d72faa6dbb52d66940e77414e0aaaa65607373Backport done by Greg Kroah-Hartman. Only minor tweaks were needed. Cc: David S. Miller <davem@davemloft.net> Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
/*
|
|
* contains various random system calls that have a non-standard
|
|
* calling sequence on the Linux/Blackfin platform.
|
|
*
|
|
* Copyright 2004-2009 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later
|
|
*/
|
|
|
|
#include <linux/spinlock.h>
|
|
#include <linux/sem.h>
|
|
#include <linux/msg.h>
|
|
#include <linux/shm.h>
|
|
#include <linux/syscalls.h>
|
|
#include <linux/mman.h>
|
|
#include <linux/file.h>
|
|
#include <linux/fs.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/ipc.h>
|
|
#include <linux/unistd.h>
|
|
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/dma.h>
|
|
|
|
asmlinkage void *sys_sram_alloc(size_t size, unsigned long flags)
|
|
{
|
|
return sram_alloc_with_lsl(size, flags);
|
|
}
|
|
|
|
asmlinkage int sys_sram_free(const void *addr)
|
|
{
|
|
return sram_free_with_lsl(addr);
|
|
}
|
|
|
|
asmlinkage void *sys_dma_memcpy(void *dest, const void *src, size_t len)
|
|
{
|
|
return safe_dma_memcpy(dest, src, len);
|
|
}
|
|
|
|
#if defined(CONFIG_FB) || defined(CONFIG_FB_MODULE)
|
|
#include <linux/fb.h>
|
|
unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr,
|
|
unsigned long len, unsigned long pgoff, unsigned long flags)
|
|
{
|
|
struct fb_info *info = filp->private_data;
|
|
return (unsigned long)info->screen_base;
|
|
}
|
|
EXPORT_SYMBOL(get_fb_unmapped_area);
|
|
#endif
|