summaryrefslogtreecommitdiffstats
path: root/sys/pc98
Commit message (Collapse)AuthorAgeFilesLines
* Add in linsysfs. A linux 2.6 like sys filesystem to pacify the Linuxambrisko2006-05-091-0/+4
| | | | | | | LSI MegaRAID SAS utility. Sponsored by: IronPort Systems Man page help from: brueffer
* Remove unneeded include.nyan2006-05-084-6/+0
|
* - Move defines for PC-98 machine type from pc98/cbus/cbus.h intonyan2006-05-082-29/+17
| | | | | | pc98/pc98/pc98_machdep.h. - Fix PC98_SYSTEM_PARAMETER_SIZE. - Remove unused defines.
* Add the ath and the wlan crypto support.nyan2006-05-082-0/+14
|
* Rewrite of puc(4). Significant changes are:marcel2006-04-281-2/+0
| | | | | | | | | | | | | | | | | | | | o Properly use rman(9) to manage resources. This eliminates the need to puc-specific hacks to rman. It also allows devinfo(8) to be used to find out the specific assignment of resources to serial/parallel ports. o Compress the PCI device "database" by optimizing for the common case and to use a procedural interface to handle the exceptions. The procedural interface also generalizes the need to setup the hardware (program chipsets, program clock frequencies). o Eliminate the need for PUC_FASTINTR. Serdev devices are fast by default and non-serdev devices are handled by the bus. o Use the serdev I/F to collect interrupt status and to handle interrupts across ports in priority order. o Sync the PCI device configuration to include devices found in NetBSD and not yet merged to FreeBSD. o Add support for Quatech 2, 4 and 8 port UARTs. o Add support for a couple dozen Timedia serial cards as found in Linux.
* o Move ISA specific code from ppc.c to ppc_isa.c -- a bus front-marcel2006-04-242-2491/+0
| | | | | | | | | | | | | | end for isa(4). o Add a seperate bus frontend for acpi(4) and allow ISA DMA for it when ISA is configured in the kernel. This allows acpi(4) attachments in non-ISA configurations, as is possible for ia64. o Add a seperate bus frontend for pci(4) and detect known single port parallel cards. o Merge PC98 specific changes under pc98/cbus into the MI driver. The changes are minor enough for conditional compilation and in this form invites better abstraction. o Have ppc(4) usabled on all platforms, now that ISA specifics are untangled enough.
* Add minidump.h for pc98.nyan2006-04-211-0/+6
|
* MFi386: revision 1.625.nyan2006-04-211-2/+15
|
* Don't allow userland to set hardware watch points on kernel memory at all.jhb2006-03-141-23/+20
| | | | | | | | | | | | | | Previously, we tried to allow this only for root. However, we were calling suser() on the *target* process rather than the current process. This means that if you can ptrace() a process running as root you can set a hardware watch point in the kernel. In practice I think you probably have to be root in order to pass the p_candebug() checks in ptrace() to attach to a process running as root anyway. Rather than fix the suser(), I just axed the entire idea, as I can't think of any good reason _at all_ for userland to set hardware watch points for KVM. MFC after: 3 days Also thinks hardware watch points on KVM from userland are bad: bde, rwatson
* MFi386: revision 1.1220.nyan2006-03-041-3/+2
|
* - Use bus_setup_intr() and bus_teardown_intr() to register device driverjhb2006-02-224-9/+6
| | | | | | | | | | interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR(). Uses of the BUS_*() versions in the implementation of foo_intr methods in bus drivers were not changed. Mostly this just means that some drivers might start printing diagnostic messages like [FAST] when appropriate as well as honoring mpsafenet=0. - Fix two more of the ppbus drivers' identify routines to function correctly in the mythical case of a machine with more than one ppbus.
* MFi386: revision 1.622.nyan2006-02-091-1/+2
| | | | | | | > Clear carry flag in get_mcontext so that setcontext does not > return a bogus error. MFC after: 3 days
* The asr driver was moved to NOTES for i386. So 'nodevice asr' is notnyan2006-02-091-1/+0
| | | | needed anymore.
* MFi386: Enable the ce(4).nyan2006-02-021-0/+4
|
* Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43)phk2006-01-101-0/+1
| | | | | | | | | | | | to COMPAT_43TTY. Add COMPAT_43TTY to NOTES and */conf/GENERIC Compile tty_compat.c only under the new option. Spit out #warning "Old BSD tty API used, please upgrade." if ioctl_compat.h gets #included from userland.
* By popular demand, move __HAVE_ACPI and __PCI_REROUTE_INTERRUPT intoimp2006-01-092-2/+2
| | | | | | | | param.h. Per request, I've placed these just after the _NO_NAMESPACE_POLLUTION ifndef. I've not renamed anything yet, but may since we don't need the __. Submitted by: bde, jhb, scottl, many others.
* Define __HAVE_ACPI and/or __PCI_REROUTE_INTERRUPT, as appropriate forimp2006-01-011-0/+2
| | | | | each platform. These will be used in the pci code in preference to the complicated #ifdefs we have there now.
* MFi386: revision 1.621nyan2005-12-261-3/+0
|
* Fix build error.nyan2005-12-232-0/+2
|
* Tweak how the MD code calls the fooclock() methods some. Instead ofjhb2005-12-222-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | passing a pointer to an opaque clockframe structure and requiring the MD code to supply CLKF_FOO() macros to extract needed values out of the opaque structure, just pass the needed values directly. In practice this means passing the pair (usermode, pc) to hardclock() and profclock() and passing the boolean (usermode) to hardclock_cpu() and hardclock_process(). Other details: - Axe clockframe and CLKF_FOO() macros on all architectures. Basically, all the archs were taking a trapframe and converting it into a clockframe one way or another. Now they can just extract the PC and usermode values directly out of the trapframe and pass it to fooclock(). - Renamed hardclock_process() to hardclock_cpu() as the latter is more accurate. - On Alpha, we now run profclock() at hz (profhz == hz) rather than at the slower stathz. - On Alpha, for the TurboLaser machines that don't have an 8254 timecounter, call hardclock() directly. This removes an extra conditional check from every clock interrupt on Alpha on the BSP. There is probably room for even further pruning here by changing Alpha to use the simplified timecounter we use on x86 with the lapic timer since we don't get interrupts from the 8254 on Alpha anyway. - On x86, clkintr() shouldn't ever be called now unless using_lapic_timer is false, so add a KASSERT() to that affect and remove a condition to slightly optimize the non-lapic case. - Change prototypeof arm_handler_execute() so that it's first arg is a trapframe pointer rather than a void pointer for clarity. - Use KCOUNT macro in profclock() to lookup the kernel profiling bucket. Tested on: alpha, amd64, arm, i386, ia64, sparc64 Reviewed by: bde (mostly)
* Enable the cs and disable the amdsmb and nfsmb on pc98.nyan2005-12-221-1/+2
|
* Move device 'cs' into i386/pc98 specific NOTES. It is broken on ppcimp2005-12-201-0/+2
| | | | | | because it uses i386 specific calls. Maybe it could be added to amd64, but I'm not so sure it would work there so I've not added it there.
* Merged from sys/dev/sio/sio.c revision 1.463.nyan2005-12-181-0/+1
|
* Switch MACHINE to "pc98" on FreeBSD/pc98.nyan2005-12-081-2/+27
| | | | | | Add copyright. Approved by: FreeBSD/pc98 development team.
* cpp(1) only understand integer arithmetical expressions, soru2005-12-061-2/+1
| | | | | | _MACHINE == i386 test always succeeds, even on non-i386 (both sides of expressions become 0). Remove the comment since _MACHINE and _MACHINE_ARCH are going away.
* Fix -Wundef warnings from compiling GENERIC and LINT kernels ofru2005-12-062-4/+4
| | | | all architectures.
* Fix -Wundef warnings found when compiling i386 LINT, GENERIC andru2005-12-052-3/+3
| | | | custom kernels.
* MFi386: revision 1.1215 (add savagedrm).nyan2005-11-301-0/+1
|
* - Allow duplicate "machine" directives with the same arguments.ru2005-11-273-9/+1
| | | | - Move existing "machine" directives to DEFAULTS.
* Add missing "struct" in i386/i386/machdep.c,v 1.497 by deischen@.ru2005-11-241-1/+1
|
* Garbage collect machine/smptests.h now that it is empty and no longer used.jhb2005-11-221-6/+0
|
* Don't enable PUC_FASTINTR by default in the source. Instead, enable itjhb2005-11-211-0/+2
| | | | | | | | | | | via the DEFAULTS kernel configs. This allows folks to turn it that option off in the kernel configs if desired without having to hack the source. This is especially useful since PUC_FASTINTR hangs the kernel boot on my ultra60 which has two uart(4) devices hung off of a puc(4) device. I did not enable PUC_FASTINTR by default on powerpc since powerpc does not currently allow sharing of INTR_FAST with non-INTR_FAST like the other archs.
* MFi386: Remove obsolete options.nyan2005-11-091-1/+0
|
* Move the isa, npx, mem and io devices and the PC98 option from GENERICnyan2005-10-282-7/+19
| | | | into DEFAULTS.
* Catch up with new interrupt handling code.ru2005-10-261-2/+2
|
* Rename the KDB_STOP_NMI kernel option to STOP_NMI and make it apply to alljhb2005-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | IPI_STOP IPIs. - Change the i386 and amd64 MD IPI code to send an NMI if STOP_NMI is enabled if an attempt is made to send an IPI_STOP IPI. If the kernel option is enabled, there is also a sysctl to change the behavior at runtime (debug.stop_cpus_with_nmi which defaults to enabled). This includes removing stop_cpus_nmi() and making ipi_nmi_selected() a private function for i386 and amd64. - Fix ipi_all(), ipi_all_but_self(), and ipi_self() on i386 and amd64 to properly handle bitmapped IPIs as well as IPI_STOP IPIs when STOP_NMI is enabled. - Fix ipi_nmi_handler() to execute the restart function on the first CPU that is restarted making use of atomic_readandclear() rather than assuming that the BSP is always included in the set of restarted CPUs. Also, the NMI handler didn't clear the function pointer meaning that subsequent stop and restarts could execute the function again. - Define a new macro HAVE_STOPPEDPCBS on i386 and amd64 to control the use of stoppedpcbs[] and always enable it for i386 and amd64 instead of being dependent on KDB_STOP_NMI. It works fine in both the NMI and non-NMI cases.
* Eliminate two unused arguments to ttycreate().phk2005-10-161-1/+1
|
* Reduce diffs from i386/i386/machdep.cnyan2005-10-161-9/+5
|
* Merge over the remaining changes from i386 of the ksiginfo_t changes sojhb2005-10-141-43/+21
| | | | | | that this compiles. Pointy hat to: davidxu
* Remove the sx(4) driver at the request of the author. The authorjhb2005-10-141-3/+0
| | | | | | | | | originally wrote it for 4.x and hasn't really had the time to fully update it to 5.x and later. Also, the author doesn't use the hardware anymore as well. If someone does need this driver they can always resurrect it from the Attic. Requested by: Frank Mayhar frank at exit dot com
* 1. Change prototype of trapsignal and sendsig to use ksiginfo_t *, mostdavidxu2005-10-141-17/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes in MD code are trivial, before this change, trapsignal and sendsig use discrete parameters, now they uses member fields of ksiginfo_t structure. For sendsig, this change allows us to pass POSIX realtime signal value to user code. 2. Remove cpu_thread_siginfo, it is no longer needed because we now always generate ksiginfo_t data and feed it to libpthread. 3. Add p_sigqueue to proc structure to hold shared signals which were blocked by all threads in the proc. 4. Add td_sigqueue to thread structure to hold all signals delivered to thread. 5. i386 and amd64 now return POSIX standard si_code, other arches will be fixed. 6. In this sigqueue implementation, pending signal set is kept as before, an extra siginfo list holds additional siginfo_t data for signals. kernel code uses psignal() still behavior as before, it won't be failed even under memory pressure, only exception is when deleting a signal, we should call sigqueue_delete to remove signal from sigqueue but not SIGDELSET. Current there is no kernel code will deliver a signal with additional data, so kernel should be as stable as before, a ksiginfo can carry more information, for example, allow signal to be delivered but throw away siginfo data if memory is not enough. SIGKILL and SIGSTOP have fast path in sigqueue_add, because they can not be caught or masked. The sigqueue() syscall allows user code to queue a signal to target process, if resource is unavailable, EAGAIN will be returned as specification said. Just before thread exits, signal queue memory will be freed by sigqueue_flush. Current, all signals are allowed to be queued, not only realtime signals. Earlier patch reviewed by: jhb, deischen Tested on: i386, amd64
* Polling is now configured with help of ifconfig(8), not sysctl.glebius2005-10-071-4/+4
| | | | Prodded by: maxim
* Use 'PC Card'nyan2005-09-301-2/+2
|
* Switch from OLDCARD to NEWCARD on pc98.nyan2005-09-273-7/+6
|
* Remove references to OLDCARD.imp2005-09-252-16/+1
|
* Introduce a kernel config for the Mandatory Access Control framework.csjp2005-09-181-0/+28
| | | | | | | | This kernel config briefly describes some of the major MAC policies available on FreeBSD. The hope is that this will raise the awareness about MAC and get more people interested. Discussed with: scottl
* Add some defines for EPSON machines and use them.nyan2005-09-143-12/+29
|
* Remove EPSON PC-386 note A/W/AE/WR support.nyan2005-09-145-95/+10
|
* Remove unused functions.nyan2005-09-131-39/+0
|
* Remove EPSON_NRDISK support.nyan2005-09-131-177/+2
|
OpenPOWER on IntegriCloud