summaryrefslogtreecommitdiffstats
path: root/sys/pc98
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merged from sys/dev/sio/{sio.c,sio_isa.c} revisions 1.363 and 1.5,nyan2002-01-314-312/+250
| | | | respectively.
* MFi386: revision 1.180nyan2002-01-313-0/+15
|
* MFi386: revision 1.52nyan2002-01-311-10/+13
|
* MFi386: revision 1.64nyan2002-01-181-3/+1
|
* Merged from sys/dev/sio/sio.c revisions from 1.360 to 1.362.nyan2002-01-182-4/+12
|
* MFi386: revision 1.487nyan2002-01-182-0/+2
|
* Clear the single-step flag for signal handlers. This fixes bogus tracebde2002-01-102-12/+8
| | | | | | | | | | | | | | | | traps on the first instruction of signal handlers. In trap.c:syscall(), fake a trace trap if the single-step flag was set on entry to the kernel, not if it will be set on exit from the kernel. This fixes bogus trace traps after the last instruction of signal handlers. gdb-4.18 (the version in FreeBSD) still has problems with the program in the PR. These seem to be due to bugs in gdb and not in FreeBSD, and are fixed in gdb-5.1 (the distribution version). PR: 33262 Tested by: k Macy <kip_macy@yahoo.com> MFC after: 1 day
* Merged from sys/dev/sio/sio.c revisions 1.354 and 1.358.nyan2002-01-062-6/+24
|
* Change the preemption code for software interrupt thread schedules andjhb2002-01-052-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mutex releases to not require flags for the cases when preemption is not allowed: The purpose of the MTX_NOSWITCH and SWI_NOSWITCH flags is to prevent switching to a higher priority thread on mutex releease and swi schedule, respectively when that switch is not safe. Now that the critical section API maintains a per-thread nesting count, the kernel can easily check whether or not it should switch without relying on flags from the programmer. This fixes a few bugs in that all current callers of swi_sched() used SWI_NOSWITCH, when in fact, only the ones called from fast interrupt handlers and the swi_sched of softclock needed this flag. Note that to ensure that swi_sched()'s in clock and fast interrupt handlers do not switch, these handlers have to be explicitly wrapped in critical_enter/exit pairs. Presently, just wrapping the handlers is sufficient, but in the future with the fully preemptive kernel, the interrupt must be EOI'd before critical_exit() is called. (critical_exit() can switch due to a deferred preemption in a fully preemptive kernel.) I've tested the changes to the interrupt code on i386 and alpha. I have not tested ia64, but the interrupt code is almost identical to the alpha code, so I expect it will work fine. PowerPC and ARM do not yet have interrupt code in the tree so they shouldn't be broken. Sparc64 is broken, but that's been ok'd by jake and tmm who will be fixing the interrupt code for sparc64 shortly. Reviewed by: peter Tested on: i386, alpha
* Disabled the olpt driver temporarily to avoid 'repeat make_dev' panic.nyan2001-12-311-1/+1
|
* MFi386: revision 1.178nyan2001-12-223-21/+12
|
* MFi386: revision 1.124nyan2001-12-221-2/+96
|
* Merged from sys/dev/syscons/syscons.c revision 1.377.nyan2001-12-221-12/+4
|
* cosmetic changes.nyan2001-12-222-44/+40
|
* MFi386: revision 1.179nyan2001-12-223-0/+30
|
* MFi386: revision 1.486nyan2001-12-222-6/+4
|
* Merged from sys/isa/{fd.c,fdreg.h} revisions 1.222 and 1.15, respectively.nyan2001-12-164-742/+1182
|
* Enable UFS_DIRHASH in the GENERIC kernel.iedowse2001-12-141-0/+1
| | | | | | Suggested by: silby Reviewed by: dillon MFC after: 5 days
* Fixed to draw mouse cursor. The syscons driver for PC98 uses differentnyan2001-12-144-18/+10
| | | | | | | attributes from i386. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) MFC after: 3 days
* MFi386: revision 1.485 (the previous commit is not completely)nyan2001-12-122-22/+26
|
* Overhaul the per-CPU support a bit:jhb2001-12-112-18/+16
| | | | | | | | | | | | | | | | | | | | | | | | | - The MI portions of struct globaldata have been consolidated into a MI struct pcpu. The MD per-CPU data are specified via a macro defined in machine/pcpu.h. A macro was chosen over a struct mdpcpu so that the interface would be cleaner (PCPU_GET(my_md_field) vs. PCPU_GET(md.md_my_md_field)). - All references to globaldata are changed to pcpu instead. In a UP kernel, this data was stored as global variables which is where the original name came from. In an SMP world this data is per-CPU and ideally private to each CPU outside of the context of debuggers. This also included combining machine/globaldata.h and machine/globals.h into machine/pcpu.h. - The pointer to the thread using the FPU on i386 was renamed from npxthread to fpcurthread to be identical with other architectures. - Make the show pcpu ddb command MI with a MD callout to display MD fields. - The globaldata_register() function was renamed to pcpu_init() and now init's MI fields of a struct pcpu in addition to registering it with the internal array and list. - A pcpu_destroy() function was added to remove a struct pcpu from the internal array and list. Tested on: alpha, i386 Reviewed by: peter, jake
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-102-22/+22
| | | | also don't use ANSI string concatenation.
* Allow maxusers to be specified as 0 in the kernel config, which willdillon2001-12-093-3/+5
| | | | | | | cause the system to auto-size to between 32 and 512 depending on the amount of memory. MFC after: 1 week
* PROCFS requires PSEUDOFS.des2001-12-041-1/+2
|
* Split the sio driver for pc98 into bus front end and back end.nyan2001-11-266-552/+324
| | | | (merged from the files in sys/dev/sio)
OpenPOWER on IntegriCloud