summaryrefslogtreecommitdiff
path: root/sys/arch/aviion
AgeCommit message (Collapse)Author
2009-04-19Rename max_cpus to ncpusfound and compute it regardless of optionMiod Vallat
MULTIPROCESSOR.
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-03-15Generic softinterrupt support for m88k based platforms, adapted from armMiod Vallat
with different locking mechanism. 88110 soft ipi are replaced with an ipi callback which is checked upon return from exception (it can not be kept as a softintr, as the generic softinterrupt code doesn't have per-cpu pending softintr queues).
2009-02-16Since NMI are now handled separately, remove the ``interrupt type'' argumentMiod Vallat
from interrupt() and related function pointers.
2009-01-25Remove /dev/drum and related code.Miod Vallat
2009-01-11Fix a sed bug in the makefile's depend target.Paul Irofti
What happened was that the output of mkdep was fed to a sed expression that trimmed a bit more than required and also failed to work when attempting to do make depend with pcc. Example: genassym_c.o: /tmp/genassym.whatever ../../../../../sys/param.h \ was changed to: assym.h: \ but what was intended was: assym.h: ../../../../../sys/param.h \ For the pcc -M output things were a bit different and after the make depend the genassym entry would still remain and make would fail. This affected all platforms except amd64 and sgi. Okay miod@.
2008-07-23Correct cases of mishandling of pending reads and writes to preventBob Beck
them going negative - this consists of identifying a number of cases of IO not going through the buffer cache and marking those buffers with B_RAW - as well as fixing nfs_bio to show pending writes and reads through the buffer cache via NFS still has a problem with mishandling the counters I believe in the async/sync fallback case where counters stay positive which will be addressed seperately. ok tedu@ deraadt@
2008-07-21nam2blk[] needs a "vnd" entry for some things (like softraid)Todd T. Fries
ok marco@ no objection miod@ need this for regress djm@ no objection krw@
2008-06-27Clear swap encryption keys before dumping a kernel image.Miod Vallat
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-12Bring biomem diff back into the tree after the nfs_bio.c fix went in.Theo de Raadt
ok thib beck art
2008-06-11back out biomem diff since it is not right yet. Doing very largeTheo de Raadt
file copies to nfsv2 causes the system to eventually peg the console. On the console ^T indicates that the load is increasing rapidly, ddb indicates many calls to getbuf, there is some very slow nfs traffic making none (or extremely slow) progress. Eventually some machines seize up entirely.
2008-06-10Fix buffer cache pending read statistics by ensuring we can identifyBob Beck
biowait() reads that do *not* come from the buffer cache - we use the B_RAW flag to identify these at art's suggestion - since it makes sense and the flag was not being used. this just flags all these buffers with B_RAW - biodone already ignores returned buffers marked B_RAW. ok art@
2008-05-14Fix more chrtoblktbl[] sloppyness, and add proper block st nodes to *ppc andMiod Vallat
sgi.
2008-04-12Compile kernels with -Wvariable-decl (except on arches with ipmi, for now).Miod Vallat
2008-04-09Add new stub uvm_shutdown() and call it from the right place in MD boot()Theo de Raadt
2008-04-08Split the cdev makro for bpftun into two seperate definitions. tun(4) andClaudio Jeker
bpf(4) are different enough so that the split makes sense -- this is necessary to make bpf(4) cloneable. requested deraadt@, OK thib@
2008-01-29More read/write result checking fixes to avoid unsigned comparisons vsKenneth R Westerback
-1. ok henning@ beck@ ray@
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2008-01-13Add a machdep.cputype sysctl, which returns the processor type (0 for 88100,Miod Vallat
1 for 88110), for userland to have an easy way to figure out.
2007-12-31replace ctob/btoc by ptoa/atop as done for other architecturesMartin Reindl
2007-12-27Fix the spurious or unclaimed interrupt messages, I swapped them by mistake.Miod Vallat
2007-12-22Move initial PSR initialization to a separate routine, instead of duplicatingMiod Vallat
it five times.
2007-12-21Change the EF_xxx constants to be real offsets within the trapframe, insteadMiod Vallat
of offsets / sizeof(register_t), and nuke the REG_OFF macro. No functional change.
2007-12-20Get rid of disable_interrupt() and have caller use get_psr() and set_psr();Miod Vallat
this allows us to get rid of the dependency of asm_macro.h on asm.h, which was really only there to bring in psl.h.
2007-12-20Print the VME vector number used when attaching.Miod Vallat
2007-12-20Do not wait for the end of the universe if delay(0).Miod Vallat
2007-12-20Stricter range checks in mmap function.Miod Vallat
2007-12-19Overhaul interrupt handling, in order to make it (arguably) simpler andMiod Vallat
more board design-independent. The main changes are: - define logical interrupt sources, which match the on-board devices as well as the seven VME interrupt sources. Use these whenever possible when registering interrupts in the drivers, so that the actual interrupt mask layouts are hidden. - make the on-board and VME interrupt handlers separate. On-board interrupt handlers are not really associated to an interrupt vector, only to a given interrupt source, and only one handler can be registered for a logical interrupt source. On the other hand, VME interrupts come with a vector number, and can be shared. This allows VME devices to really use the whole 256 vectors space, starting at vector zero. - update the real interrupt masks upon interrupt handler registration and removal, so that only interrupt sources for which a handler exists may be enabled. - update the VME interrupt allocation logic to allow exclusive vector allocation. - move the Z8536 clock routines to their own file, since they are not AV400-specific; while there, calibrate the delay constant upon startup for more accurate delay(). The vme driver is the only one left with AV400 tentacles left, to be fixed very soon.
2007-12-19Use the real physical memory size for physmem, rather than what's left afterMiod Vallat
the PROM has eaten part of it, so that the reported memory size in dmesg is a nice round number.
2007-12-19The serial console address apparently does not change accross 88100 designs,Miod Vallat
so stash it in a board-independent header.
2007-12-19Allocate memory for the onboard le interface using uvm functions, instead ofMiod Vallat
stealing pages in pmap_bootstrap. While there, use up to four times more memory for these buffers if the machine has enough physical memory.
2007-12-13Sync with the mvme188 codebase, various tweaks from the last 18 months whichMiod Vallat
had not been reported to aviion.
2007-12-12Disable the built-in speaker when initializing the chip, before myMiod Vallat
neighbours start visiting me with large axes.
2007-12-12Remove possible trailing \r from the PROM commandline arguments.Miod Vallat
2007-12-12Mask the clock interrupts until cpu_initclocks() is invoked.Miod Vallat
2007-12-09Nuke evil common, spotted by martin@Miod Vallat
2007-12-08Better siginfo fault codes for floating point exceptions on 88110, withMiod Vallat
more work in progress to handle these exceptions correctly, and document a new undocumented and evil chip bug while there.
2007-12-05Make the CPU_88100 and CPU_88110 constants match the architectural numberMiod Vallat
field from the processor identification register; this allows .S code which needs to decide on the cpu type at runtime to check quicker, without needing to access memory. No functional change.
2007-12-04Correctly set the stack pointer of a secondary processor to the endMiod Vallat
of its initialization stack. Oops.
2007-12-02Do not pass UPAGES and USPACE (under the name USIZE) in assym.h, code whichMiod Vallat
needs it includes <machine/param.h> already.
2007-12-02Rework the __mp_lock code to not spin at spllock(), kinda similar to theMiod Vallat
x86 __mp_lock changes, but keeping the internal __cpu_simplelock_t to guarantee atomic access to the __mp_lock fields.
2007-11-30Define NORMAL_C_NOP everywhere.Miod Vallat
2007-11-26More LIBKERN bits that go awayTheo de Raadt
2007-11-25libkern, begone. Move to a new mechanism where config(8)'s "file"Theo de Raadt
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
2007-11-25Get rid of the kernel 'libcompat' framework, and instead use conf/files toTheo de Raadt
decide which files must be pulled into the kernel. Also conditionalize the pulling of those files based on the COMPAT_* options.
2007-11-21Use bcopy instead of assignment to avoid a possible misaligned access.Miod Vallat
2007-11-17The initial ipl on luna/mvme188 like interrupt arbiters is IPL_HIGH, notMiod Vallat
IPL_NONE; fixes a false splassert warning on boot.
2007-11-17Replace many ``unsigned'' variables with ``unsigned int'', ``u_int'' or otherMiod Vallat
appropriate types. No functional change.