aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Instead of having to know which timezone was picked last time, youEdwin Groothuis2009-10-202-16/+80
| | | | | | | | | | now can run "tzsetup -r" which will reinstall the last choice. This data is recorded in /var/db/zoneinfo. MFC after: 1 week Notes: svn path=/head/; revision=198267
* Use callout_init_mtx on FreeBSD versions recent enough. This closesAlexander Kabaev2009-10-204-21/+40
| | | | | | | | | | | | | | the race where interrupt thread can complete the request for which timeout has fired and while mpt_timeout has blocked on mpt_lock. Do a best effort to keep 4.x ang Giant-locked configurartions compiling still. Reported by: ups Reviewed by: scottl Notes: svn path=/head/; revision=198262
* Fix a bug in composing PERR frames introduced by latest draft update.Rui Paulo2009-10-191-1/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=198260
* Remove a redundant option ROM check, which was never meant to be committed.Jung-uk Kim2009-10-191-3/+2
| | | | Notes: svn path=/head/; revision=198259
* Add opt_gdb.h which is now needed by ucom.Andrew Thompson2009-10-191-1/+1
| | | | Notes: svn path=/head/; revision=198258
* Add support for newer WinChipHead CH341 chips, previously in the uch341 driver.Andrew Thompson2009-10-192-116/+58
| | | | | | | Submitted by: HPS Notes: svn path=/head/; revision=198257
* Remove the newly added uch341 driver, it will be merged into uchcom instead.Andrew Thompson2009-10-194-570/+3
| | | | | | | | Suggested by: takawata Submitted by: HPS Notes: svn path=/head/; revision=198256
* Make the usage of the default zoneinfo file to install clearer.Edwin Groothuis2009-10-191-5/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=198255
* When tzsetup is run as non-root and the "CMOS clock question onEdwin Groothuis2009-10-191-1/+3
| | | | | | | | | | UTC" is answered as No, it would abort without properly ending the dialog session. MFC after: 1 week Notes: svn path=/head/; revision=198254
* Fix a copy-and-pasto in the previous commit.Jung-uk Kim2009-10-191-1/+1
| | | | Notes: svn path=/head/; revision=198252
* Rewrite x86bios and update its dependent drivers.Jung-uk Kim2009-10-1913-708/+944
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Do not map entire real mode memory (1MB). Instead, we map IVT/BDA and ROM area separately. Most notably, ROM area is mapped as device memory (uncacheable) as it should be. User memory is dynamically allocated and free'ed with contigmalloc(9) and contigfree(9). Remove now redundant and potentially dangerous x86bios_alloc.c. If this emulator ever grows to support non-PC hardware, we may implement it with rman(9) later. - Move all host-specific initializations from x86emu_util.c to x86bios.c and remove now unnecessary x86emu_util.c. Currently, non-PC hardware is not supported. We may use bus_space(9) later when the KPI is fixed. - Replace all bzero() calls for emulated registers with more obviously named x86bios_init_regs(). This function also initializes DS and SS properly. - Add x86bios_get_intr(). This function checks if the interrupt vector is available for the platform. It is not necessary for PC-compatible hardware but it may be needed later. ;-) - Do not try turning off monitor if DPMS does not support the state. - Allocate stable memory for VESA OEM strings instead of just holding pointers to them. They may or may not be accessible always. Fix a memory leak of video mode table while I am here. - Add (experimental) BIOS POST call for vesa(4). This function calls VGA BIOS POST code from the current VGA option ROM. Some video controllers cannot save and restore the state properly even if it is claimed to be supported. Usually the symptom is blank display after resuming from suspend state. If the video mode does not match the previous mode after restoring, we try BIOS POST and force the known good initial state. Some magic was taken from NetBSD (and it was taken from vbetool, I believe.) - Add a loader tunable for vgapci(4) to give a hint to dpms(4) and vesa(4) to identify who owns the VESA BIOS. This is very useful for multi-display adapter setup. By default, the POST video controller is automatically probed and the tunable "hw.pci.default_vgapci_unit" is set to corresponding vgapci unit number. You may override it from loader but it is very unlikely to be necessary. Unfortunately only AGP/PCI/PCI-E controllers can be matched because ISA controller does not have necessary device IDs. - Fix a long standing bug in state save/restore function. The state buffer pointer should be ES:BX, not ES:DI according to VBE 3.0. If it ever worked, that's because BX was always zero. :-) - Clean up register initializations more clearer per VBE 3.0. - Fix a lot of style issues with vesa(4). Notes: svn path=/head/; revision=198251
* Move mxge(4)'s NIC watchdog reset handler fromAndrew Gallatin2009-10-192-22/+66
| | | | | | | a callout to a taskqueue Notes: svn path=/head/; revision=198250
* Implement the missing support for updating the mesh conf number ofRui Paulo2009-10-194-1/+31
| | | | | | | | | neighbors via ieee80211_beacon_notify(). MFC after: 3 days Notes: svn path=/head/; revision=198242
* Merge ACPICA 20091013.Jung-uk Kim2009-10-1923-488/+1107
|\ | | | | | | Notes: svn path=/head/; revision=198237
| * Import ACPICA 20091013.vendor/acpica/20091013Jung-uk Kim2009-10-1325-534/+1238
| | | | | | | | | | Notes: svn path=/vendor-sys/acpica/dist/; revision=198054 svn path=/vendor-sys/acpica/20091013/; revision=198055; tag=vendor/acpica/20091013
* | Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-1951-39/+25
| | | | | | | | | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* | Clean up markup (mainly).Ruslan Ermilov2009-10-191-77/+149
| | | | | | | | Notes: svn path=/head/; revision=198235
* | Clean up comments, white space, and style in pfil.c (especially new VNETRobert Watson2009-10-191-30/+28
| | | | | | | | | | | | | | | | | | bits). MFC after: 3 days (not VNET bits) Notes: svn path=/head/; revision=198233
* | Powercrypt and NetSec seem to be defunct (webpages point to link farmsChristian Brueffer2009-10-191-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | and a google search yields no alternative). Remove the links but keep the entries around for reference. PR: 139756 Submitted by: Patrick Oonk <patrick@pine.nl> MFC after: 3 days Notes: svn path=/head/; revision=198232
* | Properly re-create "-s size" argument to newfs(8).Ruslan Ermilov2009-10-191-1/+1
| | | | | | | | Notes: svn path=/head/; revision=198231
* | HWMP fixes, namely:Rui Paulo2009-10-191-31/+32
| | | | | | | | | | | | | | | | | | | | | | * fix the processing of RANN frames * the originator and target addresses were swapped and while it worked fine, it was not spec compliant. MFC after: 3 days Notes: svn path=/head/; revision=198230
* | Partially revert the change to the gettytab made in r198214.Ed Schouten2009-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | By misinterpreting some data, I thought that getty wouldn't apply any baud rate to the syscons devices, but it uses the default entry instead. This means that the baud rate is set to 1200. This isn't too bad, except when using canonical mode. Make it use 9600 baud by default. MFC after: 1 week Notes: svn path=/head/; revision=198229
* | Update copyright.Dag-Erling Smørgrav2009-10-191-1/+1
| | | | | | | | Notes: svn path=/head/; revision=198225
* | Remove redundant $FreeBSD$.Dag-Erling Smørgrav2009-10-191-2/+0
| | | | | | | | Notes: svn path=/head/; revision=198224
* | Properly set the low watermarks when reducing the baud rate.Ed Schouten2009-10-192-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that buffers are deallocated lazily, we should not use tty*q_getsize() to obtain the buffer size to calculate the low watermarks. Doing this may cause the watermark to be placed outside the typical buffer size. This caused some regressions after my previous commit to the TTY code, which allows pseudo-devices to resize the buffers as well. Reported by: yongari, dougb MFC after: 1 week Notes: svn path=/head/; revision=198223
* | Remove unused pfil_flags field in packet_filter_hook.Robert Watson2009-10-181-1/+0
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=198219
* | Sort function prototypes in pfil.h, clean up white space, and betterRobert Watson2009-10-181-6/+6
| | | | | | | | | | | | | | | | | | align fields for printing. MFC after: 3 days Notes: svn path=/head/; revision=198218
* | Don't forget to increment the man page date.Ed Schouten2009-10-181-1/+1
| | | | | | | | | | | | | | Reported by: bz Notes: svn path=/head/; revision=198217
* | Fix qouting in a comment, to make it look more consistentEd Schouten2009-10-181-1/+1
| | | | | | | | | | | | | | | | Submitted by: Jille Timmermans <jille quis cx> MFC after: 1 week Notes: svn path=/head/; revision=198216
* | Fix a typo in the jail(8) manpage.Ed Schouten2009-10-181-1/+1
| | | | | | | | | | | | | | | | Submitted by: Jille Timmermans <jille quis cx> MFC after: 1 week Notes: svn path=/head/; revision=198215
* | Allow the buffer size to be configured for pseudo-like TTY devices.Ed Schouten2009-10-182-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Devices that don't implement param() (which means they don't support hardware parameters such as flow control, baud rate) hardcode the baud rate to TTYDEF_SPEED. This means the buffer size cannot be configured, which is a little inconvenient when using canonical mode with big lines of input, etc. Make it adjustable, but do clamp it between B50 and B115200 to prevent awkward buffer sizes. Remove the baud rate assignment from /etc/gettytab. Trust the kernel to fill in a proper value. Reported by: Mikolaj Golub <to my trociny gmail com> MFC after: 1 month Notes: svn path=/head/; revision=198214
* | Make lock devices work properly.Ed Schouten2009-10-181-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | It turned out I did add the code to use the init state devices to set the termios structure when opening the device, but it seems I totally forgot to add the bits required to force the actual locking of flags through the lock state devices. Reported by: ru MFC after: 1 week (to be discussed) Notes: svn path=/head/; revision=198213
* | Don't assume that physical addresses are identity mapped. This allowsNathan Whitehorn2009-10-181-1/+8
| | | | | | | | | | | | | | | | the second processor on G5 systems to start. Note that SMP is still non-functional on these systems because of IPI delivery problems. Notes: svn path=/head/; revision=198212
* | Work around a quirk with the G5 Xserve, which has a fake GMAC controllerNathan Whitehorn2009-10-181-0/+10
| | | | | | | | | | | | | | | | | | with an all-zero MAC address. In this case, don't attach. Discussed with: marius Notes: svn path=/head/; revision=198211
* | o OpenBSD 4.6 added.Maxim Konovalov2009-10-181-1/+2
| | | | | | | | Notes: svn path=/head/; revision=198210
* | Fix KASSERT string to include the real module name.Rui Paulo2009-10-181-1/+1
| | | | | | | | Notes: svn path=/head/; revision=198204
* | Change the load base to below 2GB so PIE binaries work including whenMarius Strobl2009-10-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | compiled to use the Medium/Low code model, which we currently default to for the userland. GNU/Linux has moved their default to Medium/Middle some time ago, which probably explains why the current GNU ld(1) uses a base in the range between 32 and 44 bits instead. Submitted by: kib Notes: svn path=/head/; revision=198203
* | If ET_DYN binary has non-zero base address for some reason, honour itKonstantin Belousov2009-10-181-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and do not relocate the binary to ET_DYN_LOAD_ADDR. This allows for the binary author to influence address map of the process. In particular, when the binary is actually an interpeter, this allows to have almost usual process address map. Communicate the relocation bias of the mapping for interpeter-less ET_DYN binary, that is interperter itself, in AT_BASE aux entry. This way, rtld is able to find its dynamic structure and relocate itself. Note that mapbase in the rtld is still wrong and requires further fixing. Reported and tested by: rwatson Discussed with: kan MFC after: 3 days Notes: svn path=/head/; revision=198202
* | Remove spurious call to priv_check(PRIV_VM_SWAP_NOQUOTA).Konstantin Belousov2009-10-181-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call priv_check(PRIV_VM_SWAP_NORLIMIT) only when per-uid limit is actually exceed. Both changes aim at calling priv_check(9) only for the cases when privilege is actually exercised by the process. Reported and tested by: rwatson Reviewed by: alc MFC after: 3 days Notes: svn path=/head/; revision=198201
* | Reset UPTODATE gnodes after remaking makefiles when makeMax Khon2009-10-181-15/+21
| | | | | | | | | | | | | | | | is not going to be restarted: such nodes could be marked UPTODATE without doing rebuild due to remakingMakefiles being TRUE. Notes: svn path=/head/; revision=198199
* | Line-wrap pfil.c so that it prints more nicely.Robert Watson2009-10-181-6/+10
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=198198
* | Exit with non-zero error code in case of errorsMax Khon2009-10-181-0/+2
| | | | | | | | | | | | | | when make is run with -k and not parallel (compat) make is run. Notes: svn path=/head/; revision=198197
* | Rewrap ip_input() comment so that it prints more nicely.Robert Watson2009-10-181-3/+3
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=198196
* | adds devices supportted by urtw(4) and bumps date.Weongyo Jeong2009-10-181-1/+7
| | | | | | | | Notes: svn path=/head/; revision=198195
* | overhauls urtw(4) for supporting RTL8187B devices properly that thereWeongyo Jeong2009-10-183-371/+658
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was major changes to initialize RF chipset and set H/W registers and removed a lot of magic numbers on code. Details are as follows: - uses the endpoint 0x89 to get TX status information which used to get TX complete or retry numbers or get a beacon interrupt. It's only valuable for RTL8187B. - removes urtw_write[8|16|32]_i functions that it's useless now. - uses ic->ic_updateslot to set SLOT, SIFS, DIES, EIFS, CW_VAL registers that doesn't set these whenever the channel is changed. - code for initializing RF chipset for RTL8187B changed a lot that there was many problems on TX transfers so it doesn't work properly even if just for a ping/pong. Now it becomes more stable than before that TX throughputs using netperf(1) were about 15 ~ 17Mbps/s though sometimes it encounters packet losses. - removes a lot of magic numbers that in the previous all of representing RX and TX descriptors were consisted of magic numbers and structures. It'd be more readable rather than before. - calculates TX duration more accurately for urtw(4) devices. - style(9) Notes: svn path=/head/; revision=198194
* | Remove a circular dependency on routingDoug Barton2009-10-172-2/+2
| | | | | | | | | | | | | | | | Submitted by: Mykola Dzham <freebsd@levsha.org.ua> Approved by: hrs Notes: svn path=/head/; revision=198190
* | Check error of dlfunc(3).Hajimu UMEMOTO2009-10-171-0/+11
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=198189
* | Print backspaces after echoing an EOF.Ed Schouten2009-10-171-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Applications like shells expect EOF to give no graphical output, while our implementation prints ^D by default (tunable with stty echoctl). Make the new implementation behave like the old TTY code. Print two backspaces afterwards. Reported by: koitsu MFC after: 1 month Notes: svn path=/head/; revision=198185
* | Add myself.Neel Natu2009-10-171-0/+2
| | | | | | | | | | | | | | Approved by: imp (mentor) Notes: svn path=/head/; revision=198183
* | - If lstat()/stat() fails with an error other than ENOENT, don't ignoreJaakko Heinonen2009-10-161-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the error and assume that the file doesn't exist. Touch could return success with -c option even if the file existed and time was not set. - If the first utimes_f() call fails with -A option, give up and don't continue trying to set times to current time. [1] - Set exit status to 1 when setting of timestamps fails for a directory or symbolic link even though lstat()/stat() would succeed. - Don't print bogus error message when rw() succeeds. PR: bin/112213 Submitted by: jilles [1] Reviewed by: jilles Approved by: trasz (mentor) Notes: svn path=/head/; revision=198175