summaryrefslogtreecommitdiffstats
path: root/sys/pc98
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* MFi386: revision 1.1204.nyan2005-07-211-1/+1
|
* Add recently invented COMPAT_FREEBSD5 option.kensmith2005-07-141-0/+1
| | | | MFC after: 3 days
* Fixup some more fallout from the lapic/i8254 changes:jhb2005-07-132-48/+40
| | | | | | | | | | | | - Make sure timer0_max_count is set to a correct value in the lapic case. - Revert i8254_restore() to explicitly reprogram timer 0 rather than calling set_timer_freq() to do it. set_timer_freq() only reprograms the counter if the max count changes which it never does on resume. This unbreaks suspend/resume for several people. Tested by: marks, others Reviewed by: bde MFC after: 3 days
* MFi386: revision 1.617.nyan2005-07-131-1/+1
|
* Remove a || 1 that crept into the i8254 commit and was subsequentlyjhb2005-07-052-2/+2
| | | | | | | | | copied and pasted. I had actually tested without this change in my trees as had the other testers. Reported by: bde, Rostislav Krasny rosti dot bsd at gmail dot com Approved by: re (scottl) Pointy hat to: jhb
* MFi386: r1.221 (Use a simpler implementation for the i8254 timecounter).nyan2005-07-032-24/+70
| | | | Approved by: re (scottl)
* Remove the CPU_ENABLE_SSE option from the i386 and pc98 architectures,delphij2005-07-022-8/+1
| | | | | | | | | | | | | | | | | | | | | | | as they are already default for I686_CPU for almost 3 years, and CPU_DISABLE_SSE always disables it. On the other hand, CPU_ENABLE_SSE does not work for I486_CPU and I586_CPU. This commit has: - Removed the option from conf/options.* - Removed the option and comments from MD NOTES files - Simplified the CPU_ENABLE_SSE ifdef's so they don't deal with CPU_ENABLE_SSE from kernel configuration. (*) For most users, this commit should be largely no-op. If you used to place CPU_ENABLE_SSE into your kernel configuration for some reason, it is time to remove it. (*) The ifdef's of CPU_ENABLE_SSE are not removed at this point, since we need to change it to !defined(CPU_DISABLE_SSE) && defined(I686_CPU), not just !defined(CPU_DISABLE_SSE), if we really want to do so. Discussed on: -arch Approved by: re (scottl)
* MFi386: revision 1.615 (change kernel crashdump format to ELF).nyan2005-06-301-20/+38
| | | | Approved by: re (scottl)
* Connect reiserfs build to every platforms, not only i386 and pc98.dumbbell2005-06-211-6/+0
| | | | | Reviewed by: mux (mentor) Approved by: re (dougb)
* Add .cvsignore files just like in sys/<arch>/compiled, this keeps CVS fromobrien2005-06-201-0/+1
| | | | | | questing kernel config files not in CVS. Approved by: re(kensmith)
* Sync with syscons update (Add new member to struct sc_rndr_sw).nyan2005-05-291-0/+2
|
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386nyan2005-05-292-8/+0
| | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr)
* Change the spkr_set_pitch() function to a macro to fix low level profiling.nyan2005-05-281-7/+5
|
* MFi386: Add ReiserFSnyan2005-05-251-0/+6
|
* Add new ral(4) and ural(4) drivers.damien2005-05-241-0/+2
| | | | Approved by: silby (mentor)
* Fix my copyright.nyan2005-05-143-3/+4
|
OpenPOWER on IntegriCloud