aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
Commit message (Collapse)AuthorAgeFilesLines
...
* o Call cninit_finish() in configure_final().Marcel Moolenaar2005-05-291-86/+1
| | | | | | | o Remove unused and compiled-out code while here. Notes: svn path=/head/; revision=146789
* White space normalization: use tabs instead of spaces before and afterRobert Watson2005-05-291-39/+39
| | | | | | | the system call type field. Notes: svn path=/head/; revision=146785
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386Yoshihiro Takahashi2005-05-293-63/+0
| | | | | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr) Notes: svn path=/head/; revision=146734
* Change the spkr_set_pitch() function to a macro to fix low level profiling.Yoshihiro Takahashi2005-05-281-7/+5
| | | | Notes: svn path=/head/; revision=146721
* For ISA DMA maps, the chipsets scatter/gather feature is used. AsMarcel Moolenaar2005-05-251-0/+3
| | | | | | | | | | | | | | such, the segments pointer in the DMA tag will always be NULL. In bus_dmamap_load(), temporarily point the segments pointer in the DMA tag to a local variable so that we don't dereference a NULL pointer. Reset the segments pointer to NULL after calling the callback function with it. PR: alpha/30486 MFC after: 1 week Notes: svn path=/head/; revision=146606
* Add missing jail.h include.Pawel Jakub Dawidek2005-05-221-0/+1
| | | | Notes: svn path=/head/; revision=146504
* This code seems to be dead, but anyway:Pawel Jakub Dawidek2005-05-221-3/+9
| | | | | | | | | - Don't leak fsid. - Don't forget about prison_check_mount(). - Don't use additional variable when there is no need to. Notes: svn path=/head/; revision=146503
* - Move bus dependent defines to {isa,cbus}_dmareg.h.Yoshihiro Takahashi2005-05-141-1/+1
| | | | | | | | | - Use isa/isareg.h rather than <arch>/isa/isa.h. Tested on: i386, pc98 Notes: svn path=/head/; revision=146214
* - Move timerreg.h to <arch>/include and split i8253 specific defines intoYoshihiro Takahashi2005-05-144-97/+123
| | | | | | | | | | | | i8253reg.h, and add some defines to control a speaker. - Move PPI related defines from i386/isa/spkr.c into ppireg.h and use them. - Move IO_{PPI,TIMER} defines into ppireg.h and timerreg.h respectively. - Use isa/isareg.h rather than <arch>/isa/isa.h. Tested on: i386, pc98 Notes: svn path=/head/; revision=146211
* Change cpu_set_kse_upcall to more generic style, so we can reuse itDavid Xu2005-04-231-7/+18
| | | | | | | | | | in other codes. Add cpu_set_user_tls, use it to tweak user register and setup user TLS. I ever wanted to merge it into cpu_set_kse_upcall, but since cpu_set_kse_upcall is also used by M:N threads which may not need this feature, so I wrote a separated cpu_set_user_tls. Notes: svn path=/head/; revision=145433
* Add empty header (except of the multiple-inclusion protection) toMarcel Moolenaar2005-04-201-0/+10
| | | | | | | get hwpmc(4) to compile on this platform. Notes: svn path=/head/; revision=145332
* Break out the definition of bus_space_{tag,handle}_t and a few other typesWarner Losh2005-04-182-7/+43
| | | | | | | | | | | | | into _bus.h to help with name space polution from including all of bus.h. In a few days, I'll commit changes to the MI code to take advantage of thse sepration (after I've made sure that these changes don't break anything in the main tree, I've tested in my trees, but you never know...). Suggested by: bde (in 2002 or 2003 I think) Reviewed in principle by: jhb Notes: svn path=/head/; revision=145253
* Use PCPU_LAZY_INC() for cnt.v_{intr,trap,syscalls} rather than atomicJohn Baldwin2005-04-122-4/+4
| | | | | | | operations in some places and simple non-per CPU math in others. Notes: svn path=/head/; revision=144971
* Fix another instance of TDP_OWEPREEMPT -> td_owepreempt.John Baldwin2005-04-091-1/+1
| | | | | | | Reported by: tinderbox Notes: svn path=/head/; revision=144845
* Divorce critical sections from spinlocks. Critical sections as denoted byJohn Baldwin2005-04-046-148/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | critical_enter() and critical_exit() are now solely a mechanism for deferring kernel preemptions. They no longer have any affect on interrupts. This means that standalone critical sections are now very cheap as they are simply unlocked integer increments and decrements for the common case. Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter() and spinlock_exit(). This KPI is responsible for providing whatever MD guarantees are needed to ensure that a thread holding a spin lock won't be preempted by any other code that will try to lock the same lock. For now all archs continue to block interrupts in a "spinlock section" as they did formerly in all critical sections. Note that I've also taken this opportunity to push a few things into MD code rather than MI. For example, critical_fork_exit() no longer exists. Instead, MD code ensures that new threads have the correct state when they are created. Also, we no longer try to fixup the idlethreads for APs in MI code. Instead, each arch sets the initial curthread and adjusts the state of the idle thread it borrows in order to perform the initial context switch. This change is largely a big NOP, but the cleaner separation it provides will allow for more efficient alternative locking schemes in other parts of the kernel (bare critical sections rather than per-CPU spin mutexes for per-CPU data for example). Reviewed by: grehan, cognet, arch@, others Tested on: i386, alpha, sparc64, powerpc, arm, possibly more Notes: svn path=/head/; revision=144637
* - Change the vm_mmap() function to accept an objtype_t parameter specifyingJohn Baldwin2005-04-012-3/+4
| | | | | | | | | | | | | | | the type of object represented by the handle argument. - Allow vm_mmap() to map device memory via cdev objects in addition to vnodes and anonymous memory. Note that mmaping a cdev directly does not currently perform any MAC checks like mapping a vnode does. - Unbreak the DRM getbufs ioctl by having it call vm_mmap() directly on the cdev the ioctl is acting on rather than trying to find a suitable vnode to map from. Reviewed by: alc, arch@ Notes: svn path=/head/; revision=144501
* MFi386 (1.610): let TUNABLE_ULONG_FETCH handle the suffix.Dag-Erling Smørgrav2005-04-011-33/+3
| | | | Notes: svn path=/head/; revision=144468
* Use a custom version of copyinuio() to implement osf1_{read,write}v() viaJohn Baldwin2005-03-311-79/+56
| | | | | | | kern_{read,write}v(). Notes: svn path=/head/; revision=144448
* Add USB Communication Device Class Ethernet driver. Originally written forMaxim Sobolev2005-03-221-0/+1
| | | | | | | | | | | | | FreeBSD based on aue(4) it was picked by OpenBSD, then from OpenBSD ported to NetBSD and finally NetBSD version merged with original one goes into FreeBSD. Obtained from: http://www.gank.org/freebsd/cdce/ NetBSD OpenBSD Notes: svn path=/head/; revision=143985
* Add a comment to note that pseudo-device bpf is required for DHCP.Murray Stokely2005-03-181-0/+1
| | | | | | | | | | | | This is mentioned in the Handbook but it is not as obvious to new users why bpf is needed compared to the other largely self-explanatory items in GENERIC. PR: conf/40855 MFC after: 1 week Notes: svn path=/head/; revision=143809
* Split configure() into 3 separate steps like we do on otherIan Dowse2005-03-181-15/+16
| | | | | | | | | | architectures. This makes it possible to insert hooks before and after the device attachment step. Tested thanks to: marcel Notes: svn path=/head/; revision=143796
* Customize this for the alpha by removing pc98 defines (unused on alpha)Warner Losh2005-03-161-17/+1
| | | | | | | as well as saying that the alpha is wired up in a certain way. Notes: svn path=/head/; revision=143720
* Refactor the bus_dma header files so that the interface is described inScott Long2005-03-142-190/+34
| | | | | | | | | | | | | sys/bus_dma.h instead of being copied in every single arch. This slightly reorders a flag that was specific to AXP and thus changes the ABI there. The interface still relies on bus_space definitions found in <machine/bus.h> so it cannot be included on its own yet, but that will be fixed at a later date. Add an MD <machine/bus_dma.h> for ever arch for consistency and to allow for future MD augmentation of the API. sparc64 makes heavy use of this right now due to its different bus_dma implemenation. Notes: svn path=/head/; revision=143598
* Fix a long-standing bug in alpha's implementation of busdma. We need toMaxime Henrion2005-03-121-4/+4
| | | | | | | | | | | | | | OR the physical address with alpha_XXX_dmamap_or to get the DMA address, like the name of the variable suggests. However, while we were doing this correctly in the alpha_XXX_dmamap() macro, the busdma code added the variable to the physical address instead of or'ing it. Fortunately and if my math is not entirely wrong, you would need more than 128GB of RAM and a device able to do DMA in 64bits to experience the bug. Spotted by: cognet Notes: svn path=/head/; revision=143443
* Remove dead code.Scott Long2005-03-071-17/+0
| | | | Notes: svn path=/head/; revision=143202
* Regen after addition of linux_nosys handler.Maxim Sobolev2005-03-073-3/+9
| | | | Notes: svn path=/head/; revision=143198
* Handle unimplemented syscall by instantly returning ENOSYS instead of sendingMaxim Sobolev2005-03-071-0/+4
| | | | | | | | | | signal first and only then returning ENOSYS to match what real linux does. PR: kern/74302 Submitted by: Travis Poppe <tlp@LiquidX.org> Notes: svn path=/head/; revision=143197
* netchild's mega-patch to isolate compiler dependencies into a centralJoerg Wunsch2005-03-0211-36/+57
| | | | | | | | | | | | | | | | | | | place. This moves the dependency on GCC's and other compiler's features into the central sys/cdefs.h file, while the individual source files can then refer to #ifdef __COMPILER_FEATURE_FOO where they by now used to refer to #if __GNUC__ > 3.1415 && __BARC__ <= 42. By now, GCC and ICC (the Intel compiler) have been actively tested on IA32 platforms by netchild. Extension to other compilers is supposed to be possible, of course. Submitted by: netchild Reviewed by: various developers on arch@, some time ago Notes: svn path=/head/; revision=143063
* Attempt to doff the pointy hat: implement 'hw.realmem' on remainingWes Peters2005-03-011-0/+2
| | | | | | | | | architectures. Pointed out by O'Brien, ScottL via email. Reviewed by: obrien (various) Notes: svn path=/head/; revision=142956
* Use a common multi-inclusion protection, and add such aRuslan Ermilov2005-02-191-1/+6
| | | | | | | protection to alpha/include/exec.h. Notes: svn path=/head/; revision=142107
* - Implement osf1_emul_find() using kern_alternate_path(). This changesJohn Baldwin2005-02-183-308/+112
| | | | | | | | | | | | | | | | | the semantics in that the returned filename to use is now a kernel pointer rather than a user space pointer. This required changing the arguments to the CHECKALT*() macros some and changing the various system calls that used pathnames to use the kern_foo() functions that can accept kernel space filename pointers instead of calling the system call directly. - Use kern_open(), kern_stat(), kern_lstat(), kern_fstat(), kern_access(), kern_truncate(), kern_pathconf(), kern_execve(), kern_select(), kern_setitimer(), kern_getitimer(), kern_statfs(), and kern_fstatfs(). Silence on: alpha@ Notes: svn path=/head/; revision=142053
* Use LCONVPATHEXIST() rather than CHECKALTEXIST() and useJohn Baldwin2005-02-181-9/+14
| | | | | | | | | | exec_copyin_args(), kern_execve(), and exec_free_args() rather than execve() to eliminate stackgap use from Alpha's linux_execve(). Silence on: alpha@ Notes: svn path=/head/; revision=142052
* Backout previous change (disabling of security checks for signals deliveredMaxim Sobolev2005-02-131-1/+1
| | | | | | | | | in emulation layers), since it appears to be too broad. Requested by: rwatson Notes: svn path=/head/; revision=141815
* Split out kill(2) syscall service routine into user-level and kernel part, theMaxim Sobolev2005-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | former is callable from user space and the latter from the kernel one. Make kernel version take additional argument which tells if the respective call should check for additional restrictions for sending signals to suid/sugid applications or not. Make all emulation layers using non-checked version, since signal numbers in emulation layers can have different meaning that in native mode and such protection can cause misbehaviour. As a result remove LIBTHR from the signals allowed to be delivered to a suid/sugid application. Requested (sorta) by: rwatson MFC after: 2 weeks Notes: svn path=/head/; revision=141812
* Implement interrupt routing for DEC_KN20AA.Bernd Walter2005-02-101-35/+22
| | | | | | | | Tested by: wilko MFC after: 2 weeks Notes: svn path=/head/; revision=141596
* Since we are quite unlikely to ever face another platform whichPoul-Henning Kamp2005-02-061-18/+13
| | | | | | | | | | | | uses the i8237 without trying to emulate the PC architecture move the register definitions for the i8237 chip into the central include file for the chip, except for the PC98 case which is magic. Add new isa_dmatc() function which tells us as cheaply as possible if the terminal count has been reached for a given channel. Notes: svn path=/head/; revision=141391
* Finish the job of sorting all includes and fix the build by includingNate Lawson2005-02-061-24/+26
| | | | | | | | | malloc.h before proc.h on sparc64. Noticed by das@ Compiled on: alpha, amd64, i386, pc98, sparc64 Notes: svn path=/head/; revision=141378
* Sort includes a little so that bus.h comes before cpu.h (for device_t).Nate Lawson2005-02-041-3/+3
| | | | Notes: svn path=/head/; revision=141249
* Add an implementation of cpu_est_clockrate(9). This function estimates theNate Lawson2005-02-041-0/+9
| | | | | | | current clock frequency for the given CPU id in units of Hz. Notes: svn path=/head/; revision=141237
* add cpu_idle support for 21066A based lca systemsBernd Walter2005-01-314-1/+41
| | | | Notes: svn path=/head/; revision=141089
* o Split out kernel part of execve(2) syscall into two parts: one thatMaxim Sobolev2005-01-293-14/+9
| | | | | | | | | | | | | | copies arguments into the kernel space and one that operates completely in the kernel space; o use kernel-only version of execve(2) to kill another stackgap in linuxlator/i386. Obtained from: DragonFlyBSD (partially) MFC after: 2 weeks Notes: svn path=/head/; revision=140992
* Hopefully unbreak modules build.Ruslan Ermilov2005-01-291-1/+1
| | | | Notes: svn path=/head/; revision=140982
* Add bus_dmamap_load_mbuf_sg() to alpha.Scott Long2005-01-152-5/+42
| | | | Notes: svn path=/head/; revision=140316
* - Remove some OBE comments regarding cpu_exit(). cpu_exit() is no longerJohn Baldwin2005-01-141-7/+5
| | | | | | | | | | | the last action of kern_exit(). Instead, it is a MD callout to cleanup per-process state during exit. - Add notes of concern to Alpha and ia64 about the possible need to drop fp state in cpu_thread_exit() rather than in cpu_exit() since it is per-thread state rather than per-process. Notes: svn path=/head/; revision=140256
* These are no longer relevant. They are scripts for extracting hintsWarner Losh2005-01-071-116/+0
| | | | | | | | | from 4.x kernel config files. User's wishing to upgrade from 4.x to 6 will need to go through 5.x, or grab this script from there. These scripts will remain in RELENG_5... Notes: svn path=/head/; revision=139817
* These appear to be unused in our tree, so remove them.Warner Losh2005-01-051-66/+0
| | | | Notes: svn path=/head/; revision=139732
* Begin all license/copyright comments with /*- or #-Warner Losh2005-01-05114-128/+128
| | | | Notes: svn path=/head/; revision=139727
* o Use tab instead of spaces for puc(4) line.Jun Kuriyama2005-01-051-1/+1
| | | | | | | o Use capitalized "Ethernet" for consistency. Notes: svn path=/head/; revision=139699
* - make machine model list more comprehensive, the whole Alpha family treeWilko Bulte2005-01-012-51/+66
| | | | | | | | | | should now be present - clean up comment a bit MFC after: 1 week Notes: svn path=/head/; revision=139541
* Sync with i386 GENERIC some:John Baldwin2004-12-301-41/+46
| | | | | | | | | - Update comments to newer style (space after #) - Bring across various comment updates. - Add AHC_REG_PRETTY_PRINT, ADAPTIVE_GIANT, and rue(4). Notes: svn path=/head/; revision=139439