summaryrefslogtreecommitdiffstats
path: root/sys/arm/xscale/i80321/ep80219_machdep.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: Remove support for xscale i80219 and i80321 CPUs. We haven't singlemmel2016-02-031-402/+0
| | | | supported config/board with these CPUs.
* Replace some references to KERNPHYSADDR with the equivelent value passed inian2015-12-211-2/+2
| | | | from the bootloader.
* Make kstack_pages a tunable on arm, x86, and powepc. On i386, thekib2015-08-101-1/+1
| | | | | | | | | | | | | | | | | | | initial thread stack is not adjusted by the tunable, the stack is allocated too early to get access to the kernel environment. See TD0_KSTACK_PAGES for the thread0 stack sizing on i386. The tunable was tested on x86 only. From the visual inspection, it seems that it might work on arm and powerpc. The arm USPACE_SVC_STACK_TOP and powerpc USPACE macros seems to be already incorrect for the threads with non-default kstack size. I only changed the macros to use variable instead of constant, since I cannot test. On arm64, mips and sparc64, some static data structures are sized by KSTACK_PAGES, so the tunable is disabled. Sponsored by: The FreeBSD Foundation MFC after: 2 week
* Fix KSTACK_PAGES issue when the default value was changed in KERNCONFzbb2015-07-161-0/+2
| | | | | | | | | | | | | | | | | | If KSTACK_PAGES was changed to anything alse than the default, the value from param.h was taken instead in some places and the value from KENRCONF in some others. This resulted in inconsistency which caused corruption in SMP envorinment. Ensure all places where KSTACK_PAGES are used the opt_kstack_pages.h is included. The file opt_kstack_pages.h could not be included in param.h because was breaking the toolchain compilation. Reviewed by: kib Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3094
* Remove the bootconfig parsing. We never used it and always passed either anandrew2015-03-291-1/+1
| | | | empty string or NULL to the setup functions that called into it.
* Use the base arm bus_space instead of an identical local copy.ian2015-01-211-1/+1
|
* Do not hand the VM the memory used for stacks/page tables/etc.cognet2014-05-291-0/+4
|
* When mapping device memory, use PTE_DEVICE rather than PTE_NOCACHE.ian2014-05-101-3/+3
| | | | | | On armv4 these are defined as synonyms right now, but it's a bit ambiguous what NOCACHE means (is buffering/write-combining also enabled or not?); this is a first step towards replacing PTE_NOCACHE with a less ambiguous name.
* The arm exception entry points currently vector through a function pointerian2014-03-091-9/+0
| | | | | | | | to the actual handler routine. All the pointers are static-intialized to the only handlers available, and yet various platform-specific inits still set those pointers (to the values they're already initialized to). Begin to drain the swamp by removing all the redundant external declarations and runtime setting of the pointers that's scattered around various places.
* Update legacy platforms to use new arm_physmem helper routines.ian2014-02-091-12/+15
|
* It turns out a global variable is the only straightforward way toian2014-02-091-0/+2
| | | | | | | | | | | communicate the kernel's physical load address from where it's known in initarm() into cpu_mp_start() which is called from non-arm code and takes no parameters. This adds the global variable and ensures that all the various copies of initarm() set it. It uses the variable in cpu_mp_start(), eliminating the last uses of KERNPHYSADDR outside of locore.S (where we can now calculate it instead of relying on the constant).
* Consolidate code related to setting up physical memory configuration intoian2014-02-081-3/+0
| | | | | | | | | | | | | | a new physmem.c file. The new code provides helper routines that can be used by legacy SoCs and newer FDT-based systems. There are routines to add one or more regions of physically contiguous ram, and exclude one or more physically contiguous regions of ram. Ram can be excluded from crash dumps, from being given over to the vm system for allocation management, or both. After all the included and excluded regions have been added, arm_physmem_init_kernel_globals() processes the regions into the global dump_avail and phys_avail arrays and realmem and physmem variables that communicate memory configuration to the rest of the kernel. Convert all existing SoCs to use the new helper code.
* Remove the ARM_USE_SMALL_ALLOC option and code related to it.ian2014-02-081-35/+0
| | | | | | | | | | This was an optimization used only by a few xscale platforms. Part of the optimization was to create a direct map for all physical pages, and that resulted in making multiple mappings of pages in a way that bypassed the logic in pmap.c to handle VIVT cache aliasing. It also just generally made the code more complex and hard to maintain for all SoCs. Reviewed by: cognet
* Call cpu_setup() from the initarm() routine on platforms that don't useian2013-11-211-0/+2
| | | | | | | the common FDT-aware initarm() in arm/machdep.c. Pointed out by: cognet Pointy hat to: ian
* Move remaining code and data related to static device mapping into theian2013-11-041-2/+3
| | | | | | | new devmap.[ch] files. Emphasize the MD nature of these things by using the prefix arm_devmap_ on the function and type names (already a few of these things found their way into MI code, hopefully it will be harder to do by accident in the future).
* Increase the KVA available for xscale CPUs.cognet2013-10-171-1/+1
|
* Eliminate a redundant #include: machine/pmap.h is already includedalc2013-03-011-1/+0
| | | | through vm/pmap.h.
* Complete r247297:attilio2013-02-281-2/+0
| | | | | | Remove unused inclusions of vm/vm_pager.h and vm/vnode_pager.h. Sponsored by: EMC / Isilon storage division
* Initialize vm_max_kernel_address on non-FDT platforms. (This should havealc2013-02-201-2/+2
| | | | | | | | been included in r246926.) The second parameter to pmap_bootstrap() is redundant. Eliminate it. Reviewed by: andrew
* Clean up the two i80321 copies of initarm to be closer to one another.andrew2012-11-171-28/+32
|
* Create a common set_stackptrs in sys/arm/machdep.c.andrew2012-09-221-15/+1
| | | | | | | On single core devices set_stackptrs is only ever called with cpu = 0 in initarm and will be identical to the existing function. On SMP this needs to be implemented for sys/arm/mp_machdep.c, but the implementations are identical for each SoC.
* Merging projects/armv6, part 1gonzo2012-08-151-3/+0
| | | | | | | | | Cummulative patch of changes that are not vendor-specific: - ARMv6 and ARMv7 architecture support - ARM SMP support - VFP/Neon support - ARM Generic Interrupt Controller driver - Simplification of startup code for all platforms
* Remove some unused variables/externs that have been copied too many times...imp2012-07-101-5/+0
|
* Modify all the arm platform files to call parse_boot_param passing inimp2012-06-141-1/+1
| | | | | | | | | | | | | the boot parameters from initarm first thing. parse_boot_param parses the boot arguments and converts them to the /boot/loader metadata the rest of the kernel uses. parse_boot_param is a weak alias to fake_preload_metadata, which all the platforms use now, but may become more extensive in the future. Since it is a weak symbol, specific boards may define their own parse_boot_param to interface to custom boot loaders. Reviewed by: cognet@, Ian Lapore
* Remove leakage of other patches into last commit.imp2012-06-131-1/+1
|
* trim trailing spaces that have accumulated over the years (these filesimp2012-06-131-11/+11
| | | | served as the basis for too many other platforms).
* Remove an unneeded increment from initarm. The variable is uninitialised,andrew2012-06-101-1/+0
| | | | | is not used in this part of the function and correctly initialised later when it is used.
* Pull out the common code to initialise proc0 & thread0 from initarm to aandrew2012-06-101-9/+1
| | | | | | common function. Reviewed by: imp
* Minor rearrangement of the locore <-> initarm interface. Pass in aimp2012-06-031-1/+1
| | | | | | structure with the first 4 registers to allow a wider range of boot loaders to work. Future commits will make use of this to centralize support for the different loaders.
* Call init_param1() much earlier, so that msgbufsize is non-zero when we wantcognet2011-02-131-2/+3
| | | | to map and use the msgbuf.
* Make MSGBUF_SIZE kernel option a loader tunable kern.msgbufsize.pluknet2011-01-211-4/+2
| | | | | | | Submitted by: perryh pluto.rain.com (previous version) Reviewed by: jhb Approved by: kib (mentor) Tested by: universe
* Implement a facility for dynamic per-cpu variables.jeff2009-06-231-0/+5
| | | | | | | | | | | | | | | - Modules and kernel code alike may use DPCPU_DEFINE(), DPCPU_GET(), DPCPU_SET(), etc. akin to the statically defined PCPU_*. Requires only one extra instruction more than PCPU_* and is virtually the same as __thread for builtin and much faster for shared objects. DPCPU variables can be initialized when defined. - Modules are supported by relocating the module's per-cpu linker set over space reserved in the kernel. Modules may fail to load if there is insufficient space available. - Track space available for modules with a one-off extent allocator. Free may block for memory to allocate space for an extent. Reviewed by: jhb, rwatson, kan, sam, grehan, marius, marcel, stas
* - Fix spelling error in comments.stas2008-12-011-1/+1
| | | | | | PR: arm/128891 Submitted by: Pavel Pankov <pankov_p@mail.ru> Approved by: kib (mentor)
* Eliminate unused global variables. (These global variables became fields ofalc2008-07-181-1/+0
| | | | struct kva_md_info many years ago.)
* Remove some long-dead codekevlo2008-04-081-4/+0
| | | | Reviewed by: cognet
* Take the first baby step towards unifying and cleaning up arminit():imp2008-04-031-53/+2
| | | | | | | | - Pull all the code to deal with the trampoline stuff into one centeralized place and use it from everywhere. - Some minor style tidiness Reviewed by: tinguely
* Fix for the panic("vm_thread_new: kstack allocation failed") andkib2007-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | silent NULL pointer dereference in the i386 and sparc64 pmap_pinit() when the kmem_alloc_nofault() failed to allocate address space. Both functions now return error instead of panicing or dereferencing NULL. As consequence, vmspace_exec() and vmspace_unshare() returns the errno int. struct vmspace arg was added to vm_forkproc() to avoid dealing with failed allocation when most of the fork1() job is already done. The kernel stack for the thread is now set up in the thread_alloc(), that itself may return NULL. Also, allocation of the first process thread is performed in the fork1() to properly deal with stack allocation failure. proc_linkup() is separated into proc_linkup() called from fork1(), and proc_linkup0(), that is used to set up the kernel process (was known as swapper). In collaboration with: Peter Holm Reviewed by: jhb
* Remove duplicate includes.cognet2007-05-231-1/+0
| | | | Submitted by: Cyril Nguyen Huu <cyril ci0 org>
* Remove sa1_cache_clean_addr. It isn't needed.kevlo2007-05-031-2/+0
|
* Threading cleanup.. part 2 of several.julian2006-12-061-4/+0
| | | | | | | | | | | | | | | | | | | | | | Make part of John Birrell's KSE patch permanent.. Specifically, remove: Any reference of the ksegrp structure. This feature was never fully utilised and made things overly complicated. All code in the scheduler that tried to make threaded programs fair to unthreaded programs. Libpthread processes will already do this to some extent and libthr processes already disable it. Also: Since this makes such a big change to the scheduler(s), take the opportunity to rename some structures and elements that had to be moved anyhow. This makes the code a lot more readable. The ULE scheduler compiles again but I have no idea if it works. The 4bsd scheduler still reqires a little cleaning and some functions that now do ALMOST nothing will go away, but I thought I'd do that as a separate commit. Tested by David Xu, and Dan Eischen using libthr and libpthread.
* Compile -- remove an unused global variable avail_end.kevlo2006-11-171-1/+0
| | | | Approved by: cognet
* Make KSE a kernel option, turned on by default in all GENERICjb2006-10-261-0/+4
| | | | | | | kernel configs except sun4v (which doesn't process signals properly with KSE). Reviewed by: davidxu@
* Fill in dump_avail[] before pmap_boostrap() is called so thatcognet2006-08-271-4/+4
| | | | ARM_USE_SMALL_ALLOC work.
* Finally bring it support for the i80219 XScale processor.cognet2006-08-241-0/+521
Submitted by: Max M. Boyarov <m.boyarov bsd by>
OpenPOWER on IntegriCloud