summaryrefslogtreecommitdiffstats
path: root/sys/amd64
Commit message (Collapse)AuthorAgeFilesLines
* Silence warnings.eivind1999-01-123-9/+9
|
* Silence warnings by removing unused convenience function andeivind1999-01-121-16/+3
| | | | globalizing debugging functions.
* The first stage of console driver reorganization: activate newyokota1999-01-111-5/+13
| | | | | | | | | | | | | keyboard and video card drivers. Because of the changes, you are required to update your kernel configuration file now! The files in sys/dev/syscons are still i386-specific (but less so than before), and won't compile for alpha and PC98 yet. syscons still directly accesses the video card registers here and there; this will be rectified in the later stages.
* Oops --<, replace 1.216 with a version that actually check pv_entries (anddt1999-01-091-3/+5
| | | | | | | | | was tested for month or two in production). Noticed by: Stephen McKay Stephen also suggested to remove the complication at all. I don't do it as it would be backout of a large part of 1.190 (from 1998/03/16)...
* Add driver support (and man page) for PCI fast ethernet cards basedwpaul1999-01-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | on the ASIX AX88140A chip. Update /sys/conf/files, RELNOTES.TXT, /sys/i388/i386/userconfig.c, sysinstall/devices.c, GENERIC and LINT accordingly. For now, the only board that I know of that uses this chip is the Alfa Inc. GFC2204. (Its predecessor, the GFC2202, was a DEC tulip card.) Thanks again to Ulf for obtaining the board for me. If anyone runs across another, please feel free to update the man page and/or the release notes. (The same applies for the other drivers.) FreeBSD should now have support for all of the DEC tulip workalike chipsets currently on the market (Macronix, Lite-On, Winbond, ASIX). And unless I'm mistaken, it should also have support for all PCI fast ethernet chipsets in general (except maybe the SMC FEAST chip, which nobody seems to ever use, including SMC). Now if only we could convince 3Com, Intel or whoever to cough up some documentation for gigabit ethernet hardware. Also updated RELNOTEX.TXT to mention that the SVEC PN102TX is supported by the Macronix driver (assuming you actually have an SVEC PN102TX with a Macronix chip on it; I tried to order a PN102TX once and got a box labeled 'Hawking Technology PN102TX' that had a VIA Rhine board inside it).
* Removed a stray label that broke compiling in the (elf && profiling) case.bde1999-01-092-4/+2
| | | | | PR: 9369 Submitted by: Assar Westerlund <assar@sics.se>
* Fixed switching between consoles (sc0, vt0 or sioN) in userconfig.bde1999-01-091-1/+2
| | | | Broken in: rev.1.315
* Don't put operands in clobber lists, since this is dubious for oldbde1999-01-091-8/+8
| | | | | | | | versions of gcc and broken for current versions of egcs. Cleaned up the asm statement for do_cpuid() a little. Submitted by: "John S. Dyson" <dyson@iquest.net> but rewritten by me
* Don't put operands in clobber lists, since this is dubious for oldbde1999-01-091-13/+16
| | | | | | versions of gcc and broken for current versions of egcs. Submitted by: "John S. Dyson" <dyson@iquest.net> but rewritten by me
* Fixed some style bugs. Clarified a comment.bde1999-01-081-13/+12
|
* Unspammed includes in <machine/cpufunc.h> in the !SMP case. Partiallybde1999-01-083-12/+21
| | | | unspammed them in the SMP case.
* Moved declarations related to copying and zeroing to the right place.bde1999-01-085-32/+20
|
* Allocate kernel page table object (kptobj) before any kmem_alloc calls.luoqi1999-01-081-5/+6
| | | | | | On a system with a large amount of ram (e.g. 2G), allocation of per-page data structures (512K physical pages) could easily bust the initial kernel page table (36M), and growth of kernel page table requires kptobj.
* Make pmap_ts_referenced check more than 1 pv_entry. (One should be carefulldt1999-01-071-5/+5
| | | | when move elements to the tail of a list in a loop...)
* Remove a hard-coded table of kernel console I/O functions exportedyokota1999-01-071-0/+3
| | | | | | | | | | from sc, vt and sio drivers. Use instead a linker_set to collect them. Staticize ??cngetc(), ??cnputc(), etc functions in sc and vt drivers. We must still have siocngetc() and siocnputc() as globals because they are directly referred to by i386-gdbstub.c :-( Oked by: bde
* Add (but don't activate) code for a special VM option to makejulian1999-01-063-3/+60
| | | | | | | | | | | | | downward growing stacks more general. Add (but don't activate) code to use the new stack facility when running threads, (specifically the linux threads support). This allows people to use both linux compiled linuxthreads, and also the native FreeBSD linux-threads port. The code is conditional on VM_STACK. Not using this will produce the old heavily tested system. Submitted by: Richard Seaman <dick@tar.com>
* Move IO_PSMSIZE from kbdio.h to isa.h. I thought I did this a long timeyokota1999-01-061-3/+4
| | | | | | | ago... While I am here, correct the values for IO_MDASIZE and IO_CGASIZE; they should be 12 rather than 16.
* Part 1 of pcvt/voxware revival. I hope I have not clobbered any otherpeter1999-01-011-1/+8
| | | | | | | deltas, but it is possible since I had a few merge conflicts over the last few days while this has been sitting ready to go. Approved by: core
* Improved DDB_UNATTENDED behaviour. From the submitter:msmith1998-12-282-4/+9
| | | | | | | | | | | | | | | | | | | | | | There's something that's been bugging me for a while, so I decided to fix it. FreeBSD now will DTRT WRT DDB and DDB_UNATTENDED (!debugger_on_panic), at least in my opinion. The behavior change is such that: 1. Nothing changes when debugger_on_panic != 0. 2. When DDB_UNATTENDED (!debugger_on_panic), if a panic occurs, the machine will reboot. Also, if a trap occurs, the machine will panic and reboot, unlike how it broke to DDB before. HOWEVER, a trap inside DDB will not cause a panic, allowing full use of DDB without having to worry about the machine being stuck at a DDB prompt if something goes wrong during the day. Patches for this behavior follow my signature, and it would be a boon to anyone (like me) who uses DDB_UNATTENDED, but actually wants the machine to panic on a trap (otherwise, what's the use, if the machine causes a fatal trap rather than a true panic, of debugger_on_panic?). The changes cause no adverse behavior, but do involve two symbols becoming global Submitted by: Brian Feldman <green@unixhelp.org>
* From the submitter:msmith1998-12-272-9/+86
| | | | | | | | | | | CPU_WT_ALLOC does not work correctly for K6-2s of model 8+ and probably K6-3s (when they appear on the market soon). In addition, print_AMD_info() incorrectly printfs write allocation's size. I've fixed them, so they now Do The Right Thing, and added a "NO_MEMORY_HOLE" option to easily allow 15-16mb range handling for us K6 and K6-2 users. Submitted by: Brian Feldman <green@unixhelp.org>
* Pre 3.0 branch cleanup sos#1: wcdsos1998-12-271-2/+2
| | | | Superceded by acd driver...
* Pre 3.0 branch cleanup casualty #6: ftphk1998-12-271-5/+1
|
* Add commented out SMP stuff in GENERIC, remove stale configs.phk1998-12-271-1/+10
|
* Pre 3.0 branch cleanup casualty #5: nca, sea, wds, uhaphk1998-12-271-2/+1
| | | | | No CAM drivers available. If somebody CAMifies one of these, they will be welcome back in the tree
* Pre 3.0 branch cleanup casualty #4: pcvtphk1998-12-271-8/+1
|
* Removed the cast to a pointer in the definition of PS_STRINGS andbde1998-12-161-2/+2
| | | | | | | adjusted related casts to match (only in the kernel in this commit). The pointer was only wanted in one place in kern_exec.c. Applications should use the kern.ps_strings sysctl instead of PS_STRINGS, so they shouldn't notice this change.
* Removed bogus casts of USRSTACK and/or the other operand in binarybde1998-12-162-11/+8
| | | | expressions involving USRSTACK.
* Moved the declaration of another non-SMP variable into the non-SMP section.bde1998-12-142-4/+4
|
* Ifdefed the declarations of conditionally used variables.bde1998-12-141-3/+6
|
* Fix tabs that should have been spaces. Some were in kernel error messages.mckay1998-12-142-44/+44
|
* Get rid of uninitialized variable warnings. No bugs found, justdillon1998-12-141-2/+3
| | | | preinitializing some locals to 0 to get rid of the compiler warnings.
* author was assuming that nextpaddr declared *inside* the do loop woulddillon1998-12-141-30/+37
| | | | | survive within the loop. This is not guarenteed by C. I have moved the nextpaddr declaration to outside the do loop.
* Change local ddb_mode variable to volatile to handle GCC warning aboutdillon1998-12-141-2/+2
| | | | the variable possibly being clobbered by setjmp/longjmp.
* dded the stubs for umodem and ucom (communications class driver). They are ↵n_hibma1998-12-131-1/+4
| | | | | | nothing other than the ugen driver with different variable names.
* Cleanup up the wording for the F00F bug workaround message.steve1998-12-101-2/+2
| | | | | PR: 8041 Submitted by: Dan Nelson <dnelson@emsphone.com>
* Preliminary support for OHCI motherboardsn_hibma1998-12-091-1/+2
|
* Use CNAME macro for pc98_system_parameter, which is referenced from Ckato1998-12-082-6/+6
| | | | | | source. Submitted by: Masanori Kanaoka <kana@saijo.mke.mei.co.jp>
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-078-25/+27
| | | | and local variables, goto labels, and functions declared but not defined.
* Avoid compiler warning (printf arg type mismatch) when compiling #ifdef DEBUGarchie1998-12-061-2/+2
|
* Print out information for write-allocate of AMD CPUs.kato1998-12-051-1/+20
| | | | Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-042-4/+4
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* An early Christmas present: add driver support for a whole bunch ofwpaul1998-12-041-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCI fast ethernet adapters, plus man pages. if_pn.c: Netgear FA310TX model D1, LinkSys LNE100TX, Matrox FastNIC 10/100, various other PNIC devices if_mx.c: NDC Communications SOHOware SFA100 (Macronix 98713A), various other boards based on the Macronix 98713, 98713A, 98715, 98715A and 98725 chips if_vr.c: D-Link DFE530-TX, other boards based on the VIA Rhine and Rhine II chips (note: the D-Link and certain other cards that actually use a Rhine II chip still return the PCI device ID of the Rhine I. I don't know why, and it doesn't really matter since the driver treats both chips the same anyway.) if_wb.c: Trendware TE100-PCIE and various other cards based on the Winbond W89C840F chip (the Trendware card is identical to the sample boards Winbond sent me, so who knows how many clones there are running around) All drivers include support for ifmedia, BPF and hardware multicast filtering. Also updated GENERIC, LINT, RELNOTES.TXT, userconfig and sysinstall device list. I also have a driver for the ASIX AX88140A in the works.
* - For some old Cyrix CPUs, %cr2 is clobbered by interrupts. Thiskato1998-12-022-29/+61
| | | | | | | | | | | | | | | problem is worked around by using an interrupt gate for the page fault handler. This code was originally made for NetBSD/pc98 by Naofumi Honda <honda@kururu.math.sci.hokudai.ac.jp> and has already been in PC98 tree. Because of this bug, trap_fatal cannot show correct page fault address if %cr2 is obtained in this function. Therefore, trap_fatal uses the value from trap() function. - The trap handler always enables interruption when buggy application or kernel code has disabled interrupts and then trapped. This code was prepared by Bruce Evans <bde@FreeBSD.org>. Submitted by: Bruce Evans <bde@FreeBSD.org> Naofumi Honda <honda@kururu.math.sci.hokudai.ac.jp>
* don't print '?' for ioaddr the device may legitimately not have anphk1998-11-291-2/+2
| | | | ioaddr.
* Don't forget to update the pmap associated with aio daemons when addingtegge1998-11-271-1/+8
| | | | new page directory entries for a growing kernel virtual address space.
* Attempt to handle interrupts delivered to all IO APICs by using the firsttegge1998-11-263-6/+51
| | | | IO APIC with a sufficient number of pins.
* Initial commit of ported NetBSD USB stackn_hibma1998-11-261-1/+20
|
* Staticize.eivind1998-11-264-12/+12
|
* Move the declaration of PPro_vmtrr from the header file to pmap.c,eivind1998-11-242-4/+10
| | | | | replacing the one in the header file with a definition. This makes it easier to work with tools that grok ANSI C only.
* Remove `amd', `nca' SCSI devices to match Mike's LINT commit.obrien1998-11-121-6/+2
|
OpenPOWER on IntegriCloud