summaryrefslogtreecommitdiffstats
path: root/sys/pc98
Commit message (Collapse)AuthorAgeFilesLines
* MFi386: revision 1.517.kato2002-04-112-10/+18
|
* GC various bits and pieces of USERCONFIG from all over the place.phk2002-04-093-14/+0
|
* GC the "dumplo" variable, which is no longer used.phk2002-04-072-2/+0
| | | | A lot of sys/*/*/machdep.c seems not to be.
* Merged from sys/dev/syscons/syscons.c revisions 1.381 and 1.382.nyan2002-04-061-1/+6
|
* Merged from sys/isa/fd.c revision 1.228.nyan2002-04-062-2/+2
|
* Merged from sys/dev/sio/sio.c revisions 1.370 and 1.371.nyan2002-04-062-20/+108
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-044-6/+8
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Moved signal handling and rescheduling from userret() to ast() so thatbde2002-04-042-0/+4
| | | | | | | | | | | they aren't in the usual path of execution for syscalls and traps. The main complication for this is that we have to set flags to control ast() everywhere that changes the signal mask. Avoid locking in userret() in most of the remaining cases. Submitted by: luoqi (first part only, long ago, reorganized by me) Reminded by: dillon
* Dike out a highly insecure UCONSOLE option.ru2002-04-031-1/+0
| | | | | | TIOCCONS must be able to VOP_ACCESS() /dev/console to succeed. Obtained from: OpenBSD
* - Move the MI mutexes sched_lock and Giant from being declared in thejhb2002-04-022-20/+2
| | | | | | | | | | various machdep.c's to being declared in kern_mutex.c. - Add a new function mutex_init() used to perform early initialization needed for mutexes such as setting up thread0's contested lock list and initializing MI mutexes. Change the various MD startup routines to call this function instead of duplicating all the code themselves. Tested on: alpha, i386
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-018-21/+21
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* MFi386: revision 1.508.kato2002-03-312-16/+24
|
* MFi386: revision 1.506.nyan2002-03-302-8/+18
|
* MFi386: revision 1.507.kato2002-03-272-2/+2
|
* Compromise for critical*()/cpu_critical*() recommit. Cleanup the interruptdillon2002-03-275-10/+51
| | | | | | | | | | | | | | | | | | | disablement assumptions in kern_fork.c by adding another API call, cpu_critical_fork_exit(). Cleanup the td_savecrit field by moving it from MI to MD. Temporarily move cpu_critical*() from <arch>/include/cpufunc.h to <arch>/<arch>/critical.c (stage-2 will clean this up). Implement interrupt deferral for i386 that allows interrupts to remain enabled inside critical sections. This also fixes an IPI interlock bug, and requires uses of icu_lock to be enclosed in a true interrupt disablement. This is the stage-1 commit. Stage-2 will occur after stage-1 has stabilized, and will move cpu_critical*() into its own header file(s) + other things. This commit may break non-i386 architectures in trivial ways. This should be temporary. Reviewed by: core Approved by: core
* Push BIO_FORMAT into a local hack inside the floppy drivers wherephk2002-03-262-0/+2
| | | | it belongs.
* Merged from sys/dev/sio/sio.c revisions 1.366 and 1.369.nyan2002-03-252-4/+20
|
* Merged from sys/dev/syscons/syscons.c revision 1.379.nyan2002-03-251-0/+1
|
* Fix style.nyan2002-03-254-31/+23
|
* MFi386: revision 1.65.kato2002-03-201-5/+2
|
* Remove __P.kato2002-03-2017-215/+215
|
* Remove __P.kato2002-03-201-7/+7
|
* MFi386: revision 1.505 (remove __P.)kato2002-03-202-12/+12
|
* MFi386: revision 1.504.kato2002-03-202-20/+8
|
* MFi386: revision 1.503.kato2002-03-202-120/+46
|
* Use the dx register for the destination port address. A immediate portnyan2002-03-131-2/+5
| | | | | | | address of outb is only 8 bits. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) MFC after: 3 days
* MFi386: revision 1.502nyan2002-03-132-0/+8
|
* Free allocated buffer at siodetach().nyan2002-03-102-0/+8
| | | | MFC after: 3 days
* MFi386: revision 1.501nyan2002-03-102-2/+2
|
* - The pc98_ttspeedtab() function returns an error status instead of a divisor,nyan2002-03-082-32/+32
| | | | | | and sets a divisor to the third argument. - The second argument of the pc98_set_baud_rate() function is changed from int to u_int.
* MFi386: revision 1.125nyan2002-03-081-0/+20
|
* MFi386: revision 1.498.nyan2002-03-022-4/+4
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-1/+1
| | | | reference.
* Disksort will not "munge" requests, BIO_ORDERED or not, so removephk2002-02-222-8/+4
| | | | use of BIO_ORDERED.
* MFi386: revision 1.497nyan2002-02-202-2/+4
|
* Add bus_space_unmap() and bus_space_free() functions to releasenyan2002-02-182-0/+30
| | | | a bus_space_handle allocated by bus_space_subregion().
* - Split the routine to initialize a bus_space_handle into the separatenyan2002-02-172-0/+228
| | | | | | | function. - Only access a bus_space_handle if the resource type is SYS_RES_MEMORY or SYS_RES_IOPORT. - Add the bus_space_subregion supports.
* MFi386: revisions 1.334 and 1.335nyan2002-02-161-0/+1
|
* MFi386: revisions 1.495 and 1.496nyan2002-02-162-2/+6
|
* Fall through from AT_TYPE_DIRECT to AT_TYPE_CDROM.nyan2002-02-111-4/+7
| | | | | | | | Old ATAPI CD-ROM drives return 0 (direct-access) as the type of the device. (The ata driver has the same problem.) MFC after: 3 days
* Cosmetic changes.nyan2002-02-102-186/+190
|
* - Refine the iskanji1 function.nyan2002-02-102-104/+122
| | | | | | - Print continuous ascii characters at a time. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* Fixed mouse cursor on a console.nyan2002-02-102-12/+34
| | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* MFi386: revisions 1.493 and 1.494.nyan2002-02-082-2/+12
|
* Pre-KSE/M3 commit.julian2002-02-072-24/+22
| | | | | | | | | | this is a low-functionality change that changes the kernel to access the main thread of a process via the linked list of threads rather than assuming that it is embedded in the process. It IS still embeded there but remove all teh code that assumes that in preparation for the next commit which will actually move it out. Reviewed by: peter@freebsd.org, gallatin@cs.duke.edu, benno rice,
* Use osigreturn(2) instead of sigreturn(2) plus broken magic for returningbde2002-02-032-18/+0
| | | | | | | | | | | | | | | | | | from old signal handlers. This is simpler and faster, and fixes (new) sigreturn(2) when %eip in the new signal context happens to match the magic value (0x1d516). 0x1d516 is below the default ELF text section, so this probably never broken anything in practice. locore.s: In addition, don't build the signal trampoline for old signal handlers when it is not used. alpha: Not fixed, but seems to be even less broken in practice due to more advanced magic. A false match occurs for register #32 in mc_regs[]. Since there is no hardware register #32, a false match is only possible for direct calls to sigreturn(2) that happen to have the magic number in the spare mc_regs[32] field.
* Improve the change in the previous commit: use a stub for osigreturn()bde2002-02-032-0/+8
| | | | when it is not really used instead of unconditionalizing all of it.
* Compile osigreturn() unconditionally since it will always be needed onbde2002-02-012-4/+0
| | | | | | | | | | | | | | | | | | some arches and the syscall table is machine-independent. It was (bogusly) conditional on COMPAT_43, so this usually makes no difference. ia64: in addition: - replace the bogus cloned comment before osigreturn() by a correct one. osigreturn() is just a stub fo ia64's. - fix the formatting of cloned comment before sigreturn(). - fix the return code. use nosys() instead of returning ENOSYS to get the same semantics as if the syscall is not in the syscall table. Generating SIGSYS is actually correct here. - fix style bugs. powerpc: copy the cleaned up ia64 stub. This mainly fixes a bogus comment. sparc64: copy the cleaned up the ia64 stub, since there was no stub before.
* MFi386: revision 1.489.nyan2002-01-312-26/+16
|
* Changed iskanji[12] to inline functions.nyan2002-01-312-350/+344
|
OpenPOWER on IntegriCloud