summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2010-12-15oops, i forgot to check in the BRKSIZ define in uvm, but deraadt thinksTed Unangst
its better as a per arch MD define anyway. all default to MAXDSIZ as before.
2010-12-12rsu(4) works on the sparc64, so add it everywhere where urtwn(4) is.Damien Bergamini
2010-12-06Change the signature of PMAP_PREFER from void PMAP_PREFER(..., vaddr_t *) toMiod Vallat
vaddr_t PMAP_PREFER(..., vaddr_t). This allows better compiler optimization when the function is inlined, and avoids accessing memory on architectures when we can pass function arguments in registers.
2010-12-06- use consistent 'include' rules without a full relative path.Jasper Lievisse Adriaanse
tested on a GENERIC config from all arches. ok deraadt@ miod@
2010-12-05PCIe based sparc64 machines have always supported access to the extended PCIeMark Kettenis
configuration space. So on pyro(4) and vpci(4) return the size appropriate for the extended PCIe configuration space. ok miod@
2010-12-04Introduce a new pci routine, pci_conf_size(), which returns the size of aMiod Vallat
given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
2010-12-02After the most recent change, make it possible to make -j again. TheTheo de Raadt
early MD and late MI files must be split up so that vers.o can sneak between. Issue spotted by bluhm, repair discussed with miod
2010-12-02move vers.o to before the other objects, so that it is not linked last.Theo de Raadt
having it linked last is bad (on at least i386 and amd64) because the lapic is mapped over the start of the data segment -- savecore(8) then reads the version string for a fixed buffer space, and reads into the lapic area causing unintended side-effects (at least on Intel X5570 and X5680) found by pedro, discussed with kettenis and mpf and miod
2010-11-27Remove ddb single-step load and store counters. Most platforms do notMiod Vallat
implement them, and they are of questionable usefulness.
2010-11-27Misaligned load/store recovery code in the kernel, enabled by T_FIXALIGNMiod Vallat
userland traps on a per-process basis, were necessary for *some* SunOS binaries on sparc, which had to compiled with explicit misaligned access code generation (i.e. for vendors to release a working SunOS/sparc version of their code until they could fix their bogus code). There is no reason to keep this code on sparc64, and now that we don't provide COMPAT_SUNOS anymore, there is no reason to keep this code on sparc. ok kettenis@
2010-11-27Make sure kcopy() returns EFAULT instead of -1 upon failure on vax, andMiod Vallat
fix outdated comments suggesting kcopy() will return -1.
2010-11-26In gfxp_copyrect(), make sure that the - possibly negative - coordinate ↵Miod Vallat
fields, which are supposed to be 16 bit values, are properly masked to avoid polluting other fields. From NetBSD; ok kettenis@
2010-11-26Disable uscanner(4) by default on all kernels which configure it. First stepMiod Vallat
until possible removal, if indeed this causes no regression for scanner users.
2010-11-23removed slot argument of function pckbc_cnattachAlexandr Shadchin
because it is always PCKBC_KBD_SLOT ok krw@, miod@
2010-11-22Remove unused VM_MAX_KERNEL_BUF define.Miod Vallat
2010-11-20This is a first step towards getting rid of avail_start and avail_end in theMiod Vallat
kernel, currently limited to low-hanging fruit: these variables were used by bus_dma to specify the range in which to allocate memory, back when uvm_pglistalloc() was stupid and would not walk the vm_physseg[]. Nowadays, except on some platforms for early initialization, these variables are not used, or do not need to be global variables. Therefore: - remove `extern' declarations of avail_start and avail_end (or close cousins, such as arm physical_start and physical_end) from files which no longer need to use them. - make them local variables whenever possible. - remove them when they are assigned to but no longer used.
2010-11-20some more installboot cleanup from gapz@dud-t.orgTheo de Raadt
2010-11-19gapz@dud-t . org noted that sparc64 installboot crashes if the bootblock isTheo de Raadt
zero-sized. Apply similar fixes to installboot for other architectures.
2010-11-18Do not #include <sys/dkstat.h> if you don't need anything from it.Miod Vallat
ok krw@ deraadt@
2010-11-12Push all potential (as in, all system MI not utilized by the bootblocks)Theo de Raadt
.h files into the ctags run as well to bring #define's and structs and such into scope. Problem reported by thib
2010-11-11Replace snprintf(foo, sizeof foo, "%s", ...) with strlcpy. ok deraadt@ krw@Miod Vallat
2010-11-06urtwn(4) works on sparc64 too.Damien Bergamini
committed from my Sun Blade 1500 with the HWNUp-150.
2010-11-03no need to specify the -t flag to ctagsTheo de Raadt
2010-10-12Force openings to 1 for devices that can't do tagged i/o, i.e. moreKenneth R Westerback
than 1 i/o active at once. This reduces the chances that concurrent i/o's for such devices will confuse the device or the adapter code. It also eliminates a reason for adapter code to maintain its own queues. Tweak all drivers that fake INQUIRY results to set the SID_CmdQue flag, thus continuing to claim to be able to do tagged i/o. Positive feedback from matthew@ and marco@ for an earlier version. ok dlg@
2010-10-08allocate a major number to midi, since midi is already enabledAlexandre Ratchov
ok deraadt, miod
2010-09-28Implement a per-cpu held mutex counter if DIAGNOSTIC on all non-x86 platforms,Miod Vallat
to complete matthew@'s commit of a few days ago, and drop __HAVE_CPU_MUTEX_LEVEL define. With help from, and ok deraadt@.
2010-09-27must use M_WAITOK here; run into by landryTheo de Raadt
2010-09-26Merge pmsi(4) into pms(4). From Alexandr Shadchin on tech@.Miod Vallat
2010-09-24fix typo in utwitchDavid Gwynne
2010-09-23enable utwitch(4) (formely uyurex(4)) by defaultYojiro Uo
ok deraadt@
2010-09-23Introduce a DKF_NOLABELREAD flag, which is used by a device to preventJoel Sing
automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
2010-09-23Add pppx(4) to the cdevs of the remaining archs.Claudio Jeker
OK dlg@
2010-09-22remove unused offset argument to rbus functionsJonathan Gray
ok krw@ kettenis@
2010-09-22All users of physio(9) now pass NULL as the buf pointer argument, soMatthew Dempsky
no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
2010-09-20Get rid of evcount's support for arranging counters in a treeMatthew Dempsky
hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
2010-09-08Crank ofwboot version after recent changes.Joel Sing
2010-09-08Use the offset value passed into search_label() and call it withJoel Sing
LABELSECTOR instead of a hardcoded 0. No functional change.
2010-09-08Sync disklabel_sun_to_bsd() with sparc64/disksubr.c. This gives us accessJoel Sing
to the extended partition information and allows for correct identification of parition types.
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing
disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
2010-09-08Nuke bogus comment.Joel Sing
2010-08-28Garbage collect struct dkdriver.Matthew Dempsky
ok miod@; "please go ahead" jsing@
2010-08-27caught a small typo while reading the code: senor -> sensorRobert Nagy
2010-08-25Remove the SPARC_BOOT_ELF define and associated machinery since it doesJoel Sing
not make sense to compile ofwboot without support for ELF. Whilst here, nuke the unused SPARC_BOOT_NFS define and compile elf64_exec.c as an object rather than including it in boot.c. ok miod@
2010-08-21Rename file to reflect that it handles 64 bit ELF only.Joel Sing
ok miod@ (some time ago)
2010-08-21We only need to load 64 bit kernels on sparc64. Clean up the ELF boot codeJoel Sing
and let exec_elf.h do the right thing. ok miod@ (some time ago)
2010-08-13Fix indentation.Mark Kettenis
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Some stragglers from last diff.
2010-08-02enable owctrTheo de Raadt
2010-07-31Factorization of the bluetooth and usb hid input driver logic, to reduce codeMiod Vallat
duplication and divergence. Thanks to mlarkin@ for bluetooth devices tests.