summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include
AgeCommit message (Collapse)Author
2002-11-26Make the PTE constants unsigned long with UL.Artur Grabowski
The macro PG_PALCODE in pte.h is supposed to be used when comparing two ptes to see if we need a tlb flush. For that it uses the macro ALPHA_PTE_PALCODE which in turn is defined to ~ALPHA_PTE_SOFTWARE. Unfortunately ALPHA_PTE_SOFTWARE is small enough to fit in an int, so ALPHA_PTE_PALCODE becomes an int to and the masking in PG_PALCODE masks off the pfn in the pte and pmap_enter will then fail to flush certain TLB entries when it needs to (this situation shouldn't happen too often). This might or might not be the solution for the memory corruption bug I've been hunting for the last three months (the machine still borks up, but in different ways now).
2002-10-23Add a trivial va_copy() macro to all architectures but powerpcTodd C. Miller
(which I will leave for Dale since it needs special handling). From NetBSD (and same as sparc64). espie@ OK
2002-10-10protect against multiple inclusion; pointed out by naddy, miod okPeter Valchev
2002-09-12Change the PMAP_{MAP,UNMAP}_POOLPAGE api to take a vm_page as argumentArtur Grabowski
and return a VM_PAGE. This is to allow sparc64 to cheaply record the VAC color for those pages.
2002-08-24aperture driver for alpha. It works here the same as on i386Matthieu Herrb
to allow access to VGA card's memory by mmapping /dev/xf86. The macdep.allowaperture does also control /dev/pci access. Ok miod@, deraadt@
2002-07-30Add SIZE_MAX define. This is the same as SIZE_T_MAX but more portable.Todd C. Miller
The only OSes I've seen that use SIZE_T_MAX are 4.4BSD-derived whereas SYSV things seem to use SIZE_MAX. It is also consistent with SSIZE_MAX (which we already have). deraadt@ OK
2002-07-24Pretty nasty hack to make non-exec mappings work.Artur Grabowski
Instead of using FOE for just emulating references, we also keep track of a pages executability and don't remove the FOE bit if the page is not executable. This is implmented with horrible hacks. Maybe when I have time, I'll reimplment the whole pmap to allow this without ugly hacks (read: probably not this decade). The stack on alpha is now non-exec.
2002-06-30Dummy bus_space_read_raw_region implementation.Miod Vallat
2002-06-28The IEEE fp stuff changed the rules for how fpu should be enabled.Artur Grabowski
We kept too much of the old code in trap handling. This should fix floppies and bsd.rd on some machines.
2002-06-07Remove obsolete CLKF_BASEPRI(). ok niklas@, miod@ and art@Thomas Nordin
2002-05-26- CPU_MAXID and CPU_CHIPSET were swapped in cpu.hMatthieu Herrb
- add support to print machdep.chipset mib on alpha ok deraadt@
2002-05-10Some protection from userland and some __asm paranoia.Artur Grabowski
From NetBSD.
2002-05-10Mark all those __asm directives as clobbering memory, becauseArtur Grabowski
that's what they are supposed to do.
2002-05-02Big TURBOchannel support catchup from NetBSD, part 1.Miod Vallat
A few local changes and tweaks remain. This bring DEC 3000 machines back in the game, but framebuffers are still not supported at the moment. Thanks to ericj@ and nate@ for supplying me a DEC 3000 for testing.
2002-04-29Define placeholders for art's splassert() debugging stuff on all arches.Miod Vallat
Currently as no-ops everywhere. ok art@, deraadt@
2002-04-28IEEE 754 floating point completion code, and implementation of thePeter Valchev
FP_C (Floating Point Control Quadword). From ross@NetBSD. Added a way to disable it with option NO_IEEE, which appears on the ramdisks to save space. This affects only programs compiled with -mieee, and what it essentially does is enabling infinities and NaNs, instead of generating SIGFPE on division by zero, overflow, etc. ok art, deraadt
2002-04-26newer gas is picky about misplaced .loc directives; comment'em out for now.Federico G. Schwindt
tested by miod, deraadt ok
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-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-12Emulate ptrace(PT_STEP in software.Artur Grabowski
More or less directly from FreeBSD.
2002-03-07Clean up BUS_DMA_* flags, and make sure all arch's define:Jason Wright
BUS_DMA_READ, BUS_DMA_WRITE, and BUS_DMA_STREAMING
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-15Fix the __asm__ statements and remove the workarounds.Artur Grabowski
From NetBSD.
2001-12-05VM_KMEM_SIZE no longer needed.Artur Grabowski
2001-12-05make nkmempages dynamic based on memory. okay art@ from netbsd:Niels Provos
date: 2000/02/11 19:22:52; author: thorpej; Add some very simple code to auto-size the kmem_map. We take the amount of physical memory, divide it by 4, and then allow machine dependent code to place upper and lower bounds on the size. Export the computed value to userspace via the new "vm.nkmempages" sysctl. NKMEMCLUSTERS is now deprecated and will generate an error if you attempt to use it. The new option, should you choose to use it, is called NKMEMPAGES, and two new options NKMEMPAGES_MIN and NKMEMPAGES_MAX allow the user to configure the bounds in the kernel config file.
2001-12-05Update pmap_update macro for arches Art missed. Still just a noop.Todd C. Miller
2001-11-30Now that pmaps can have vm_page_md, make pmap_physseg optional.Artur Grabowski
2001-11-30This file was just a placeholder required for kern_exit_43.c to compile.Miod Vallat
2001-11-28Make pmap_update functions into nops so that we can have a consistentArtur Grabowski
pmap_update API (right now it's nop).
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-11-06Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,Artur Grabowski
instead of doing fork1, cpu_set_kpc. This lets us retire cpu_set_kpc and avoid a multiprocessor race. This commit breaks vax because it doesn't look like any other arch, someone working on vax might want to look at this and try to adapt the code to be more like the rest of the world. Idea and uvm parts from NetBSD.
2001-11-05Switch everything to the new bus_dmamap_sync API.Artur Grabowski
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
2001-11-04Two new sysctls in the chipset tree.Artur Grabowski
CPU_CHIPSET_PORTS - address of the I/O ports. CPU_CHIPSET_HAE_MASK - mask for the HAE register.
2001-11-04Add alpha_ldlu and alpha_stl.Artur Grabowski
2001-10-26First cut at a port of isadma and floppy driver. ok art@Nathan Binkert
From NetBSD via jay@rootaction.net
2001-09-30Generic soft interrupts from NetBSD plus some minor cleanups.Artur Grabowski
2001-09-16Add some missing lengths checks when passing data from userland toTodd C. Miller
kernel. From based on NetBSD patches.
2001-09-01Add __HAVE_DEVICE_REGISTER to hp300/alpha (sparc64 already had it) andJason Wright
clean up the arch specific #ifdef's in subr_autoconf.c; from NetBSD. (tested by me on alpha/sparc64 and miod on hp300)
2001-08-18Move pmap_{de,}activate to vm/pmap.h, it's same on all archs.Artur Grabowski
2001-08-11remove some old cruft.Artur Grabowski
2001-07-09Make quad types on alpha be "long long" not "long". This means thatTodd C. Miller
printf's "%lld" can be used with a quad_t or int64_t without a bogus cast.
2001-07-04$OpenBSD$Niklas Hallqvist
2001-06-27MNN is no longer an option.Artur Grabowski
2001-06-26More chipset info needed by X.Artur Grabowski
2001-06-26Provide some chipset information to usreland through sysctl.Artur Grabowski
The chipset support is not here yet, but the skeleton works.
2001-06-24Define splvm() for arches who don't already provide it, with the sameMiod Vallat
definition as splimp(). art@ ok
2001-05-31Relocation types on alpha.Artur Grabowski
2001-05-05Rename configure() to cpu_configure().Artur Grabowski
Move it from cpu_startup() to main().
2001-05-05Get rid of CLSIZE and all related stuff.Artur Grabowski
CLSIZE -> 1 CLBYTES -> PAGE_SIZE OLOFSET -> PAGE_MASK etc. At the same time some archs needed some cleaning in vmparam.h so that goes in at the same time.