summaryrefslogtreecommitdiffstats
path: root/sys/arch/octeon (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Forgot these files during the recent clock churning.miod2012-07-161-2/+2
|
* create new machine/_float.h which is namespace clean. create a newderaadt2012-06-263-6/+3
| | | | | | | | | MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
* Remove leftover loongson or sgi references.miod2012-06-175-76/+11
|
* Rework the signature of the cache handling routines again. It makes more sensemiod2012-04-212-25/+12
| | | | | | | | | | | | to pass both the virtual and physical addresses of the page to clean to SyncDCachePage, which is the only routine using `Index' operations on the data cache, which might be virtually indexed at some levels but physically indexed at others. On the other hand, it does not make any sense to pass a physical address to routines using `Hit' operations (and they were discarding them anyway). In addition to making things cleaner, this fixes sporadic userland misbehaviour (read: SIGSGEV) on RM7000 O2 systems.
* Move cache handling routines related definitions to a dedicated header file,miod2012-03-252-9/+8
| | | | rather than abusing <machine/cpu.h>.
* uncached_base was introduced early in IP27 support, since these designs usemiod2012-03-152-6/+3
| | | | | | | | | | | subspaces in the CCA_NC uncached memory space. However, being coherent, there was never a need for bus_dma to use uncached addresses. This means that, on the only systems where uncached_base was not set to PHYS_TO_XKPHYS(0, CCA_NC), it was never used. Remove the variable, and replace PHYS_TO_UNCACHED() with PHYS_TO_XKPHYS(, CCA_NC). No functional change.
* Garbage collect now unused MKDEP definitions. ok deraadt@matthieu2011-11-081-2/+1
|
* Specify the TLS variant for each platform.guenther2011-10-271-0/+3
|
* Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).miod2011-10-101-1/+2
| | | | | | | | | | | | | | | | | | 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.
* ccd goes to the atticderaadt2011-10-061-6/+4
| | | | discussed with jsing and millert
* When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For all thesekrw2011-07-081-3/+4
| | | | | | arch's LABELSECTOR == DOS_LABELSECTOR == 1, and LABELOFFSET == 0. Thus, to quote bob, "This is a no-op". Makes the expression used when writing label the same as the one used in readdoslabel().
* The drahn memorial bad kernel build fix: prevent blood pressureguenther2011-07-071-4/+6
| | | | | | | | spikes in other developers by making it so that removal of a .d file without removing the corresponding object will result in the latter being treated as out of date. ok beck@ art@ drahn@
* On those archs that read their disk (vs iso/udf) disklabels exclusivelykrw2011-07-061-3/+5
| | | | | | | | | | via readdoslabel(), tweak writedisklabel() to write disklabels at the same place readdoslabel() reads them from. Irregardless of the physical disk sector size. As is done in i386/amd64 already. No change in behaviour for the 'normal' 512-byte sector case. ok deraadt@
* Eliminate redundant buf validation checks in xxstrategy() methods nowmatthew2011-07-061-19/+14
| | | | | | | | | | | | that they're implemented consistently in bounds_check_with_label(). Also, per krw's request, change bounds_check_with_label() to return 0 if the checks succeed, and change the drivers to test == -1 instead of <= 0. (Man page update to follow; intentionally omitting arch/vax/mba/hp.c from this commit because it doesn't even build currently and miod@ promises to kill it soon.) ok krw@
* make clean should clean .d files, so as to leave a fresh canvas.tedu2011-07-061-2/+2
| | | | ok beck deraadt
* Tweak the dmesg output a bit. From brad@yasuoka2011-07-031-2/+2
| | | | ok yasuoka@
* Add blank line to keep consistent spacing. From brad@yasuoka2011-07-031-1/+2
|
* Rewrite the multicast handling for OpenBSD. From brad@yasuoka2011-07-031-86/+64
| | | | ok and tested yasuoka@
* - add missing #include "bpfilter.h" on if_cnmac.yasuoka2011-07-031-2/+2
| | | | | | - delete #include <sys/cdefs.h> because it's unnecessary. ok brad@
* if_downall() cannot be done MI in sys_reboot() because vfs_shutdown()deraadt2011-06-261-1/+3
| | | | | might need network (ie. nfs). Move the call to the MD boot() routines. This cause for boot hangs diagnosed by kettenis.
* Don't forget to print a newline at attach time.miod2011-06-251-1/+3
|
* Remove irrelevant comments borrowed from loongson.miod2011-06-251-11/+1
|
* machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andnaddy2011-06-241-6/+1
| | | | | | | | | | | | | | | i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@
* Should always include ukphy(4) in the kernel configs if using any devicesyasuoka2011-06-242-2/+4
| | | | | | | using MII. This diff from brad@ Build test and ok yasuoka@
* Remove SET/CLR/ISSET macros from Octeon code. The kernel already providesyasuoka2011-06-247-49/+7
| | | | | | | these macros. This diff from brad@ built test and ok yasuoka@
* Fix the error path in bus_dmamem_map.ariane2011-06-231-6/+2
| | | | | | | As discussed on icb: remove the comment, remove pmap_remove (uvm_km_free does that for us). ok oga@, deraadt@
* some fixes for cnmac(4)yasuoka2011-06-221-15/+3
| | | | | | | | | | - Fix MAC address printing for OpenBSD dmesg. - Set IFCAP_VLAN_MTU to allow for VLAN sized frames. - Remove commented out code to enable the shutdown hook since OpenBSD doesn't use these hooks in Ethernet drivers anymore. this diff from brad@ ok and tested by yasuoka@.
* Use disk_lock_nointr() in the xxclose() routines so that they cannotderaadt2011-06-191-6/+4
| | | | | be interrupted. ok matthew
* Use disk_lock/disk_unlock directly and in the same way in these drivers,deraadt2011-06-191-11/+8
| | | | | | rather than using various wrappings. Convert vnd to using the sc_dk rwlock instead of using one of its own. ok matthew
* Clean up ioctl handler a bit and rearrange the receive filter callback toyasuoka2011-06-191-18/+16
| | | | | | | the proper location. this diff from brad@ ok and tested by yasuoka@
* add missing the copyright notice.yasuoka2011-06-172-11/+53
| | | | | | delete garbage lines. ok syuu@
* Ethernet driver merged from IIJ's contribution code.syuu2011-06-1639-6/+15615
|
* Move the bufcachepercent setting code to MI locations -- set it to 42%deraadt2011-06-051-13/+1
| | | | | | | for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib
* Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotmatthew2011-06-051-17/+1
| | | | | | | | | of silly flag twiddling code in various disk drivers. ok deraadt@, miod@ N.B., users will need a -current disklabel(8) to be able to write new disklabels to disk now.
* Get rid of the wlabel argument to bounds_check_with_label(). It'smatthew2011-06-031-3/+2
| | | | | | | | | never done anything in OpenBSD and just clutters disk drivers with silly flag handling. More cleanup to follow. ok deraadt@, millert@; no objections krw@
* Remove the freelist member from vm_physsegoga2011-05-301-10/+4
| | | | | | | | | | | | | | | | | | The new world order of pmemrange makes this data completely redundant (being dealt with by the pmemrange constraints instead). Remove all code that messes with the freelist. While touching every caller of uvm_page_physload() anyway, add the flags argument to all callers (all but one is 0 and that one already used PHYSLOAD_DEVICE) and remove the macro magic to allow callers to continue without it. Should shrink the code a bit, as well. matthew@ pointed out some mistakes i'd made. ``freelist death, I like. Ok.' ariane@ `I agree with the general direction, go ahead and i'll fix any fallout shortly'' miod@ (68k 88k and vax i could not check would build)
* Add pci_intr_map_msi() stub.kettenis2011-05-211-1/+2
|
* Remove unused include of file.pckbdc. Those arches do not havematthieu2011-05-151-2/+1
| | | | a PC/AT or PS/2 keyboard/mouse controller. ok miod@
* memory handling fixsyuu2011-05-081-9/+12
|
* fix variable namesyuu2011-05-081-3/+3
|
* combus renamed uartbus, com_oct renamed cn30xxuartsyuu2011-05-089-431/+429
|
* obio renamed iobus, moved interrupt handler code to dev/octeon_intr.csyuu2011-05-0814-740/+665
|
* - enable fenvmartynas2011-04-281-0/+3
| | | | - add nearbyint, nearbyintf and nearbyintl implemented using fenv
* FPU emulation option addedsyuu2011-04-252-2/+4
|
* Revert the ``remove the `skip splraise/splx for IPL_NONE mutexes' optimization''miod2011-04-211-8/+15
| | | | | | | change. It seems to have unexpected side effects, especially on MP systems, and drahn@ disagrees with the way this change has been done and think there is a better way to solve the original problem of msleep() fiddling with mutex internals.
* Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofkrw2011-04-161-3/+3
| | | | | what the previous IO was. Less chance of copy and paste errors. Suggested by miod@.
* In days of yore one could arbitrarily whack buffer flags. Those dayskrw2011-04-151-3/+5
| | | | | | | | | | | | | are past. Use CLR() and SET() to modify necessary flags while leaving the flags used by the buffer cache in peace. Should make bufcache code much less confused about the state of the bufs used in reading/writing disklabels. Other such flag abuses no doubt await a visit. Errors in original diff found by miod@. ok beck@ deraadt@
* Convert the kernel Makefiles to autogenerate dependencies during compilationguenther2011-04-151-19/+27
| | | | | | | | | using the -MD option to cc, with -MP, -MT, and -MF where needed, converting "make depend" to a no-op. This increases parallelism for those using "make -j" and keeps the dependencies up to date with each compilation automatically. sparc and vax users will need to rebuild gcc with support for the -M[PTF] options before config'ing with this diff.
* The various read*label() have stopped returning error strings for quitemiod2011-04-061-6/+3
| | | | | | some time, and return errnos instead. Fix or remove out-of-date comments mentioning the error strings, and make their callers check the return value against zero, not NULL.
* In mtx_leave(), make sure resetting mtx_lock is the last operation on themiod2011-04-031-3/+6
| | | | struct mutex. Modelled after hppa.