summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/pcrtc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded includes of sys/ipl.h and machine/ipl.h.jhb2001-05-151-1/+0
|
* Merged from sys/i386/isa/clock.c revisions 1.172 and 1.173.kato2001-05-021-1/+15
|
* Merged from sys/i386/isa/clock.c revision 1.171.nyan2001-04-011-3/+1
|
* Merged from sys/i386/isa/clock.c revision 1.170.kato2001-02-211-6/+1
|
* Merged from sys/i386/isa/clock.c revision 1.169.kato2001-02-131-8/+8
|
* Change and clean the mutex lock interface.bmilekic2001-02-091-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtx_enter(lock, type) becomes: mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks) mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized) similarily, for releasing a lock, we now have: mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN. We change the caller interface for the two different types of locks because the semantics are entirely different for each case, and this makes it explicitly clear and, at the same time, it rids us of the extra `type' argument. The enter->lock and exit->unlock change has been made with the idea that we're "locking data" and not "entering locked code" in mind. Further, remove all additional "flags" previously passed to the lock acquire/release routines with the exception of two: MTX_QUIET and MTX_NOSWITCH The functionality of these flags is preserved and they can be passed to the lock/unlock routines by calling the corresponding wrappers: mtx_{lock, unlock}_flags(lock, flag(s)) and mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN locks, respectively. Re-inline some lock acq/rel code; in the sleep lock case, we only inline the _obtain_lock()s in order to ensure that the inlined code fits into a cache line. In the spin lock case, we inline recursion and actually only perform a function call if we need to spin. This change has been made with the idea that we generally tend to avoid spin locks and that also the spin locks that we do have and are heavily used (i.e. sched_lock) do recurse, and therefore in an effort to reduce function call overhead for some architectures (such as alpha), we inline recursion for this case. Create a new malloc type for the witness code and retire from using the M_DEV type. The new type is called M_WITNESS and is only declared if WITNESS is enabled. Begin cleaning up some machdep/mutex.h code - specifically updated the "optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently need those. Finally, caught up to the interface changes in all sys code. Contributors: jake, jhb, jasone (in no particular order)
* Convert mca (microchannel bus support) from something that we countpeter2001-01-291-3/+3
| | | | (bogus) to something that we test for the presence of.
* Remove MUTEX_DECLARE() and MTX_COLD. Instead, postpone full mutexjasone2001-01-211-1/+1
| | | | | | | | initialization until after malloc() is safe to call, then iterate through all mutexes and complete their initialization. This change is necessary in order to avoid some circular bootstrapping dependencies.
* Convert apm from a bogus 'count' into a plain option. Clean out somepeter2001-01-191-3/+3
| | | | other cruft from the files.alpha and files.ia64 that were related to this.
* Merged from sys/i386/isa/clock.c revision 1.164.kato2000-12-051-0/+5
|
* Catch up to the new swi code.jhb2000-10-251-4/+0
| | | | Noticed by: phk
* - Overhaul the software interrupt code to use interrupt threads for eachjhb2000-10-251-1/+1
| | | | | | | | | | | | | | | | | | | type of software interrupt. Roughly, what used to be a bit in spending now maps to a swi thread. Each thread can have multiple handlers, just like a hardware interrupt thread. - Instead of using a bitmask of pending interrupts, we schedule the specific software interrupt thread to run, so spending, NSWI, and the shandlers array are no longer needed. We can now have an arbitrary number of software interrupt threads. When you register a software interrupt thread via sinthand_add(), you get back a struct intrhand that you pass to sched_swi() when you wish to schedule your swi thread to run. - Convert the name of 'struct intrec' to 'struct intrhand' as it is a bit more intuitive. Also, prefix all the members of struct intrhand with 'ih_'. - Make swi_net() a MI function since there is now no point in it being MD. Submitted by: cp
* Merged from sys/i386/isa/clock.c revision 1.160.kato2000-10-201-3/+3
|
* Fixed warnings.nyan2000-10-151-0/+2
|
* Merged from sys/i386/isa/clock.c revisions 1.158 and 1.159.kato2000-10-061-116/+53
|
* Merged from sys/i386/isa/clock.c revision 1.157.kato2000-09-151-7/+7
|
* Merged from sys/i386/isa/clock.c revision 1.156.kato2000-09-071-54/+109
|
* Merged from sys/i386/isa/clock.c revision 1.155.kato2000-08-041-1/+6
|
* Previous commit changing SYSCTL_HANDLER_ARGS violated KNF.phk2000-07-041-2/+2
| | | | Pointed out by: bde
* Style police catches up with rev 1.26 of src/sys/sys/sysctl.h:phk2000-07-031-2/+2
| | | | | | | | Sanitize SYSCTL_HANDLER_ARGS so that simplistic tools can grog our sources: -sysctl_vm_zone SYSCTL_HANDLER_ARGS +sysctl_vm_zone (SYSCTL_HANDLER_ARGS)
* Merged from sys/i386/isa/clock.c revision 1.152.kato2000-06-281-0/+48
|
* Merged from sys/i386/isa/{clock.c,npx.c} revisions 1.151 and 1.82,kato2000-06-061-1/+1
| | | | respectively.
* Merged from sys/i386/isa/clock.c and sys/isa/sio.c revisions 1.150 andkato2000-03-231-6/+7
| | | | 1.292, respectively.
* Synced with sys/i386/isa/clock.c rev 1.149.kato2000-01-051-9/+27
|
* Synced with sys/i386/isa/clock.c rev 1.148. This is a cosmetic changekato1999-12-271-4/+16
| | | | | because PC-98 doesn't have RTC and RTC related code is included by `#ifndef PC98' and `#endif'.
* merge i386/isa/clock.c 1.147: don't talk about register_intr in comments.peter1999-12-201-1/+1
|
* Sync with sys/i386/isa/clock.c revision 1.146.nyan1999-11-031-0/+22
|
* Merge from sys/i386/isa/clock.c revision 1.145.kato1999-09-041-0/+10
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Merge the cons.c and cons.h to the best of my ability. alpha may orphk1999-08-091-2/+2
| | | | may not compile, I can't test it.
* Sync with sys/i386/isa/clock.c revision up to 1.142.kato1999-07-301-11/+6
|
* Sync with sys/i386/isa/clock.c revision up to 1.140.kato1999-07-261-37/+15
| | | | This commit may break 8MHz system clock mode.
* Sync with sys/i386/isa/clock.c revision 1.138.kato1999-06-281-1/+3
|
* Sync with sys/i386/isa/clock.c revision 1.137.kato1999-06-241-5/+7
|
* Sync with sys/i386/isa/clock.c revision 1.136.kato1999-06-011-22/+24
|
* Sync with sys/i386/isa/clock.c revision 1.133.kato1999-05-101-2/+2
|
* Sync with sys/i386/isa/clock.c revision 1.132.kato1999-04-281-1/+3
|
* Sync with sys/i386/isa/clock.c revision 1.131.kato1999-04-211-16/+12
|
* The "easy" fixe for compiling the kernel -Wunused: remove unreferencedkato1999-01-281-1/+3
| | | | local variable.
* Sync with sys/i386/isa/clock.c revision 1.129.kato1998-12-171-22/+22
|
* Sync with sys/i386/isa/clock.c revision 1.128.kato1998-10-231-11/+11
|
* Fix for wrap arround.kato1998-10-131-2/+2
|
* Implement TSC clock calibration for PC-98.kato1998-10-131-4/+75
|
* Sync with sys/i386/isa/clock.c revision 1.127.kato1998-09-221-3/+3
|
* Sync with sys/i386/isa/clock.c revision 1.126.kato1998-09-201-6/+21
|
* Sync with sys/i386/isa/clock.c revision 1.125.kato1998-09-081-3/+3
|
* Sync with sys/i386/isa/clock.c revision 1.124.kato1998-06-101-6/+6
|
* Sync with sys/i386/isa/clock.c revision 1.123.kato1998-06-081-1/+3
|
* Sync with sys/i386/isa/clock.c revision 1.122.kato1998-06-071-5/+5
|
* Sync with sys/i386/isa/clock.c revision 1.121.kato1998-05-281-3/+3
|
OpenPOWER on IntegriCloud