summaryrefslogtreecommitdiffstats
path: root/sys/arm
Commit message (Collapse)AuthorAgeFilesLines
* Add C11 macros describing subnormal numbers to float.h.das2012-01-231-0/+16
| | | | Reviewed by: bde
* TDF_* flags should be used with td_flags field and TDP_* flags should be usedpjd2012-01-221-1/+1
| | | | | | | with td_pflags field. Correct two places where it was not the case. Discussed with: kib MFC after: 1 week
* Add parentheses where required. Without them, `sizeof LDBL_MAX'das2012-01-201-3/+3
| | | | | is a syntax error and shouldn't be, while `1 FLT_ROUNDS' isn't a syntax error and should be. Thanks to bde for the examples.
* Fix the value of float_t to match what is implied by FLT_EVAL_METHOD.das2012-01-161-1/+1
|
* Fix the definition of FLT_EVAL_METHOD and some minor bugs.das2012-01-161-4/+6
|
* Implement FLT_ROUNDS for arm. Some (all?) arm FPUs lack support fordas2012-01-161-1/+5
| | | | | | | | dynamic rounding modes, but FPUless chips that use softfloat can support it because everything is emulated anyway. (We presently have incomplete support for hardware FPUs.) Submitted by: Ian Lepore
* Remove spurious 8bit chars, turning files into plain ASCII.uqs2012-01-152-2/+2
|
* Add missing options so modules build/load correctly.adrian2012-01-051-0/+3
|
* Fix header pollution, possibly unbreaking the build of cfi_bus_ixp4xx.cmarius2011-12-313-1/+6
| | | | as part of cfi.ko.
* ARM pmap fixes:raj2011-12-152-2/+5
| | | | | | | | | | | | - Write Buffers have to be drained after write to Page Table even if caches are in write-through mode. - Make sure to sync PTE in pmap_zero_page_generic(). Submitted by: Michal Mazur Reviewed by: cognet Obtained from: Semihalf MFC after: 1 month
* Eliminate vestiges of page coloring.alc2011-12-151-3/+1
|
* Make *intr{cnt,names} on ARM reside in data section, similar to other arches.raj2011-12-141-2/+1
| | | | | | | | | | sintrnames and sintrcnt are initialized with non-zero values, which were discarded by the .bss directive, so consumers like "vmstat -i" were not getting correct data. Submitted by: Lukasz Plachno Obtained from: Semihalf MFC after: 1 month
* Implement better support for USB controller suspend and resume.hselasky2011-12-142-52/+11
| | | | | | | | | | This patch should remove the need for kldunload of USB controller drivers at suspend and kldload of USB controller drivers at resume. This patch also fixes some build issues in avr32dci.c MFC after: 2 weeks
* Replace __signed by signed.ed2011-12-131-1/+1
| | | | | The signed keyword is an integral part of the C syntax. There's no need to use __signed.
* Fix OF_finddevice error return value in case of FDT.jchandra2011-12-022-8/+8
| | | | | | | | | | | | | | | | | | | According to the open firmware standard, finddevice call has to return a phandle with value of -1 in case of error. This commit is to: - Fix the FDT implementation of this interface (ofw_fdt_finddevice) to return (phandle_t)-1 in case of error, instead of 0 as it does now. - Fix up the callers of OF_finddevice() to compare the return value with -1 instead of 0 to check for errors. - Since phandle_t is unsigned, the return value of OF_finddevice should be checked with '== -1' rather than '<= 0' or '> 0', fix up these cases as well. Reported by: nwhitehorn Reviewed by: raj Approved by: raj, nwhitehorn
* Rename device_delete_all_children() into device_delete_children().hselasky2011-11-223-3/+3
| | | | | Suggested by: jhb @ and marius @ MFC after: 1 week
* - There's no need to overwrite the default device method with the defaultmarius2011-11-226-16/+6
| | | | | | | | | | one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID.
* Initial version of cesa(4) driver for Marvell crypto engine and securityraj2011-11-193-0/+9
| | | | | | | | | | | accelerator. The following algorithms and schemes are supported: - 3DES, AES, DES - MD5, SHA1 Obtained from: Semihalf Written by: Piotr Ziecik
* Move the device_delete_all_children() function from usb_util.chselasky2011-11-191-7/+1
| | | | | | | | to kern/subr_bus.c. Simplify this function so that it no longer depends on malloc() to execute. Identify a few other places where it makes sense to use device_delete_all_children(). MFC after: 1 week
* Introduce the option VFS_ALLOW_NONMPSAFE and turn it on by default onattilio2011-11-081-0/+2
| | | | | | | | | | | | | | all the architectures. The option allows to mount non-MPSAFE filesystem. Without it, the kernel will refuse to mount a non-MPSAFE filesytem. This patch is part of the effort of killing non-MPSAFE filesystems from the tree. No MFC is expected for this patch. Tested by: gianni Reviewed by: kib
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-074-4/+5
| | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
* Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.ed2011-11-073-3/+4
| | | | This means that their use is restricted to a single C file.
* - Import the common MII bitbang'ing code from NetBSD and convert drivers tomarius2011-11-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | take advantage of it instead of duplicating it. This reduces the size of the i386 GENERIC kernel by about 4k. The only potential in-tree user left unconverted is xe(4), which generally should be changed to use miibus(4) instead of implementing PHY handling on its own, as otherwise it makes not much sense to add a dependency on miibus(4)/mii_bitbang(4) to xe(4) just for the MII bitbang'ing code. The common MII bitbang'ing code also is useful in the embedded space for using GPIO pins to implement MII access. - Based on lessons learnt with dc(4) (see r185750), add bus barriers to the MII bitbang read and write functions of the other drivers converted in order to ensure the intended ordering. Given that register access via an index register as well as register bank/window switching is subject to the same problem, also add bus barriers to the respective functions of smc(4), tl(4) and xl(4). - Sprinkle some const. Thanks to the following testers: Andrew Bliznak (nge(4)), nwhitehorn@ (bm(4)), yongari@ (sis(4) and ste(4)) Thanks to Hans-Joerg Sirtl for supplying hardware to test stge(4). Reviewed by: yongari (subset of drivers) Obtained from: NetBSD (partially)
* Check the return value of BUS_SETUP_INTR()kevlo2011-10-276-13/+32
| | | | Reviewed by: imp
* People porting FreeBSD to new architectures ought not have todas2011-10-211-0/+2
| | | | | | | | | | | | | implement a deprecated FPU control interface in addition to the standard one. To make this clearer, further deprecate ieeefp.h by not declaring the function prototypes except on architectures that implement them already. Currently i386 and amd64 implement the ieeefp.h interface for compatibility, and for fp[gs]etprec(), which doesn't exist on most other hardware. Powerpc, sparc64, and ia64 partially implement it and probably shouldn't, and other architectures don't implement it at all.
* Trace attempts to call restricted MD syscalls.des2011-10-181-0/+4
|
* Fix 2 bugs :cognet2011-10-162-17/+19
| | | | | | | | | | | | | | - A race condition could happen if two threads were using RAS at the same time as the code didn't reset RAS_END, the RAS code could believe we were not in a RAS, when we were in fact. - Using signed value logic to compare addresses wasn't such a good idea. Many thanks to Ian to investigate on these issues. Pointy hat to: cognet PR: arm/161498 Submitted by: Ian Lepore <freebsd At damnhippie DOT dyndns dot org MFC after: 1 week
* Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or thecognet2011-10-161-0/+2
| | | | | | | | | page has been allocated, or we could end up using random values, and bad things could happen. PR: arm/161492 Submitted by: Ian Lepore <freebsd AT damnhippie dot dyndns DOT org> MFC after: 1 week
* Name these gpio pins better, they are on an external PLD and not the same asthompsa2011-10-121-5/+5
| | | | the cpu wired gpio.
* Dont just set the pin high when turning on output, use the current value. Alsothompsa2011-10-121-9/+38
| | | | let this value be set when in input mode.
* Remove unused define.kib2011-10-071-1/+0
| | | | MFC after: 1 month
* Add missing newbus glue, this has never attached properly to gpiobus.thompsa2011-10-051-0/+5
|
* Properly guard definitions of DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ andmarcel2011-10-041-0/+10
| | | | SGROWSIZ. They can be set in the kernel configuration file.
* Fix build when DEBUG is defined in the kernel configuration file (e.g.marcel2011-10-042-6/+0
| | | | LINT).
* Include opt_* headers first. Otherwise we can end up with redefinedmarcel2011-10-041-7/+7
| | | | symbols.
* Fix build when DEBUG is defined (e.g. for LINT).marcel2011-10-041-23/+4
|
* Convert ARM to the syscallenter/syscallret system call sequence handlers.kib2011-10-043-81/+62
| | | | | Tested by: gber MFC after: 1 month
* Remove pointless semicolons after labelkevlo2011-09-308-10/+10
|
* In order to maximize the re-usability of kernel code in user space thiskmacy2011-09-161-1/+1
| | | | | | | | | | | | | patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz)
* Fix a zyd(4) comment typo that was copy+pasted into most kernel config files.brueffer2011-09-115-5/+5
| | | | | | | PR: 160276 Submitted by: MATSUMIYA Ryo <matsumiya@mma.club.uec.ac.jp> Approved by: re (kib) MFC after: 1 week
* Split the vm_page flags PG_WRITEABLE and PG_REFERENCED into atomickib2011-09-061-16/+16
| | | | | | | | | | | | | | | | | flags field. Updates to the atomic flags are performed using the atomic ops on the containing word, do not require any vm lock to be held, and are non-blocking. The vm_page_aflag_set(9) and vm_page_aflag_clear(9) functions are provided to modify afalgs. Document the changes to flags field to only require the page lock. Introduce vm_page_reference(9) function to provide a stable KPI and KBI for filesystems like tmpfs and zfs which need to mark a page as referenced. Reviewed by: alc, attilio Tested by: marius, flo (sparc64); andreast (powerpc, powerpc64) Approved by: re (bz)
* Follow up to r225203 refining break-to-debugger run-time configurationrwatson2011-08-271-21/+4
| | | | | | | | | | | | improvements: (1) Implement new model in previously missed at91 UART driver (2) Move BREAK_TO_DEBUGGER and ALT_BREAK_TO_DEBUGGER from opt_comconsole.h to opt_kdb.h (spotted by np) (3) Garbage collect now-unused opt_comconsole.h MFC after: 3 weeks Approved by: re (bz)
* - Move the PG_UNMANAGED flag from m->flags to m->oflags, renaming the flagkib2011-08-091-27/+27
| | | | | | | | | | | | | | to VPO_UNMANAGED (and also making the flag protected by the vm object lock, instead of vm page queue lock). - Mark the fake pages with both PG_FICTITIOUS (as it is now) and VPO_UNMANAGED. As a consequence, pmap code now can use use just VPO_UNMANAGED to decide whether the page is unmanaged. Reviewed by: alc Tested by: pho (x86, previous version), marius (sparc64), marcel (arm, ia64, powerpc), ray (mips) Sponsored by: The FreeBSD Foundation Approved by: re (bz)
* Change all the sample kernel configurations to usermacklem2011-08-0722-56/+56
| | | | | | | | | | NFSCL, NFSD instead of NFSCLIENT, NFSSERVER since NFSCL and NFSD are now the defaults. The client change is needed for diskless configurations, so that the root mount works for fstype nfs. Reported by seanbru at yahoo-inc.com for i386/XEN. Approved by: re (hrs)
* Fix for arm and mips case the size of storage for sintrcnt/sintrnames.attilio2011-08-022-3/+3
| | | | | | | | | | It seems that "info as" is not much precise on what expect by pseudo-op .word, by the way. No MFC is previewed for this patch. Tested by: andreast, pluknet Approved by: re (kib)
* Add the possibility to specify from kernel configs MAXCPU value.attilio2011-07-191-0/+2
| | | | | | | | | | This patch is going to help in cases like mips flavours where you want a more granular support on MAXCPU. No MFC is previewed for this patch. Tested by: pluknet Approved by: re (kib)
* - Remove the eintrcnt/eintrnames usage and introduce the concept ofattilio2011-07-182-13/+10
| | | | | | | | | | | | | | | | sintrcnt/sintrnames which are symbols containing the size of the 2 tables. - For amd64/i386 remove the storage of intr* stuff from assembly files. This area can be widely improved by applying the same to other architectures and likely finding an unified approach among them and move the whole code to be MI. More work in this area is expected to happen fairly soon. No MFC is previewed for this patch. Tested by: pluknet Reviewed by: jhb Approved by: re (kib)
* Do not call platform_gpio_init() early. It doesn't work because we domarcel2011-07-152-26/+2
| | | | | | not have enough information to reliably setup GPIO pins. Do it when we attach the gpio driver. This prevents hangs and the need to fake up a softc.
* Set preload_addr_relocate accordingly so that preloaded modules andmarcel2011-07-151-0/+1
| | | | images are properly relocated.
* In pmap_protect(), don't call vm_page_dirty() if the page is unmanaged.marcel2011-07-151-3/+6
|
OpenPOWER on IntegriCloud