summaryrefslogtreecommitdiffstats
path: root/sys/alpha
Commit message (Collapse)AuthorAgeFilesLines
* Approved by: gallatin (mentor)ticso2003-01-031-0/+12
| | | | | Sync with i386. Don't write crashdumps outside partition boundaries.
* - Use VM_ALLOC_WIRED.alc2002-12-281-5/+7
| | | | | - Hold the page queues lock around calls to vm_page_flag_clear() and vm_page_wakeup().
* Use VM_ALLOC_WIRED in pmap_pinit().alc2002-12-281-4/+1
|
* MB_LEN_MAX is not MD, move it to the MI limits.h.tjr2002-12-222-2/+0
|
* MFi386 revisions 1.375 and 1.376alc2002-12-141-5/+14
| | | | | | | Hold the page queues lock when calling pmap_unwire_pte_hold() or pmap_remove_pte(). Use vm_page_sleep_if_busy() in _pmap_unwire_pte_hold() so that the page queues lock is released when sleeping.
* SCARGS removal take II.alfred2002-12-145-230/+225
|
* Backout removal SCARGS, the code freeze is only "selectively" over.alfred2002-12-135-225/+230
|
* Remove SCARGS.alfred2002-12-135-230/+225
| | | | Reviewed by: md5
* Unbreak the KSE code. Keep track of zobie threads using the Per-CPU storagejulian2002-12-101-1/+1
| | | | | | | | during the context switch. Rearrange thread cleanups to avoid problems with Giant. Clean threads when freed or when recycled. Approved by: re (jhb)
* MFi386alc2002-12-021-0/+2
| | | | | | Hold the page queues lock around vm_page_unhold() in vunmapbuf(). Approved by: re (blanket)
* Under certain circumstances, we were calling kmem_free() frommux2002-11-221-0/+5
| | | | | | | | | | i386 cpu_thread_exit(). This resulted in a panic with WITNESS since we need to hold Giant to call kmem_free(), and we weren't helding it anymore in cpu_thread_exit(). We now do this from a new MD function, cpu_thread_dtor(), called by thread_dtor(). Approved by: re@ Suggested by: jhb
* MFi386 r1.369alc2002-11-181-1/+5
| | | | | | | | | - Clear the PG_WRITEABLE flag in pmap_changebit() if write access is being removed. Return immediately if write access is being removed and PG_WRITEABLE is already clear. Note: For efficiency, pmap_changebit() should be replaced by a function similar to sparc64's pmap_clear_write().
* Add getcontext, setcontext, and swapcontext as system calls.deischen2002-11-165-23/+148
| | | | | | | | | | | Previously these were libc functions but were requested to be made into system calls for atomicity and to coalesce what might be two entrances into the kernel (signal mask setting and floating point trap) into one. A few style nits and comments from bde are also included. Tested on alpha by: gallatin
* Add hints for ISA ATA controllers. At least one Digital AlphaPC 64 hasjhb2002-11-141-0/+6
| | | | | | one such beast. Reported by: Rob Byrnes <rbyrnes@ozemail.com.au>
* Move pmap_collect() out of the machine-dependent code, rename italc2002-11-131-31/+1
| | | | | | | | to reflect its new location, and add page queue and flag locking. Notes: (1) alpha, i386, and ia64 had identical implementations of pmap_collect() in terms of machine-independent interfaces; (2) sparc64 doesn't require it; (3) powerpc had it as a TODO.
* - Clear the page's PG_WRITEABLE flag in the i386's pmap_changebit()alc2002-11-111-2/+1
| | | | | | if we're removing write access from the page's PTEs. - Export pmap_remove_all() on alpha, i386, and ia64. (It's already exported on sparc64.)
* Print real / avail memory in megabytes rather than kilobytes.des2002-11-091-3/+4
|
* Fix warnings when compiled with SIMOS defined.jhb2002-11-081-4/+14
|
* Cast pointers in mem*_io() compat macros to uintptr_t so that they can bejhb2002-11-081-5/+5
| | | | used as bus handles by the bus_space functions implementing these macros.
* - Update the SIMOS fp-stealing code to KSE-II and beyond.jhb2002-11-081-5/+9
| | | | - Wrap a variable only used in !SIMOS case in #ifndef SIMOS.
* Remove #ifdef DEBUG signal debugging code brought over from NetBSD with thejhb2002-11-081-32/+0
| | | | | original signal handling code. It doesn't compile and it seems the rest of the infrastructure was never brought over from NetBSD.
* Move the definitions of the hw.physmem, hw.usermem and hw.availpagestmm2002-11-071-27/+0
| | | | | | | | | | | sysctls to MI code; this reduces code duplication and makes all of them available on sparc64, and the latter two on powerpc. The semantics by the i386 and pc98 hw.availpages is slightly changed: previously, holes between ranges of available pages would be included, while they are excluded now. The new behaviour should be more correct and brings i386 in line with the other architectures. Move physmem to vm/vm_init.c, where this variable is used in MI code.
* Turn on GEOM. It works on Alpha and we are going to need it for installs.jhb2002-11-071-2/+0
|
* Wrap ()'s around an argument before casting it to a void *. If thejhb2002-11-061-6/+6
| | | | | | argument is an expression you can end up casting part of it to void *. This resulted in bogus warnings about pointer arith using void *'s for the ep(4) driver.
* Remove what was a temporary bogus assignment of bits of siginfo_t, as it doesjmallett2002-11-061-4/+0
| | | | | | not look like the prerequisites to fill it in properly will be in the tree for the upcoming release, but it's mostly done, so there is no need for these to stay around to remind us.
* - Enable the use of UMA_MD_PAGE_ALLOC on alpha.jeff2002-11-012-7/+44
| | | | | | | - Define uma_small_alloc and uma_small_free using K0SEG for virtual addresses. Approved by: re
* Remove extranious memory barriers, and correct the placement of a few others.gallatin2002-10-302-22/+4
| | | | | | | | | | This provides a 30% reduction in system time and a 6% reduction in wallclock time for a make buildworld on my xp1000 (one 21264). FWIW, I've been running this for nearly 2 months without problems. Portions submitted by: ticso, jhb Tested by: jhb (ds20 dual 21264)
* Make the second serial port available for general use by default.gallatin2002-10-301-1/+0
| | | | | | We've been talking about this for years, but nobody has done it. (and I don't think anybody has used this for debugging since Doug and I were doing the initial bootstrapping..)
* Use the newer "+" modifier on output contraints when a register orjhb2002-10-252-62/+62
| | | | | memory datum is used for both input and output instead of using matching constraints.
* Split 4.x and 5.x signal handling so that we can keep 4.x signalpeter2002-10-257-26/+286
| | | | | | | | | | | | | | | | handling clean and functional as 5.x evolves. This allows some of the nasty bandaids in the 5.x codepaths to be unwound. Encapsulate 4.x signal handling under COMPAT_FREEBSD4 (there is an anti-foot-shooting measure in place, 5.x folks need this for a while) and finish encapsulating the older stuff under COMPAT_43. Since the ancient stuff is required on alpha (longjmp(3) passes a 'struct osigcontext *' to the current sigreturn(2), instead of the 'ucontext_t *' that sigreturn is supposed to take), add a compile time check to prevent foot shooting there too. Add uniform COMPAT_43 stubs for ia64/sparc64/powerpc. Tested on: i386, alpha, ia64. Compiled on sparc64 (a few days ago). Approved by: re
* Extract out KSE specific code from machine specific codejulian2002-10-241-18/+2
| | | | | | | | so that there is ony one copy of it. Fix that one copy so that KSEs with no mailbox in a KSE program are not a cause of page faults (this can legitmatly happen). Submitted by: (parts) davidxu
* psl.h isn't referenced anywhere that I could find on the alpha, so removepeter2002-10-211-32/+0
| | | | this stub.
* Add a bus_space_unmap() for the puc (and possibly other) drivers.gallatin2002-10-211-0/+14
|
* - Replace two instances of vm_page_sleep_busy() with the page queuealc2002-10-201-4/+10
| | | | | | | | mutex-friendly vm_page_sleep_if_busy(). - Introduce page queue locking in pmap_page_lookup() and pmap_release_free_page(). - Simplify the invalidation of the pmap's ptphint in pmap_release_free_page(). (MFi386 pmap.c revision 1.362.)
* give alpha a bus_space_subregion() so that ahd_pci compiles and movesgallatin2002-10-201-0/+20
| | | | LINT one file further on. Only 999,999 or so more files to go..
* Add two hooks to signal module load and module unload to MD code.marcel2002-10-191-0/+14
| | | | | | | | | | | | The primary reason for this is to allow MD code to process machine specific attributes, segments or sections in the ELF file and update machine specific state accordingly. An immediate use of this is in the ia64 port where unwind information is updated to allow debugging and tracing in/across modules. Note that this commit does not add the functionality to the ia64 port. See revision 1.9 of ia64/ia64/elf_machdep.c. Validated on: alpha, i386, ia64
* Permits UFS ACLs to be used with the GENERIC kernel. Due to recentrwatson2002-10-191-0/+1
| | | | | | | | | | | | | ACL configuration changes, this shouldn't result in different code paths for file systems not explicitly configured for ACLs by the system administrator. For UFS1, administrators must still recompile their kernel to add support for extended attributes; for UFS2, it's sufficient to enable ACLs using tunefs or at mount-time (tunefs preferred for reliability reasons). UFS2, for a variety of reasons, including performance and reliability, is the preferred file system for use with ACLs. Approved by: re
* The a.out md_coredump stuff isn't referenced anywhere anymore, andpeter2002-10-151-10/+0
| | | | hasn't been filled in for ages.. Nuked.
* Remove the P1003_1B kernel option; it is no longer used.mike2002-10-131-2/+1
|
* Add standards visibility conditionals. Change any uses of sigset_t tomike2002-10-131-5/+10
| | | | struct __sigset to avoid depending on objects from <sys/signal.h>.
* Change iov_base's type from `char *' to the standard `void *'. Allmike2002-10-111-1/+1
| | | | | uses of iov_base which assume its type is `char *' (in order to do pointer arithmetic) have been updated to cast iov_base to `char *'.
* - Add support for IPC_64 extensions into shmctl(2), semctl(2) and msgctl(2);sobomax2002-10-111-0/+133
| | | | | | | | | | | | | - add wrappers for mmap2(2) and ftruncate64(2) system calls; - don't spam console with printf's when VFAT_READDIR_BOTH ioctl(2) is invoked; - add support for SOUND_MIXER_READ_STEREODEVS ioctl(2); - make msgctl(IPC_STAT) and IPC_SET actually working by converting from BSD msqid_ds to Linux and vice versa; - properly return EINVAL if semget(2) is called with nsems being negative. Reviewed by: marcel Approved by: marcel Tested with: LSB runtime test
* Add conditionals to allow va_list to be defined in other headers.mike2002-10-061-0/+4
|
* o Add conditionals to allow va_list to be defined in other headers.mike2002-10-061-4/+10
| | | | | o Standardize on _MACHINE_STDARG_H_ to allow multiple header includes. o Restrict the definition of va_copy() to C99 environments.
* CPU_MAXID shouldobrien2002-10-061-1/+1
|
* NB: This commit does *NOT* make GEOM the default in FreeBSDphk2002-10-052-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NB: But it will enable it in all kernels not having options "NO_GEOM" Put the GEOM related options into the intended order. Add "options NO_GEOM" to all kernel configs apart from NOTES. In some order of controlled fashion, the NO_GEOM options will be removed, architecture by architecture in the coming days. There are currently three known issues which may force people to need the NO_GEOM option: boot0cfg/fdisk: Tries to update the MBR while it is being used to control slices. GEOM does not allow this as a direct operation. SCSI floppy drives: Appearantly the scsi-da driver return "EBUSY" if no media is inserted. This is wrong, it should return ENXIO. PC98: It is unclear if GEOM correctly recognizes all variants of PC98 disklabels. (Help Wanted! I have neither docs nor HW) These issues are all being worked. Sponsored by: DARPA & NAI Labs.
* Fix namespace issues by using visibility conditionals frommike2002-10-051-1/+3
| | | | <sys/cdefs.h>.
* style(9) <machine/setjmp.h> headers so they look mostly the same.mike2002-10-041-8/+13
|
* New bus_dma interfaces for use by crypto device drivers:sam2002-10-042-0/+230
| | | | | | | | o bus_dmamap_load_mbuf o bus_dmamap_load_uio Test on i386. Known to compile on alpha and sparc64, but not tested. Otherwise untried.
* Add a couple of missing ':' in panic msgs.keramida2002-10-041-2/+2
| | | | Suggested by: gallatin
OpenPOWER on IntegriCloud