summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/bfin
Commit message (Collapse)AuthorAgeFilesLines
* bits/mmap.h: unify ala linux asm-generic effortsMike Frysinger2009-11-231-96/+0
| | | | | | | | | | Most ports have the same exact mman bit defines, so let's unify things like the linux kernel has with the asm-generic efforts. A few ports are left behind as they are non-trivial to merge -- the arch maintainers can tackle it if they care. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* clean up O_CLOEXEC handlingMike Frysinger2009-10-071-0/+2
| | | | | | | Drop the "#ifndef O_CLOEXEC" cruft, enable O_CLOEXEC in most fcntl.h headers, and import __ASSUME_O_CLOEXEC from glibc. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* fcntl.h: drop unused/dead O_STREAMINGMike Frysinger2009-10-071-1/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build: Include Makefile.commonarch from common Makefile.inCarmelo Amoroso2009-07-291-2/+0
| | | | | | | | Avoid including akefile.commonarch in each Makefile.arch. Include it instead from Makefile.in just after the arch specific Makefile.arch Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* enable nanosecond stat support for everyoneMike Frysinger2009-07-261-12/+6
| | | | | | | | | | | | | Fill out the stat structure so that the nanosecond resolution support is always available. There is a small code size increase for a few ports (three additional assignments in xstatconv), but otherwise everything should remain the same. While we're here, punt __old_kernel_stat from the few headers that still define it as it is unused in uClibc and causes compile errors after these nanosecond changes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix typo in byteswap.h commitMike Frysinger2009-07-231-1/+1
| | | | | | | The Blackfin port hasn't been compiling cleanly, so this typo was missed in the byteswap unification commit. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix incorrect attribute orderMike Frysinger2009-07-231-1/+1
| | | | | | | | | | | | | | | | | The order of attributes in a function definition matters and in a few places in the Blackfin code, it was being applied to the return type instead of the function itself. In file included from ldso/ldso/ldso.c:43: ldso/ldso/bfin/elfinterp.c: At top level: ldso/ldso/bfin/elfinterp.c:42: warning: '__visibility__' attribute ignored on non-class types In file included from ldso/ldso/bfin/elfinterp.c:341, from ldso/ldso/ldso.c:43: libc/sysdeps/linux/bfin/crtreloc.c: At top level: libc/sysdeps/linux/bfin/crtreloc.c:91: warning: 'visibility' attribute ignored on non-class types Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* create real common vfork() functionMike Frysinger2009-07-232-21/+1
| | | | | | | | | Rather than force people to always implement their own vfork(), have the default implementation be sane. For now, only the Blackfin port uses the new code. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: no need to load P5 for shared FLATJie Zhang2009-07-221-1/+0
| | | | | | | The register is already loaded for us upon entry by the kernel. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix generation of Scrt1.o for FDPICJie Zhang2009-07-221-1/+1
| | | | | Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify FDPIC/FLAT versions of cloneMike Frysinger2009-07-221-22/+8
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* byteswap: unify common definitionsMike Frysinger2009-07-211-76/+16
| | | | | | | | | The majority of the byteswap functions are the same across all arches, so setup a common header to provide definitions if they don't exist. This allows arches to override only the ones they actually want to implement with inline assembly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* syscall(): create a common version based on INLINE_SYSCALL_NCS()Mike Frysinger2009-07-092-50/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* syscall: unify part 2: NCS varietyMike Frysinger2009-07-091-2/+2
| | | | | | | Declare common NCS (non-constant syscall) variants and convert the existing ports over to this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* syscall: unify common syscall definesMike Frysinger2009-07-081-145/+0
| | | | | | | | | Unify all the common syscall defines in syscalls-common.h and scrub all the duplicated code from relevant ports. This should also make converting existing ports to INLINE_SYSCALL() much easier as they don't have to get lost in all the unrelated noise, as well as creating new ports. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* uClibc_arch_features: sync defines between portsMike Frysinger2009-07-031-0/+9
| | | | | | | Make sure each arch has the same complete list to make comparing between them easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* import user.h from the kernel as it is no longer exported by the kernelMike Frysinger2009-03-161-0/+57
|
* create arch-generic brk() based on blackfin oneMike Frysinger2008-12-112-37/+1
|
* add inlines for Blackfin atomic functionsMike Frysinger2008-12-112-1/+156
|
* Blackfin: add L2_SRAM flag for alloc funcMike Frysinger2008-12-111-0/+1
|
* Blackfin: declare {INLINE,INTERNAL}_SYSCALL() and friendsMike Frysinger2008-12-111-0/+53
|
* add ENDPROC() macro for Blackfin assemblyMike Frysinger2008-12-111-0/+1
|
* use newer spiffy asm constraints to get better code generationMike Frysinger2008-12-111-17/+9
|
* punt old unused headerMike Frysinger2008-12-111-133/+0
|
* fix ioperm build problems caused by libc_hidden_proto removalDenis Vlasenko2008-11-211-0/+1
|
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-201-1/+1
|
* - Remove linux-specific prototypes if asked to.Bernhard Reutner-Fischer2008-11-151-2/+2
|
* - revert wrong r24049Bernhard Reutner-Fischer2008-11-151-2/+2
|
* - Remove linux-specific prototypes if asked to.Bernhard Reutner-Fischer2008-11-151-2/+2
|
* - trim superfluous ';'. No objcode changesBernhard Reutner-Fischer2008-10-283-3/+3
|
* - tidy up inline:Bernhard Reutner-Fischer2008-10-242-3/+3
| | | | ldso and syscalls are __always_inline (the latter would need more cleanup)
* - use c89-style commentsBernhard Reutner-Fischer2008-10-032-24/+24
| | | | Closes issue #5194
* - add sync_file_range()Bernhard Reutner-Fischer2008-09-161-4/+0
| | | | Tested successfully on i386..
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-233-4/+4
|
* Fix merge error: mmap.c no longer exists in bfin/.Bernd Schmidt2008-06-031-1/+1
|
* - add missing #endifBernhard Reutner-Fischer2008-05-031-0/+1
|
* - implement splice,vmsplice,tee for all archesBernhard Reutner-Fischer2008-05-031-10/+23
| | | | - synch F_LINUX_SPECIFIC_BASE related fcntls for all arches
* L1 memory support for the Blackfin. A couple new syscalls to manage L1Bernd Schmidt2008-01-187-13/+69
| | | | | allocations, dma_memcpy to move stuff between L1 and main memory, and a new structure to describe the global data in L1 scratchpad memory.
* A patch from our Blackfin repository, originally from Jie Zhang. This fixesBernd Schmidt2008-01-171-3/+0
| | | | | | | | | | | | | a problem where the linker was trying to use the wrong symbol name for the init function. Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960, microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets which define SYMBOL_PREFIX as _. Remove defines and undefs from uClibc_arch_features.h of each target. Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
* change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger2008-01-081-1/+1
| | | | doing double negatives
* if an arch does not provide __NR_mmap, fall back to __NR_mmap2 (this just ↵Mike Frysinger2008-01-052-25/+1
| | | | generalizes what Blackfin was already doing)
* Blackfin crt1.S fixes for building with -msep-data.Bernd Schmidt2007-11-231-6/+11
|
* mcontext_t shouldn't have a version argument, and fix REG_B0 definition.Bernd Schmidt2007-11-231-2/+1
|
* From Jie Zhang:Bernd Schmidt2007-11-231-3/+4
| | | | __bswap_16 could not assume that it's zero extended when an unsigned short int is loaded into the data register.
* Ignore entries of "-1" in rofixup; the linker sometimes has no choice but toBernd Schmidt2007-11-221-23/+26
| | | | create these for deleted entries in .eh_frame.
* Add Blackfin specific mmap implementation using sys_mmap2.Bernd Schmidt2007-11-222-1/+25
|
* sys/procfs.h defines a typedef for floating point registers that references anBernd Schmidt2007-11-221-2/+2
| | | | | | | undefined structure. This typedef is used in linuxthreads.old-db, causing a compilation failure. Fixed by defining an empty structure for it - we don't have fp regs anyway.
* pull from Blackfin repo: optimized byteswap funcs!Mike Frysinger2007-09-151-0/+93
|
* pull from Blackfin repo: cleanup string funcsMike Frysinger2007-09-151-0/+20
|
* use gcc input constraints to avoid often duplicated reloads when making syscallsMike Frysinger2007-09-154-96/+52
|