summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2007-10-14Don't bail out after finding the first cpu.Mark Kettenis
2007-10-13Remove leftovers art forgot to prune...Miod Vallat
2007-10-13Fix cpu_exit() comments to be more closer to reality.Miod Vallat
2007-10-10prepare for the futureTheo de Raadt
2007-10-10Make context switching much more MI:Artur Grabowski
- Move the functionality of choosing a process from cpu_switch into a much simpler function: cpu_switchto. Instead of having the locore code walk the run queues, let the MI code choose the process we want to run and only implement the context switching itself in MD code. - Let MD context switching run without worrying about spls or locks. - Instead of having the idle loop implemented with special contexts in MD code, implement one idle proc for each cpu. make the idle loop MI with MD hooks. - Change the proc lists from the old style vax queues to TAILQs. - Change the sleep queue from vax queues to TAILQs. This makes wakeup() go from O(n^2) to O(n) there will be some MD fallout, but it will be fixed shortly. There's also a few cleanups to be done after this. deraadt@, kettenis@ ok
2007-10-10malloc+bzero -> malloc+M_ZERO. Use 'malloc(sizeof(*p) ...' idiom.Kenneth R Westerback
This completes my bzero/memset(,0,) -> M_ZERO sweep of the tree. ok kettenis@
2007-10-08A few trailing bzero/memset -> M_ZERO occurrences, cast removal andKenneth R Westerback
size(*p) usage. This should be the last of the simple malloc() changes.
2007-10-08A few trailing bzero/memset -> M_ZERO occurrences, cast removal andKenneth R Westerback
size(*p) usage.
2007-10-08enable spdmem where it mattersTheo de Raadt
2007-10-08Don't skip EEPROMs in ofw i2c scan,Jonathan Gray
match on sparc64 SPD name in spdmem. Tested on a V120. ok deraadt@
2007-10-02Fiddle Sun traditional disklabel recognition to eliminate union andKenneth R Westerback
associated field access defines. This reverts most changes to dev/sun/disklabel.h without eliminating new functionality. Fix comments to line up and fit on 80 column line, making both tsi@ and I feel better. Simplify logic in disksubr.c. No semantic change. Tested & ok tsi@.
2007-10-02Apply (with slight variants) this elimination of bzero() with M_ZERO:Kenneth R Westerback
- if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - bzero(mapstore, mapsize);
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-09-30Move intrpending array into 'struct cpu_info'.Mark Kettenis
2007-09-22Add kernel locking.Mark Kettenis
2007-09-22M_ZERO -> bzero.Kenneth R Westerback
ok art@
2007-09-19On sparc & sparc64, change `mount -a` to recognise Linux ext2 partitionsMarc Aurele La France
by interpreting more fields out of a standard Sun disk label. ok krw@
2007-09-18Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-10Missing $OpenBSD$ tag.Mark Kettenis
2007-09-10IPI implementation. Bits and pieces from NetBSD, but the interface has beenMark Kettenis
changed to free up another 64-bit word in the interrupt transaction. This means we have two 64-bit words available for arguments, which means we probably don't need to pass arguments through structures.
2007-09-10Introduce a md pmap hook, pmap_remove_holes(), which is supposed to markMiod Vallat
the holes a MMU may have from a given vm_map. This will be automagically invoked for newly created vmspaces. On platforms with MMU holes (e.g. sun4, sun4c and vax), this prevents mmap(2) hints which would end up being in the hole to be accepted as valid, causing unexpected signals when the process tries to access the hole (since pmap can not fill the hole anyway). Unfortunately, the logic mmap() uses to pick a valid address for anonymous mappings needs work, as it will only try to find an address higher than the hint, which causes all mmap() with a hint in the hole to fail on vax. This will be improved later.
2007-09-09Add a few missing bits to include/cpu.h required for MULTIPROCESSOR kernels.Mark Kettenis
2007-09-09Make fpproc per-cpu. This turns fpproc into a macro, so adjust fpu/fpu.cMark Kettenis
to avoid collisions.
2007-09-09Remove some more goo left over from sparc.Mark Kettenis
2007-09-09Make handled_intr_level per-cpu.Mark Kettenis
2007-09-09uchcom(4) has been verified to work by djm@, so add it to allJonathan Gray
USB capable archs.
2007-09-08Add prom functions to start secondary CPUs.Mark Kettenis
2007-09-08Make the ast on sparc64 per-process instead of global. Necessary to makeMark Kettenis
signal delivery more reliable once we go smp (although the code for that is still missing). "in principle, this looks good" art@
2007-09-08use M_ZERO.Martin Reindl
input from kettenis@
2007-09-04UltraSPARC CPUs always have an on-chip FPU. There really is no need to haveMark Kettenis
the code to detect the various FPUs of earlier SPARC V7 and V8 CPUs. ok deraadt@, miod@
2007-09-03Fix a few interrupt dispatch/receive register definitions.Mark Kettenis
2007-09-03Typos from miod. 'functin' -> 'functin' in some comments.Kenneth R Westerback
2007-08-25Real mutexes for sparc64. Some comments from henric@ and claudio@.Mark Kettenis
Tested by fkr@, claudio@, nick@.
2007-08-25Print a bit more information in the safari interrupt handler. Get rid ofMark Kettenis
function names starting with an underscore while I'm there.
2007-08-25Fix printing of more than 2G of memory.Mark Kettenis
ok miod@
2007-08-25Real mutexes for sparc64. Some comments from henric@ and claudio@.Mark Kettenis
Tested by fkr@, claudio@, nick@.
2007-08-21Remove two out-of-date comments.Mark Kettenis
2007-08-21Do not repeat device name in failure message printed during attachment.Mark Kettenis
2007-08-15Kernel stacks can live beyond EINTSTACK now.Mark Kettenis
ok deraadt@
2007-08-10Be more careful when asking for the next property. help and ok kettenis@.Federico G. Schwindt
2007-08-07Add "dma" and "ledma" as busses that potentially have the root device on them.Mark Kettenis
Makes the Ultra-1 find its root disk again. tested by nick@ and fgsch@, ok deraadt@
2007-08-04Enable CardBus bus support, and add ne(4).Mark Kettenis
ok deraadt@
2007-08-04rbus for sparc64Mark Kettenis
ok deraadt@
2007-08-04Add sparc_bus_addr member to struct sparc_bus_space_tag. This function mapsMark Kettenis
a bus_space_handle_t back to a bus_addr_t. Needed for rbus. Only implemented for mainbus(4) and psycho(4) for now; schizo(4) and pyro(4) will follow soon. ok deraadt@
2007-08-04Add missing pci_intr_line() implementation.Mark Kettenis
ok deraadt@
2007-07-30Shuffle the order in which we look for header files, when doingThordur I. Bjornsson
kernel builds locally this doesnt change much but over NFS this cuts about 12% of the build time on my setup (i386). OK miod@, deraadt@.
2007-07-29Add support for bootpaths like /pci@1f,4000/ide@3,0/ata@0,0/cmdk@0,0Mark Kettenis
in addition to paths like /pci@1f,0/ide@d,0/disk@0,0 for machines rooting off wd(4). This makes the Ultrabook 170/200 find its root disk. tested by krw@
2007-07-28Don't try to map interrupts that are already fully specified. Makes theMark Kettenis
onboard IDE controller on the Ultrabook 170/200 work.
2007-07-24Remove some goo for dealing with 32-bit cpu's.Mark Kettenis
"I don't mind this diff" miod@