summaryrefslogtreecommitdiffstats
path: root/sys/alpha
Commit message (Collapse)AuthorAgeFilesLines
* Remove an unused #include.alc2004-06-121-1/+0
|
* Move uma_small_alloc() and uma_small_free() out of the pmap and into theiralc2004-06-112-46/+82
| | | | | own machine-dependent file. This makes alpha consistent with amd64, ia64, and powerpc.
* Deorbit COMPAT_SUNOS.phk2004-06-111-6/+6
| | | | | We inherited this from the sparc32 port of BSD4.4-Lite1. We have neither a sparc32 port nor a SunOS4.x compatibility desire these days.
* Remove atdevbase and replace it's remaining uses with direct references tojhb2004-06-101-5/+0
| | | | KERNBASE instead.
* MFamd64alc2004-06-101-5/+1
| | | | | | Significantly reduce the number of preallocated pv entries in pmap_init(). Tested by: kensmith@
* Remove filename+line number from panic messages.phk2004-06-061-4/+2
|
* Machine generated patch which changes linedisc calls from accessingphk2004-06-042-7/+7
| | | | | | linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit.
* Regenerate.jhb2004-06-043-4/+4
|
* Mark linux_wait4() as MP Safe as it is so and holding Giant across all ofjhb2004-06-041-1/+1
| | | | | | | kern_wait() trips an assert that Giant is not held in thread_wait(). PR: 67538 Submitted by: Nikos Ntarmos ntarmos at ceid dot upatras dot gr
* Remove checks for curthread == NULL - it can't happen.tjr2004-06-031-5/+3
|
* Add missing <sys/module.h> instances which were shadowed by the nestedphk2004-06-031-1/+2
| | | | include in <sys/kernel.h>
* Move TDF_DEADLKTREAT into td_pflags (and rename it accordingly) to avoidtjr2004-06-031-9/+4
| | | | | | | having to acquire sched_lock when manipulating it in lockmgr(), uiomove(), and uiomove_fromphys(). Reviewed by: jhb
* Gainfully employ the new ttyioctl in the trivial cases.phk2004-06-012-54/+0
|
* Retire cpu_sched_exit(); it is not used any more.tmm2004-05-261-6/+0
|
* Moved most of the "MI" definitions and declarations from <machine/profile.h>bde2004-05-191-12/+0
| | | | | | to <sys/gmon.h>. Cleaned them up a little by not attempting to ifdef for incomplete and out of date support for GUPROF in userland, as in the sparc64 version.
* <stdint.h> should define WINT_M{AX,IN} independent from whether WCHAR_MIN isstefanf2004-05-181-1/+1
| | | | | | | | defined. Otherwise first including <wchar.h> and then <stdint.h> leads to no WINT_M{AX,IN} at all. PR: 64956 Approved by: das (mentor)
* Make a small revision to the api between the elf linker core and thepeter2004-05-161-9/+11
| | | | | | elf_reloc() backends for two reasons. First, to support the possibility of there being two elf linkers in the kernel (eg: amd64), and second, to pass the relocbase explicitly (for relocating .o format kld files).
* When a denormal underflows to zero, raise an underflow exception.das2004-05-061-0/+3
| | | | Thanks to marcel for helping me test this.
* Don't clear the exception flags after we finish emulating adas2004-05-062-1/+3
| | | | | | | floating-point instruction in the kernel. The flags are supposed to be cumulative. Thanks to marcel for helping me test this.
* Add option GEOM_GPT. This brings the ability to have a large number ofmarcel2004-05-021-0/+1
| | | | partitions on a single disk.
* Spell Ethernet correctly.obrien2004-05-021-4/+4
|
* MFamd64: implement the PG_UNMANAGED flag on vm_pages.gallatin2004-04-261-4/+9
| | | | | | | Alan noticed that alpha ignored PG_UNMANAGED when we were looking into pmap_emulate_reference() panics. Perhaps this will help. Reviewed by: alc
* Since pmap_pinit() wants a prezeroed page, change it to ask for one. (Notealc2004-04-261-4/+1
| | | | | that vm_page_grab(), unlike vm_page_alloc(), always returns a prezeroed page if VM_ALLOC_ZERO is specified. So, checking is unnecessary.)
* Hide FLT_EVAL_METHOD and DECIMAL_DIG in pre-C99 compilationdas2004-04-251-0/+2
| | | | | | | environments. PR: 63935 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* Push down the responsibility for zeroing a physical page from thealc2004-04-241-3/+0
| | | | | | | | | | | | | caller to vm_page_grab(). Although this gives VM_ALLOC_ZERO a different meaning for vm_page_grab() than for vm_page_alloc(), I feel such change is necessary to accomplish other goals. Specifically, I want to make the PG_ZERO flag immutable between the time it is allocated by vm_page_alloc() and freed by vm_page_free() or vm_page_free_zero() to avoid locking overheads. Once we gave up on the ability to automatically recognize a zeroed page upon entry to vm_page_free(), the ability to mutate the PG_ZERO flag became useless. Instead, I would like to say that "Once a page becomes valid, its PG_ZERO flag must be ignored."
* MFamd64alc2004-04-182-74/+16
| | | | | Simplify the sf_buf implementation. In short, make it a veneer over the direct virtual-to-physical mapping.
* Whitespace fix.jhb2004-04-161-1/+1
|
* Remove avail_end. It is not used.alc2004-04-112-5/+0
|
* - pmap_kenter_temporary() is unused by machine-independent code. Therefore,alc2004-04-101-0/+1
| | | | | | | | move its declaration to the machine-dependent header file on those machines that use it. In principle, only i386 should have it. Alpha and AMD64 should use their direct virtual-to-physical mapping. - Remove pmap_kenter_temporary() from ia64. It is unused. Approved by: marcel@
* Remove advertising clause from University of California Regent'simp2004-04-071-4/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Remove the advertsing clause, per the Regent's letter dated July 22, 1999.imp2004-04-0518-77/+0
| | | | Approved by: core
* Remove avail_start on those platforms that no longer use it. (Only amd64alc2004-04-052-3/+0
| | | | does anything with it beyond simple initialization.)
* Remove unused arguments from pmap_init().alc2004-04-051-2/+1
|
* Remove CADDR1 and CMAP1. They are unused.alc2004-04-031-2/+0
|
* In some cases, sf_buf_alloc() should sleep with pri PCATCH; in others, italc2004-04-031-2/+2
| | | | | | | should not. Add a new parameter so that the caller can specify which is the case. Reported by: dillon
* Finish fixing up Alpha to work with an MP safe ptrace():jhb2004-04-011-6/+3
| | | | | | | | | | - ptrace_single_step() is no longer called with the proc lock held, so don't try to unlock it and then relock it. - Push Giant down into proc_rwmem() instead of forcing all the consumers (including Alpha breakpoint support) to explicitly wrap calls to proc_rwmem() with Giant. Tested by: kensmith
* MFi386: Use the BSD madvise() syscall implementation for Linux binarybms2004-03-295-8/+3
| | | | | | emulation, instead of treating it as an unimplemented syscall. Requested by: marcel
* MFi386: correctly calculate the top-of-stack when a kthread is createdkensmith2004-03-291-4/+2
| | | | | | | | | | with a larger kernel stack. Remove inclusion of opt_kstack_pages.h now that it's unused. Note: If anyone's toes got stepped on by me doing this let me know privately please. Approved by: rwatson (mentor)
* Enable interrupt preemption on Alpha. Previously, flipping this switch onjhb2004-03-231-1/+10
| | | | | | | | | | | caused hangs on SMP systems under load. My theory was that an interrupted thread was migrating and returning to PAL on a different CPU and that that caused the hangs. To prevent this, I used the recently added sched_pin() API to pin the interrupted thread to the CPU that received the interrupt across ithread_schedule() to prevent migration. This seems to have fixed the hangs based on tests by several folks on the alpha@ list. Tested by: wilko, tisco, several others on alpha@
* - Add uiomove_fromphys() implementations to alpha and ia64. These onlyalc2004-03-201-0/+132
| | | | | differ trivially from amd64. - Correct a spelling error in a comment.
* Introduce the cpumask_t type. The purpose of the type is to create amarcel2004-03-201-0/+1
| | | | | | | | | | | | | | | | | | | level of abstraction for any and all CPU mask and CPU bitmap variables so that platforms have the ability to break free from the hard limit of 32 CPUs, simply because we don't have more bits in an u_int. Note that the type is not supposed to solve massive parallelism, where the number of CPUs can be larger than the width of the widest integral type. As such, cpumask_t is not supposed to be a compound type. If such would be necessary in the future, we can deal with the issues then and there. For now, it can be assumed that the type is integral and unsigned. With this commit, all MD definitions start off as u_int. This allows us to phase-in cpumask_t at our leasure without breaking anything. Once cpumask_t is used consistently, platforms can switch to wider (or smaller) types if such would be beneficial (or not; whatever :-) Compile-tested on: i386
* sync comment with i386's isa.c.. This removes a comment that is YEARSjmg2004-03-171-3/+1
| | | | old...
* - Replace wait1() with a kern_wait() function that accepts the pid,jhb2004-03-171-15/+12
| | | | | | | | | | | | | | | options, status pointer and rusage pointer as arguments. It is up to the caller to copyout the status and rusage to userland if needed. This lets us axe the 'compat' argument and hide all that functionality in owait(), by the way. This also cleans up some locking in kern_wait() since it no longer has to drop locks around copyout() since all the copyout()'s are deferred. - Convert owait(), wait4(), and the various ABI compat wait() syscalls to use kern_wait() rather than wait1() or wait4(). This removes a bit more stackgap usage. Tested on: i386 Compiled on: i386, alpha, amd64
* Refactor the existing machine-dependent sf_buf_free() into a machine-alc2004-03-161-17/+2
| | | | | | | | | | dependent function by the same name and a machine-independent function, sf_buf_mext(). Aside from the virtue of making more of the code machine- independent, this change also makes the interface more logical. Before, sf_buf_free() did more than simply undo an sf_buf_alloc(); it also unwired and if necessary freed the page. That is now the purpose of sf_buf_mext(). Thus, sf_buf_alloc() and sf_buf_free() can now be used as a general-purpose emphemeral map cache.
* Regenerate.jhb2004-03-156-8/+8
|
* - Mark ABI syscalls that call wait4() MP safe as recent changes tojhb2004-03-152-2/+2
| | | | | | the kernel wait4() made these all panic() implementations otherwise. - The i386 linux_ptrace() syscall is MP safe. Alpha was already marked MP safe.
* Now that contigfree() does not require Giant, don't grab it in busdma.scottl2004-03-131-2/+0
|
* Retire pmap_pinit2(). Alpha was the last platform that used it. However,alc2004-03-071-12/+0
| | | | | | | | | | | | | | ever since alpha/alpha/pmap.c revision 1.81 introduced the list allpmaps, there has been no reason for having this function on Alpha. Briefly, when pmap_growkernel() relied upon the list of all processes to find and update the various pmaps to reflect a growth in the kernel's valid address space, pmap_init2() served to avoid a race between pmap initialization and pmap_growkernel(). Specifically, pmap_pinit2() was responsible for initializing the kernel portions of the pmap and pmap_pinit2() was called after the process structure contained a pointer to the new pmap for use by pmap_growkernel(). Thus, an update to the kernel's address space might be applied to the new pmap unnecessarily, but an update would never be lost.
* Remove unused declarations. (Some time ago, these variables became fieldsalc2004-03-071-2/+0
| | | | of vm/vm.h's struct kva_md_info.)
* Fix syntax errors and wrong function prototypes in several MD headerle2004-03-051-2/+2
| | | | | | | | files when using non-GNUC compilers. PR: kern/58515 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Approved by: grog (mentor), obrien
OpenPOWER on IntegriCloud