summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
AgeCommit message (Collapse)Author
2007-02-06Add machine/atomic.h to all architectures and define two operationsArtur Grabowski
right now that are supposed to be atomic with respect to interrupts and SMP: atomic_setbits_int and atomic_clearbits_int. All architectures other than i386 and amd64 get dummy implementations since at first we'll be replacing operations that are done with "a |= bit" and "a &= ~bit" today. More proper implementations will follow kettenis@, miod@ ok
2007-02-03Simple single-processor mutex implementation, simpler than the MI code byMiod Vallat
use of MD spl code bowels. No functional change.
2007-01-12Move kernel virtual address space to make sure it doesn't overlap withMark Kettenis
physical memory to avoid problems on UltraSPARC-III and III+.
2006-12-30Remove __BUS_SPACE_HAS_STREAM_METHODS, the stream methods are a netbsd-ism.Claudio Jeker
discussed with miod@ who has the same changes hiding in one of his trees.
2006-12-24Define PROC_PC. Then, since profiling information is being reported inMiod Vallat
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.
2006-12-23Provide sparc64-specific DT_XXX constant.Mark Kettenis
ok miod@
2006-12-14Add defines for several SPARC-V9 implementations.Mark Kettenis
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-10-27Add a few UltraSPARC-III ASI's.Mark Kettenis
2006-08-31Fix handling of 64-bit quantities in Open Firmware's client interface.Mark Kettenis
Spotted by tsi@, and shamelessly stolen from his diff. Fixes several UltraSPARC-III machines wich have more than one memory bank filled. ok deraadt@
2006-08-12Make all DEV_BSIZE definitions consistant by using (1 << DEV_BSHIFT)Kenneth R Westerback
in the six cases using "512". As DEV_BSHIFT is always 9, this should be a no-op. "no objections" miod@ "I can't see any problem doing this." pedro@
2006-06-29Fix PMAP_PREFER and make it use VA_ALIAS_MASK to prevent me from breakingMark Kettenis
it again. ok miod@, jason@
2006-06-21add the machdep.kbdreset logic to sparc64 (stuff to use it is coming)Jason Wright
2006-06-21grr... missed this... nuke SUN4U stuff here, tooJason Wright
2006-06-07Remove unused bus_space_probe().Miod Vallat
2006-06-02All I wanted was to fix the bogus PG_SZ macro, but this is better:Miod Vallat
Do not try to map the message buffer with large pages, it's just as easy to simply use as many 8KB pages as necessary. From NetBSD.
2006-06-02feild -> fieldMiod Vallat
2006-05-31It's bit 13 that's causing the address aliasing in the cache, not bit 14.Mark Kettenis
ok jason@
2006-05-31extend the bootpath values to 64bits, and deal with falloutJason Wright
extend str2hex to handle long's, and teach it that strings starting with 'w', consisting of hex digits are really just hex digits match fp to scsibus (fiber port) match fiber channel portwwn/lun to it's bootpath variables result: with a small change to isp(mailed to mjacob) we can correctly autoconf with a boot path of: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000004cf948498,0:a/bsd ie. schizo/ isp/ scsisbus/disk with port WWN of 21...98, lun 0, partition a
2006-05-20Put explicit barriers in in-line spl functions.Miod Vallat
2006-05-07Missing license block; from art@Miod Vallat
2006-04-09#ifdef lint wraps for va_startTheo de Raadt
2006-03-19rev 1.86Brad Smith
make the "generic" PCI bus enumeration code the standard case which gets used if nothing else is defined in MD headers, introduce a "PCI_MACHDEP_ENUMERATE_BUS" CPP definition which can be used by MD headers (just 1 port atm) to plug in special code rev 1.62 * Implement a machine-dependent pci_enumerate_bus() for sparc64 which uses OFW device nodes to enumerate the bus. When a PCI bus that is behind a bridge is attached, pci_attach_hook() allocates a new PCI chipset tag for the new bus and sets it's "curnode" to the OFW node of the bridge. This is used as a starting point when enumerating that bus. Root busses get the OFW node of the host bridge (psycho). rev 1.59 Split the code that enumerates the PCI bus and that actually probes for a device into two functions: * pci_probe_device() actually probes/attaches the device specified by the provide pcitag_t. * pci_enumerate_bus() enumerates the bus, and calls pci_probe_device() for each device on the bus. A pci_enumerate_bus_generic() is provided which implements the old method of doing this: If something found at dev0/func0, determine number of functions and probe each one. From NetBSD ok kettenis@ Tested on a good number of amd64/i386/macppc/sparc64 systems
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@
2006-03-12Previous fix was half-done, move the wsscreen_list array into the softcMiod Vallat
as well.
2006-03-12When attaching a wsdisplay, the wsscreen_list structure can not be on theMiod Vallat
stack; found the hard way by Stefano <stefano@merlinobbs.net>.
2006-03-12remove splimp.Brad Smith
2006-03-04<sparc64/dev/upavar.h> is unused except for struct upa_reg for autoconf, soMiod Vallat
move it to <machine/autoconf.h>.
2006-02-22Remove unused probeset() function.Miod Vallat
2006-02-22Remove long unused ELF{32,64}_MACHDEP macros.Miod Vallat
2006-01-08Expose struct sigcontext, struct sigstat and struct sigaltstack for XPG4.2Todd C. Miller
2006-01-06Don't redefine SIZE_MAXTodd C. Miller
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-06Merge machine/ansi.h and machine/types.h into machine/_types.h andTodd C. Miller
rename the types using the __ protected namespace (e.g. __size_t). Idea from FreeBSD.
2005-12-30Remove unused COMPAT_NETBSD32 block and get rid of register{32,64}_tTodd C. Miller
which are now unused. Tested and OK miod@
2005-12-28Remove dead cruft.Miod Vallat
2005-12-18Don't include cdefs.h if _LOCORE is defined and hide some more definesTodd C. Miller
unless __BSD_VISIBLE or _LOCORE are set. OK deraadt@
2005-12-14convert _FOO_SOURCE -> __FOO_VISIBLE in machine. OK deraadt@Todd C. Miller
2005-12-13First step in include files overhaul. Use __FOO_VISIBLE (as definedTodd C. Miller
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
2005-12-12Nuke unused pmap_from_phys_address().Miod Vallat
2005-11-24add lint-specific hacks. at the same time, clean out a lot of ancientTheo de Raadt
cruft for old compilers and environments. there may be a 2nd round of polishing after this; ok miod and others
2005-11-11Remove machdep.booted_kernel sysctl of questionable usefulness.Miod Vallat
ok deraadt@
2005-10-24Mach-macro freeMartin Reindl
2005-09-21isbad() is only used on SMD disks on sparc; remove it on other platforms.Miod Vallat
2005-09-12Change the NKMEMPAGES range to 4-64MB for 32bit arches, and 8-128MB for 64bitMiod Vallat
arches; except on sparc where the range is 4-8 for !sun4m and 4-64 for sun4m, selected at runtime.
2005-09-08make comments match the fact that we are on sun4u, plus minor cleanupMartin Reindl
ok mickey@
2005-09-04remove unused NetBSD pci_intr_evcnt() function.Brad Smith
2005-07-31Get rid of unused SINCR and SSIZE constants.Miod Vallat
2005-07-10remove two unused flagsBrad Smith
2005-07-09Implement _bus_dmamem_mmap instead of just calling panic();Robert Nagy
This is needed by bktr(4). ok mickey@ miod@