summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct the spelling of m_devget() in the sysctl variable description.ru2003-11-022-2/+2
|
* - Introduce and use vm_object_reference_locked(). Unlikealc2003-11-023-3/+26
| | | | | | | vm_object_reference(), this function must not be used to reanimate dead vm objects. This restriction simplifies locking. Reviewed by: tegge
* Only the 3C1 is now known not to work. All my other cards work withimp2003-11-021-3/+1
| | | | | this driver. I've not tested the '556B or the '556BI cards, however, as I don't own them.
* MFp4:imp2003-11-022-49/+99
| | | | | | | | | | o Fix MFC cards. We were bogusly setting CCR_IOBASE[01] and CCR_IOLIMIT. now when we activate the resource, we adjust these for MFC cards, per the spec. o Change type of pf_mfc_* to be bus_addr_t, which is more correct than long. This makes my 3C362D/3C363D and 3CXEM556 cards work! Woo Hoo!
* MFp4:imp2003-11-021-6/+14
| | | | | | | | | | | | o Remove redundant $FreeBSD$ o Better comments about ep_get_macaddr. o remove one tab in a switch statement (style only) o Recognize ID 0x0035 as the device ID for the 3CXEM556 that I have. This makes the 3CXEM556 work for me. Not 100% sure this is the assigned ID, as I don't have the datasheets for this part, but it does work and get the correct ethrnet address. o Comment about the whole fake IRQ 3 thing. some need it, some don't, all work with it.
* MFp4:imp2003-11-021-1/+3
| | | | o Minor tweak to error processing in ep_alloc.
* MFP4:imp2003-11-021-0/+1
| | | | o define EP_W2_ALT_EEPROM. we don't use it yet, but may soon.
* rename variables.ume2003-11-022-12/+12
| | | | Obtained from: KAME
* Since we do not honour the Confidential: field, and as an attempt toceri2003-11-021-0/+13
| | | | | | | decrease the number of misfiled PR submissions in general, do not allow users to send a PR that contains errors. Discussed with: core
* correct %d/%u mismatch.ume2003-11-022-11/+11
| | | | Obtained from: KAME
* exit(3) with negative value does not make sense'ume2003-11-021-1/+1
| | | | Obtained from: KAME
* make debugging with "setkey -x" a lot easier.ume2003-11-021-4/+97
| | | | Obtained from: KAME
* - Remove the ksq_loads[] array. We are only interested in three counts,jeff2003-11-021-33/+50
| | | | | | | | | the total load, the timeshare load, and the number of threads that can be migrated to another cpu. Account for these seperately. - Introduce a KSE_CAN_MIGRATE() macro which determines whether or not a KSE can be migrated to another CPU. Currently, this only checks to see if we're an interrupt handler. Eventually this will also be used to support CPU binding.
* Make sure we get all user-written input. This simplifies themarkm2003-11-021-14/+5
| | | | | | | code considerably. Submitted by: (forgotten) [I'll happily acknowledge the submitter if he owns up!]
* cleanup secasvar management; refcnt is key.c responsibility;ume2003-11-023-99/+66
| | | | | | alloc/free is keydb.c responsibility. Obtained from: KAME
* Convert the Big5, EUC, MSKanji and UTF-8 encoding methods to implementtjr2003-11-024-254/+233
| | | | | | mbrtowc() and wcrtomb() directly. GB18030, GBK and UTF2 are left unconverted; GB18030 will be done eventually, but GBK and UTF2 may just be removed, as they are subsets of GB18030 and UTF-8 respectively.
* Remove headers copied from i386 and either useless or wrong on ia64.marcel2003-11-023-311/+0
| | | | | | | | | | | | | An example of useless is bios.h. An example of wrong is msdos.h (due to the use of long for 32-bit fields). display.h cannot be removed because it's used by syscons. That header however has no platform dependency and shouldn't really be here. Removal if these headers may cause build failures in the ports tree. It's the ports that need fixing in that case. Tested with: buildworld, LINT
* - do not quit from key_sendup() even if writes to non-targetume2003-11-022-95/+10
| | | | | | | | | socket fails. - remove an unneeded function. - fix pfkey stat. - fix comment. Obtained from: KAME
* o Add PART_EFI so that we can use it instead of PART_FAT on ia64marcel2003-11-026-52/+116
| | | | | | | | | | to better deal with the fact that we need an EFI partition and that we need to have a mountpoint for it. o When creating a new partition, add EFI to the list of types the user can select from. This makes it easy to create an EFI. o Do not include wizard.c on ia64. o The user cannot create a partition on ia64 that's a multiple of the cylinder size. We don't have a notion of cyclinders.
* Turn Write_Disk() into a stub for now. It needs to be rewritten tomarcel2003-11-021-149/+2
| | | | write out a GPT and not a MBR.
* o Move Int_Open_Disk() from disk.c to open_disk.c for use by allmarcel2003-11-026-304/+603
| | | | | | | | | | | | | | | | | | | | | | | | | | platforms except ia64 and use Int_Open_Disk() in open_ia64_disk.c on ia64. We need to know more than GEOM can provide us so we're forced to read from the disk. Move uuid_type() to open_ia64_disk.c and remove all references on non-ia64. o Pass the GEOM conftxt to Int_Open_Disk() so that only Open_Disk() needs to know about GEOM and libdisk can more easily be used with media not handled by GEOM. o Create an ia64 specific definiton of struct disk on ia64, because we don't need/have most of the fields other platforms need and other fields not applicable on platforms other than ia64. o Do not compile change.c on ia64. It's too PC specific. o In Fixup_Names() in create_chunk.c, try all partition numbers that are valid for the GPT disk. We have the total number of partitions that can be allocated in the disk structure on ia64. Also, use the GPT partition naming if we're creating one under a chunk of type "whole". It's a GPT partition in that case. o In Create_Chunk(), compile-out the PC specific code on ia64 that checks BIOS geometry restrictions. o In Debug_Disk() in disk.c, dump the ia64 specific fields. o Save the partition index in the chunk on ia64 so that we can preserve it when we write the data back to disk. This avoids that partitions get moved around or swapped after installing FreeBSD, which may render a disk unusable.
* Do not fill in d_ncylinders, d_ntracks and d_nsectors in the disklabelmarcel2003-11-021-0/+2
| | | | | on ia64. Not only do we not have a disklabel by default, we also do not have a notion of cylinders, tracks and sectors.
* Compile-out support for allfreebsd, dedicate, sanitize and bios onmarcel2003-11-021-0/+2
| | | | ia64. These commands are PC specific and not supported.
* Turn Track_Aligned(), Prev_Track_Aligned(), Next_Track_Aligned(),marcel2003-11-021-7/+22
| | | | | | Cyl_Aligned(), Prev_Cyl_Aligned() and Next_Cyl_Aligned() into tautologies on ia64. GPT removes all notion of tracks, heads and sectors per track, so there are no alignment considerations.
* Add an additional check to the tcp_twrecycleable function; I hadsilby2003-11-023-6/+33
| | | | | | | | | previously only considered the send sequence space. Unfortunately, some OSes (windows) still use a random positive increments scheme for their syn-ack ISNs, so I must consider receive sequence space as well. The value of 250000 bytes / second for Microsoft's ISN rate of increase was determined by testing with an XP machine.
* o In Print_Chunk(), don't print the address of the chunk on ia64. Itmarcel2003-11-021-4/+11
| | | | | | | | doesn't have any meaning and only results in lines longer than 80 characters. o In Delete_Chunk2(), also look for chunks of type "part" under chunks of type "whole" on ia64. They're not only under chunks of type "freebsd" there.
* Trim more devices from the hardware list: ida(4), ciss(4), iir(4),bmah2003-11-022-108/+0
| | | | ie(4).
* DNS should not necessarily be named(8), tweak the comment a bit.ru2003-11-022-2/+2
|
* MFV: The -d option.ru2003-11-022-3/+5
|
* Sort encodings.ru2003-11-021-10/+12
|
* Style.ru2003-11-022-2/+2
|
* The '574 family works (I had a bad dongle which is why I thought itimp2003-11-021-4/+3
| | | | | might not be). The modem combo cards do not (confirmed today)
* Take care not to call vput if thread used in corresponding vgetkan2003-11-027-10/+20
| | | | | | | | | | wasn't curthread, i.e. when we receive a thread pointer to use as a function argument. Use VOP_UNLOCK/vrele in these cases. The only case there td != curthread known at the moment is boot() calling sync with thread0 pointer. This fixes the panic on shutdown people have reported.
* - In sched_prio() only force us onto the current queue if our priority isjeff2003-11-021-1/+2
| | | | being elevated (numerically smaller).
* - Rename SCHED_PRI_NTHRESH to SCHED_SLICE_NTHRESH since it is only used injeff2003-11-021-10/+11
| | | | | | | | | slice assignment. Add a comment describing what it does. - Remove a stale XXX comment, the nice should not impact the interactivity, nice adjustments only effect non-interactive tasks in ULE. - Don't allow nice -20 tasks to totally starve nice 0 tasks. Give them at least SCHED_SLICE_MIN ticks. We still allow nice 0 tasks to starve nice +20 tasks as intended.
* - Remove PRIO_TOTAL.jeff2003-11-021-3/+0
| | | | Submitted by: bde
* - Remove uses of PRIO_TOTAL and replace them with SCHED_PRI_NRESVjeff2003-11-021-5/+5
| | | | | | | - SCHED_PRI_NRESV does not have the off by one error in PRIO_TOTAL so we do not have to account for it in the few places that we use it. Requested by: bde
* - Change sched_interact_update() to only accept slp+runtime values betweenjeff2003-11-021-27/+56
| | | | | | | | | | | | | | | | | | | 0 and SCHED_SLP_RUN_MAX * 2. This allows us to simplify the algorithm quite a bit. Before, it dealt with arbitrary values which required us to do nasty integer division tricks that didn't quite work out correctly. - Chnage sched_wakeup() to detect conditions where the slp+runtime could exceed SCHED_SLP_RUN_MAX * 2. This can happen if we go to sleep for longer than 6 seconds. In this case, we'll just clear the runtime and set the sleep time to the max. - Define a new function, sched_interact_fork() which updates the slp+runtime of a newly forked thread. We want to limit the amount of history retained from the parent so that we learn the child's behavior quickly. We don't, however want to decay it to nothing. Previously, we would simply divide each parameter by 100 whenever we forked. After a few forks the values would reach 0 and tasks would not be considered interactive. - Add another KTR entry, cleanup some existing entries. - Remove a useless sched_interact_update() from sched_priority(). This is already done by the callers that require it.
* Do if_xname conversion. I missed this one because it's pc98 only.brooks2003-11-011-2/+2
|
* - Increase the scope of two vm object locks in vm_object_collapse().alc2003-11-011-12/+4
| | | | - Remove the acquisition and release of Giant from vm_object_coalesce().
* o Do not define WITH_SYSCONS and WITH_MICE on ia64. We cannot havemarcel2003-11-012-4/+4
| | | | | | a generic kernel with syscons. o Do not define WITH_SLICES on ia64. We only label because we're going to create GPT disks.
* o Compile-out "wizard" mode on ia64.marcel2003-11-012-8/+52
| | | | | | | | | o Also allow swap and filesystem partitions outside a freebsd slice. This is typically the case for GPT. o Allow chunks of type "whole" to be displayed at the top. This is to allow a GPT disk to be labeled. We need a slice out of which we can make partitions, but a GPT disk doesn't have slices. For GPT disks a chunk of type "whole" can then be used as a placeholder.
* o Compile-out "wizard" mode on ia64.marcel2003-11-012-4/+8
| | | | | o Do not set bootblocks on ia64. It's not even a functionality in libdisk on ia64.
* Revert the first part of my previous change.trhodes2003-11-011-4/+6
| | | | Requested by: wollman
* The copywrite is not a 'static char', remove the #ifdefs and move the ↵trhodes2003-11-011-6/+4
| | | | | | | | copywrite up into the commented out 'copywrite' section. Include sys/linker.h for kldload(3).
* Remove now unused variable.kan2003-11-011-1/+0
|
* Make the cardbus driver a derived class of the pci driver. In theory, thisdfr2003-11-012-38/+3
| | | | should allow many of the pci methods to be re-staticised.
* GEOM'ify atapi-cd. Original patch by phk, subtle changes by me.sos2003-11-012-183/+128
|
* Shorten the code by removing one "do-nothing" function, replacing itmarkm2003-11-011-10/+1
| | | | with nullop(), which is in kern_conf.c.
* Fix cable detection on AMD chips.sos2003-11-011-5/+6
|
OpenPOWER on IntegriCloud