summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2002-04-26build release bsd.scsi3 from regular bsd file, by using config -e toTheo de Raadt
clone sd0 out of sd*. my idea, initial hack by miod, my makefile hackery
2002-04-26Fix spelling in comment and some whitespace.Artur Grabowski
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-04-18call pool_get() with PR_NOWAIT. allocation can fail with low memory, butTheo de Raadt
will work in contexts with curproc is NULL. from art. going into 3.1
2002-04-11Make sure this always prints the 'root on' line. Also, treat ramdisksJason Wright
as disks in a few other places so that autoconf doesn't complain: 'use one of: ...' when rd0 is wired as root.
2002-03-31Fix a spl botch for sun4/sun4c, which should fix reported stability issuesMiod Vallat
on some machines. Tested on ss2 only. ok art@ deraadt@
2002-03-26Honor psratio for addupc_task(), as other arches do.Miod Vallat
2002-03-23typo repair; openbsd@davidkrause.comTheo de Raadt
2002-03-23Add variables for config(8) -e time tweak of systemV shared memoryMarc Espie
parameters. Ok millert@, miod@, maja@
2002-03-15Cosmetic changes only, primarily making comments line up nicely after theTodd C. Miller
__P removal.
2002-03-15The previous commit broke the bootblocks, since uvmexp is not availableMiod Vallat
there. Win some uglyness points in fixing this.
2002-03-14Remove a bunch of #if 0 codeJason Wright
2002-03-14use getprop, not getpropstring to fetch 'magma_prom' property...Jason Wright
ra->ra_name is needed and is the result of getpropstring
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-14Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inMiod Vallat
your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks.
2002-03-13On sparc, PAGE_SIZE and friends might not be a compile-time constant.Miod Vallat
Instead of using a homegrown set of variables in this case, rely on uvmexp fields once uvm has been initialized. This requires a few #include <uvm/uvm_extern.h> here and there in the kernel as well. Idea from art@, changes by me.
2002-02-21%s/iommu_clear/iommu_remove/gJason Wright
(iommu_clear was renamed awhile ago, but comments and such were not updated)
2002-02-20frantzen's stackghost code. wcookie is set at 0 right now, until debuggerTheo de Raadt
support added (i mean, written)
2002-02-19Provide PAGE_{MASK,SHIFT,SIZE} ``constants'' for every cpu combination.Miod Vallat
Fixes PR #2219
2002-02-17Patch from Daniel Lucq <daniel@lucq.org>Mats O Jansson
The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT and NKMEMPAGES using the config command, instead of recompiling the kernel. This is the kernel part of the patch. I have compiled it on i386, sparc64, alpha and macppc. -moj ok art@ maja@
2002-02-15Don't cast nonexistent return value from splx to (void). ok art@Thomas Nordin
2002-02-14__weak_alias() support.Federico G. Schwindt
2002-02-08Better tx interrupt handling; don't call bestart() from betint() unlessJason Wright
we're OACTIVE and cleared at least one slot
2002-02-08since we're checking, avoid an unnecessary writeJason Wright
2002-02-08Better IFF_OACTIVE handling; don't bother calling qestart() unlessJason Wright
we were IFF_OACTIVE and we freed at least one slot.
2002-02-08simplify qec_put a bitJason Wright
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
2002-01-25Add support for the "Magma 2+1HS Sp" (from NetBSD)Jason Wright
2002-01-24Fix a few typosArtur Grabowski
2002-01-23copy*str() sanity fixes for sparc.Miod Vallat
Work from Theo and myself.
2002-01-23compatability -> compatibility.Federico G. Schwindt
2002-01-23move mb_map allocation to mbinit()Artur Grabowski
2002-01-23move definition of mb_map from zillions of machdep.c to uipc_mbuf.cArtur Grabowski
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2002-01-20move a few more arch specific drivers to use new allocm and round_buffersize.Eric Jackson
2002-01-18Move CS_TIMEOUT declJason Wright
2002-01-16Don't include <sys/map.h> when you don't need what's in it.Miod Vallat
2002-01-13comment typosJason Wright
2002-01-11Get all of the bit definitions from ad1848reg, apcdmareg, and cs4231regJason Wright
headers.
2002-01-11Oops, that's -disable- interrupt enable in cs4231_close()...Jason Wright
2002-01-11Remove last nights interrupt handling hack and do it right:Jason Wright
* check the qualify the intr pending bits with the enable bits * enable/disable the cs4231 IEN bit in the pin control register * move the cs4231 (not dma) interrupt handling to the general interrupt processing [This properly allows for sharing with, eg. magma]
2002-01-11for the "Magma LC 2+1 Sp", we have to check the 'clock' property (it'sJason Wright
64Mhz vs. the "normal" 25Mhz). This (with the cs4231 patch) makes this board work.
2002-01-11Only check for playback interrupts if we're actually expecting them.Jason Wright
(This fixes the crash in pr2212, but the magma still doesn't want to talk to the world... looks like oscillator problems). [Many thanks to John Baker <jdbaker@blkbox.com> for donating a MAGMA board for testing]
2002-01-10Check result from malloc(9) when using M_NOWAIT. jason@ okThomas Nordin
2002-01-01Don't whine about not having carrier... ifconfig on the interface will say so.Jason Wright
2001-12-25Oops, I barfed there, too.Miod Vallat
2001-12-24Harmonize and complete wrt cross-compilation.Miod Vallat
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
2001-12-14Major restructuring for swizzling to the request queue and unswizzling frommjacob
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline.h. Each platform is responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32} macros. The reason this needs to be done is that we need to have a single set of functions that will work correctly on multiple architectures for both little and big endian machines. It also needs to work correctly in the case that we have the request or response queues in memory that has to be treated specially (e.g., have ddi_dma_sync called on it for Solaris after we update it or before we read from it). One thing that falls out of this is that we no longer build requests in the request queue itself. Instead, we build the request locally (e.g., on the stack) and then as part of the swizzling operation, copy it to the request queue entry we've allocated. I thought long and hard about whether this was too expensive a change to make as it in a lot of cases requires an extra copy. On balance, the flexbility is worth it. With any luck, the entry that we build locally stays in a processor writeback cache (after all, it's only 64 bytes) so that the cost of actually flushing it to the memory area that is the shared queue with the PCI device is not all that expensive. We may examine this again and try to get clever in the future to try and avoid copies. Another change that falls out of this is that MEMORYBARRIER should be taken a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the entry being added. But there had been many other places this had been missing. It's now very important that it be done. For OpenSD, it does a ddi_dmamap_sync as appropriate. This gets us out of the explicit ddi_dmamap_sync on the whole response queue that we did for SBus cards at each interrupt. Now, because SBus/sparc doesn't use bus_dma, some shenanigans were done to support this. But Jason was nice enough to test the SBus/sparcv9 changes for me, and they did the right thing as well. Set things up so that platforms that cannot have an SBus don't get a lot of the SBus code checks (dead coded out). Additional changes: Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry, the iptr value that gets returned is the value we intend to eventually plug into the ISP registers as the entry *one past* the last one we've written- *not* the current entry we're updating. All along we've been calling sync functions on the wrong index value. Argh. The 'fix' here is to rename all 'iptr' variables as 'nxti' to remember that this is the 'next' pointer- not the current pointer. Devote a single bit to mboxbsy- and set aside bits for output mbox registers that we need to pick up- we can have at least one command which does not have any defined output registers (MBOX_EXECUTE_FIRMWARE). Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response. Otherwise, we won't unswizzle it correctly. Nuke some additional __P macros.