summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-10-24Introduce a pluggable interrupt controller infrastructure for beagle,Dale Rahn
to allow panda to share the port.
2011-10-24The cgtwo control registers only support 16-bit accesses, and respond withMiod Vallat
a bus error to larger widths. Declare all control register bitfield structs with uint16_t instead of u_int, to force gcc4 to use short accesses.
2011-10-24Revert last change, reported increased stablility with the change wasDale Rahn
grossly overstated.
2011-10-23Remove comment; the question can be answerd affirmative. Fix a coding styleMark Kettenis
nit while I'm there.
2011-10-22Comment out wsmux to save kernel text, since USB support is missing fromMiod Vallat
this kernel anyway.
2011-10-22Do not run off level interrupts with external interrupts disabled asDale Rahn
the off level interrupt could lead to a hang. Fixes hang seen by jasper@
2011-10-21Pile of diffs to improve beagle/panda status. fetching u-boot parametersDale Rahn
out of the register input. (with a beagle_start.S fix from uwe@) Devices now detect device_id from u-boot and decide to enable/disable themselves in the device match routine. ok uwe@
2011-10-21Add bounds checks for access to mp_busses.Mark Kettenis
2011-10-21Add bounds checks for access to mp_busses. Also make sure that we don'tMark Kettenis
accidentally use ISA or EISA interrupt mappings on PCI busses. ok jsg@
2011-10-21Copy the DUID back and forth between the in-core label and the Motorola VIDMiod Vallat
block by using 8 unused bytes from the configuration substruct.
2011-10-21Fix 1.43 to not bzero the in-core disklabel but really the UniOS disklabelMiod Vallat
as intended in disklabel_bsd_to_om(); repairs vnd operation. Found the hard way by aoyama@.
2011-10-19API change to initarm to pass arguments from the bootloader thru to MDDale Rahn
C code. Will be used on beagle to process machine id and atags. Looked at by uwe@, tested on beagle/armish/zaurus.
2011-10-19Oh yeah, a cvs id is goodPhilip Guenthe
2011-10-17Change to use r8,r9,r10 instead of r0,r1,r2. This is necessary becauseDale Rahn
the bootloader passes data in r0,r1,r2 which needs to be preserved until the kernel is booted further.
2011-10-17Add which is incomplete, but needs love.Dale Rahn
2011-10-17Rules to build bsd.rd and bsd.umg, Should not be here, but until we getDale Rahn
bootloader working and rather than have several people maintain this in their own trees... As soon as a bootloader is written this can be removed.
2011-10-15"TLS-lite": add kernel support for a per-thread userspace pointer,Philip Guenthe
for pointing to the thread-control-block. Support for mapping this to the correct hardware register can be added as it's finished; start with support for amd64, sparc, and sparc64. Includes syscalls for getting and setting it (for a portable __errno implementation) as well as creating a new thread with an initial value for it. discussed with miod@, kettenis@, deraadt@; committing to get the syscalls in with the impending libc bump and do further refinements in tree
2011-10-13I'm sick and tired of people doing misalgned reads and writes to PCI configMark Kettenis
space and not noticing because they only test on amd64. So enforce alignment there as well, at least for a little while such that we find those bugs and force people to fix them.
2011-10-13I'm sick and tired of people doing misalgned reads and writes to PCI configMark Kettenis
space and not noticing because they only test on amd64. So enforce alignment there as well, at least for a little while such that we find those bugs and force people to fix them.
2011-10-12Remove all MD diagnostics in cpu_switchto(), and move them to MI code ifMiod Vallat
they apply. ok oga@ deraadt@
2011-10-10Extend pci_probe_device_hook() on sgi xbridge(4) to return either the straightMiod Vallat
accessors or the byte-swapped accessors, depending upon the byteswap setting of the device we are trying to attach. This allows for the removal of byteswap knowledge from ioc(4) and iof(4) drivers. While there, build pci_chipset_t md structs by bcopy'ing a template and filling the few runtime fields, instead of assigning every field of them.
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
2011-10-10add tlphy everywhere tl is enabledJonathan Gray
pointed out by Loganaden Velvindron/brad
2011-10-09Pad the ECOFF output file to a 512 bytes boundary; older AViiON firmware willMiod Vallat
reject non-padded files with an irrelevant error message, and newer firmware won't mind the extra bytes.
2011-10-09Cope with the recent pmap changes to prevent them from accidentally unmapMiod Vallat
the VBR page (quick workaround until the VBR page is relocated as has been done on mvme88k)
2011-10-09Let BUS_DMA_COHERENT allocations return cache-inhibited pages.Miod Vallat
2011-10-09Finally fix the kernel mode apr to remove the forced write-through cacheMiod Vallat
control, and enjoy the joys of write back (16% performance improvement for non-cpu bound workloads). While there, there is no need to map the page tables cache inhibited on 88100 systems; they only need to be write-through, and snooping will do the rest. Kernel WB is still disabled on 88110 SMP kernels, until the last MP bootstrap bug is understood and fixed.
2011-10-09Split the tlb invalidate routines into 88100 and 88110 specific routines, ↵Miod Vallat
and use function pointers to invoke them (if they can't be choosen at compile-time depending upon the kernel configuration). The routines now get the new pte value as an extra argument; they don't use it yet, but code I am working on will soon on 88110.
2011-10-09Correctly handle invalidate of partial cache lines, for the Nth time.Miod Vallat
2011-10-09Rework secondary processor initialization. cmmu initialization is nowMiod Vallat
performed much earlier in the processor startup. No visible change, paves the way for the much important diff three commits from here.
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-10-06An #ifdef without a #else in the middle of an indexed array is bad.Theo de Raadt
ok miod
2011-10-04In the coming future, we are more likely to need ehci(4) than sk(4) orTheo de Raadt
vge(4) discussed at length with jsg
2011-09-29Fix local types in vgafb_pci_probe(), to match what pci_*_find() expect,Miod Vallat
after the bus_{addr,size}_t type definition change.
2011-09-29Get size of struct disklabel for the sake of the assembly code with aMiod Vallat
genassym script, instead of relying upon <sys/disklabel.h> to provide them as proper .set statements if _LOCORE is defined. Requested by weingart@ long ago; ok jsing@ krw@
2011-09-28Oops, do not do last minute edits before commit... Make the previous changeMiod Vallat
compile.
2011-09-28disable the fifo on m series systems by telling the driver its a 16550David Gwynne
which stops the MI com code from probing it as a 16550a. hopefully this will prevent the awesome faults on the mainboard from locking the system up. ok kettenis@
2011-09-27Make bus_addr_t and bus_size_t u_long types, instead of either uint32_t orMiod Vallat
uint64_t, depending upon the platform; this makes the declaration of these types consistent accross all our supported platform, and we do not intend to support a platform where bus_addr_t could be larger than the size of the cpu register. Requested by deraadt@ during s2k11
2011-09-27Make struct label_t large enough for the kernel setjmp() purposes. Found afterMiod Vallat
deraadt@ and jsing@ noticed hppa64 label_t was too short; amazing this did not get noticed earlier.
2011-09-27Use a pool to allocate pv_entry from, instead of allocating whole pages andMiod Vallat
maintaining our own free lists. No functional change.
2011-09-27Try to put more sanity in the machine check handling:Miod Vallat
- only handle a machine check as caused by badaddr() if the local `memtest' variable is nonzero, instead of abusing `cold'. And be sure to clear `memtest' upon returning from badaddr, of course. - do not write to the MCESR register on microVAX II and SOC processors, as this register is not implemented on those models. - get rid of the `write the SBIFS and EHSR registers depending upon the cpu model' chunk, since these only matter on true 11/780 and 86x0 models, support for which has been removed recently.
2011-09-26Notify ifmedia layer of loss of link on SGEC interfaces (which only getsMiod Vallat
detected upon failure to transmit if it is indeed lost), so that `ifconfig ze0' reports the correct state of the link instead of always pretending it is up.
2011-09-22KNF of mlarkin's code, requested by him. Some improvements to the interfaceTheo de Raadt
for talking to the disk driver snuck in. ok mlarkin
2011-09-22Ansify functions definitions.Joel Sing
2011-09-22Declare waittime variable to unbreak build.Joel Sing
2011-09-22None of the mainbus child devices care about getting a bus_space_tag_t fromMiod Vallat
its parent, because they know better; so don't bother providing one, which allows more unused code to go to the Attic. While there, redo the config machinery for mainbus child devices, to bring it to our current standards. This also allows them to be disabled in UKC, should there be a need for this in the future.
2011-09-22nowadays uvm_init() calls pmap_init(), not vm_init(); so update the comments.Jasper Lievisse Adriaanse
ok ariane@
2011-09-22this escaped when miod threw cats off a bridgeJonathan Gray
ok miod@
2011-09-22Start removing some tiny irrelevant differences between hppa64 and hppaTheo de Raadt
so that important differences can be spotted easier.
2011-09-22Catchup to hppa disksubr: determining label offset the new wayTheo de Raadt