| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Notes:
svn path=/head/; revision=186806
|
| |
|
|
|
|
|
|
|
|
|
| |
belonging to a devices children, in analogy to the way we handle interrupts
for SCC serial devices. This is required to counteract overly deep nesting
on onboard audio devices.
Submitted by: Marco Trillo
Notes:
svn path=/head/; revision=186805
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186804
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Implement NP (ASCII 12, Form Feed). When used with cons25, it should
clear the screen and place the cursor at the top of the screen. When
used with xterm, it should just simulate a newline.
- When we want to use xterm emulation, make teken_demo set TERM to
xterm.
Spotted by: Paul B. Mahol <onemda@gmail.com>
Notes:
svn path=/head/; revision=186798
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186797
|
| |
|
|
|
|
|
|
|
| |
driver since it couldn't have worked with NEWCARD w/o these fixes.
This should allow selecting 16-bit memory width as well (which was
what was broken).
Notes:
svn path=/head/; revision=186796
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186795
|
| |
|
|
|
|
|
|
| |
Reviewed by: ed, julian, Christoph Mallon <christoph.mallon@gmx.de>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=186791
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
functions used in the bootloader. The goal is to make the code more
readable and smaller (especially because we have size issues
in the loader's environment).
High level description of the changes:
+ define some string manipulation functions to improve readability;
+ create functions to manipulate module descriptors, removing some
duplicated code;
+ rename the error codes to ESOMETHING;
+ consistently use set_environment_variable (which evaluates
$variables) when interpreting variable=value assignments;
I have tested the code, but there might be code paths that I have
not traversed so please let me know of any issues.
Details of this change:
--- loader.4th ---
+ add some module operators, to remove duplicated code while parsing
module-related commands:
set-module-flag
enable-module
disable-module
toggle-module
show-module
--- pnp.4th ---
+ move here the definition related to the pnp devices list, e.g.
STAILQ_* , pnpident, pnpinfo
--- support.4th ---
+ rename error codes to capital e.g. ENOMEM EFREE ... and do obvious
changes related to the renaming;
+ remove unused structures (those relevant to pnp are moved to pnp.4th)
+ various string functions
- strlen removed (it is an internal function)
- strchr, defined as the C function
- strtype -- type a string to output
- strref -- assign a reference to the string on the stack
- unquote -- remove quotes from a string
+ remove reset_line_buffer
+ move up the 'set_environment_variable' function (which now
uses the interpreter, so $variables are evaluated).
Use the function in various places
+ add a 'test_file function' for debugging purposes
MFC after: 4 weeks
Notes:
svn path=/head/; revision=186789
|
| |
|
|
|
|
|
|
|
|
| |
to GENERIC configuration files. This brings what's in 8.x in sync
with what is in 7.x, but does not change any current defaults.
Possibly they should now be enabled in head by default?
Notes:
svn path=/head/; revision=186776
|
| |
|
|
|
|
|
| |
by rwatson. Opps..
Notes:
svn path=/head/; revision=186775
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because we now have cons25-style linewrapping, we must also use cons25-
style reverse linewrapping. This means that a ^H on column 0 will move
the cursor one line up.
Also fix a small regression: if the user invokes a RIS (Reset to Initial
State), we must show the cursor again.
Spotted by: Paul B. Mahol <onemda gmail com>
Notes:
svn path=/head/; revision=186753
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186752
|
| |
|
|
|
|
|
|
|
|
| |
did not use C99-style sparse structure initialization, so remove
NULL assignments for now-removed pr_usrreq function pointers.
Reported by: Chris Ruiz <yr.retarded at gmail.com>
Notes:
svn path=/head/; revision=186751
|
| |
|
|
|
|
|
|
|
| |
to reflect removal from struct protosw.
Spotted by: ed
Notes:
svn path=/head/; revision=186750
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
During boot, the domain list is locked with Giant. It is not possible to
register any protocols after the system has booted, so the lock is only
used to protect insertion of entries.
There is already a mutex in uipc_domain.c called dom_mtx. Use this mutex
to lock the list, instead of using Giant. It won't matter anything with
respect to performance, but we'll never get rid of Giant if we don't
remove from places where we don't need it.
Approved by: rwatson
MFC after: 3 weeks
Notes:
svn path=/head/; revision=186747
|
| |
|
|
|
|
|
|
|
| |
to svn commit in the wrong directory.
Spotted by: bz
Notes:
svn path=/head/; revision=186746
|
| |
|
|
|
|
|
| |
used since the last millenia.
Notes:
svn path=/head/; revision=186745
|
| |
|
|
|
|
|
|
|
|
| |
position of the found zero bit.
Submitted by: Jaakko Heinonen <jh saunalahti fi>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=186740
|
| |
|
|
|
|
|
|
|
| |
is not needed and seems that it will not be needed either.
Pointy hat: mine, mine, mine and not pho's
Notes:
svn path=/head/; revision=186736
|
| |
|
|
|
|
|
|
|
|
|
|
| |
o Don't check the dummy fields.
o The entry is unused if either dp_mid is 0 or dp_sid is 0.
o The start or end cylinder cannot be 0.
o The start CHS cannot be equal to the end CHS.
Submitted by: nyan
Notes:
svn path=/head/; revision=186733
|
| |
|
|
|
|
|
|
|
|
|
| |
With cons25, there are printable characters below 0x1B. This is not the
case with ASCII, UTF-8, etc. but in this case we just have to.
Also don't set LC_CTYPE to UTF-8 when libteken is compiled without UTF-8
in the demo-application.
Notes:
svn path=/head/; revision=186731
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/lib/libusb20/libusb20_desc.c
Make "libusb20_desc_foreach()" more readable.
src/sys/dev/usb2/controller/*.[ch]
src/sys/dev/usb2/core/*.[ch]
Implement support for USB power save for all HC's.
Implement support for Big-endian EHCI.
Move Huawei quirks back into "u3g" driver.
Improve device enumeration.
src/sys/dev/usb2/ethernet/*[ch]
Patches for supporting new AXE Gigabit chipset.
src/sys/dev/usb2/serial/*[ch]
Fix IOCTL return code.
src/sys/dev/usb2/wlan/*[ch]
Sync with old USB stack.
Submitted by: hps
Notes:
svn path=/head/; revision=186730
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It turns out I was looking too much at mimicing xterm, that I didn't
take the differences of cons25 into account. There are some differences
between xterm and cons25 that are important. Create a new #define called
TEKEN_CONS25 that can be toggled to switch between cons25 and xterm
mode.
- Don't forget to redraw the cursor after processing a forward/backward
tabulation.
- Implement cons25-style (WYSE?) autowrapping. This form of autowrapping
isn't that nice. It wraps the cursor when printing something on column
80. xterm wraps when printing the first character that doesn't fit.
- In cons25, a \t shouldn't overwrite previous contents, while xterm
does.
Reported by: Garrett Cooper <yanefbsd gmail com>
Notes:
svn path=/head/; revision=186729
|
| |
|
|
|
|
|
|
|
|
|
|
| |
cells in the map, instead of using a value passed to it and then panicing if it
disagrees. This fixes interrupt map parsing for PCI bridges on some Apple
Uninorth PCI controllers.
Reported by: marcel
Tested on: G4 iBook, Sun Ultra 5
Notes:
svn path=/head/; revision=186728
|
| |
|
|
|
|
|
| |
got lost.
Notes:
svn path=/head/; revision=186722
|
| |
|
|
|
|
|
|
| |
style of hash section with better performace than the original SYSV
hash. It can be generated by newer binutils.
Notes:
svn path=/head/; revision=186720
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the counter, that may happen when too many sendfile(2) calls are
being executed with this vnode [1].
To keep the size of the struct vm_page and offsets of the fields
accessed by out-of-tree modules, swap the types and locations
of the wire_count and cow fields. Add safety checks to detect cow
overflow and force fallback to the normal copy code for zero-copy
sockets. [2]
Reported by: Anton Yuzhaninov <citrin citrin ru> [1]
Suggested by: alc [2]
Reviewed by: alc
MFC after: 2 weeks
Notes:
svn path=/head/; revision=186719
|
| |
|
|
|
|
|
|
|
|
|
|
| |
disabled entirely, which is its default state before set to a
non-zero value.
PR: 128790
Submitted by: Nick Hilliard <nick at foobar dot org>
MFC after: 3 weeks
Notes:
svn path=/head/; revision=186717
|
| |
|
|
|
|
|
|
|
|
| |
already held.
Approved by: rwatson (mentor)
MFC after: 3 weeks
Notes:
svn path=/head/; revision=186715
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to ip_output(). The destionation is represented in a sockaddr{} object
that may contain other pieces of information, e.g., port number. This
same destination sockaddr{} object may be passed into L2 code, which
could be used to create a L2 entry. Since there exists a L2 table per
address family, the L2 lookup function can make address family specific
comparison instead of the generic bcmp() operation over the entire
sockaddr{} structure.
Note in the IPv6 case the sin6_scope_id is not compared because the
address is currently stored in the embedded form inside the kernel.
The in6_lltable_lookup() has to account for the scope-id if this
storage format were to change in the future.
Notes:
svn path=/head/; revision=186708
|
| |
|
|
|
|
|
|
| |
Even though there are not many setups that have absolutely no console
device, make sure a close() on a TTY doesn't dereference a null pointer.
Notes:
svn path=/head/; revision=186707
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
During startup some of the syscons TTY's are used to set attributes like
the screensaver and mouse options. These actions cause /dev/console to
be rendered unusable.
Fix the issue by leaving the TTY opened when it is used as the console
device.
Reported by: imp
Notes:
svn path=/head/; revision=186706
|
| |
|
|
|
|
|
| |
of a tab character.
Notes:
svn path=/head/; revision=186705
|
| |
|
|
|
|
|
|
|
| |
The cursor is only inside the scrolling region when we are in origin
mode. In that case, it should use originreg instead of scrollreg. It is
completely valid to place the cursor outside the scrolling region.
Notes:
svn path=/head/; revision=186687
|
| |
|
|
|
|
|
| |
MFC after: 3 weeks
Notes:
svn path=/head/; revision=186684
|
| |
|
|
|
|
|
|
|
| |
the field in the mbuf constructors, since otherwise we have no way to
tell if they are valid. In the future, Kip has plans to add a flag
specifically to indicate validity, which is the preferred model.
Notes:
svn path=/head/; revision=186683
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
whole KVA space using one locked 4MB dTLB entry per GB of physical
memory. On Cheetah-class machines only the dt16 can hold locked
entries though, which would be completely consumed for the kernel
TSB on machines with >= 16GB. Therefore limit the KVA space to use
no more than half of the lockable dTLB slots, given that we need
them also for other things.
- Add sanity checks which ensure that we don't exhaust the (lockable)
TLB slots.
Notes:
svn path=/head/; revision=186682
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some time ago I started working on a library called libteken, which is
terminal emulator. It does not buffer any screen contents, but only
keeps terminal state, such as cursor position, attributes, etc. It
should implement all escape sequences that are implemented by the
cons25 terminal emulator, but also a fair amount of sequences that are
present in VT100 and xterm.
A lot of random notes, which could be of interest to users/developers:
- Even though I'm leaving the terminal type set to `cons25', users can
do experiments with placing `xterm-color' in /etc/ttys. Because we
only implement a subset of features of xterm, this may cause
artifacts. We should consider extending libteken, because in my
opinion xterm is the way to go. Some missing features:
- Keypad application mode (DECKPAM)
- Character sets (SCS)
- libteken is filled with a fair amount of assertions, but unfortunately
we cannot go into the debugger anymore if we fail them. I've done
development of this library almost entirely in userspace. In
sys/dev/syscons/teken there are two applications that can be helpful
when debugging the code:
- teken_demo: a terminal emulator that can be started from a regular
xterm that emulates a terminal using libteken. This application can
be very useful to debug any rendering issues.
- teken_stress: a stress testing application that emulates random
terminal output. libteken has literally survived multiple terabytes
of random input.
- libteken also includes support for UTF-8, but unfortunately our input
layer and font renderer don't support this. If users want to
experiment with UTF-8 support, they can enable `TEKEN_UTF8' in
teken.h. If you recompile your kernel or the teken_demo application,
you can hold some nice experiments.
- I've left PC98 the way it is right now. The PC98 platform has a custom
syscons renderer, which supports some form of localised input. Maybe
we should port PC98 to libteken by the time syscons supports UTF-8?
- I've removed the `dumb' terminal emulator. It has been broken for
years. It hasn't survived the `struct proc' -> `struct thread'
conversion.
- To prevent confusion among people that want to hack on libteken:
unlike syscons, the state machines that parse the escape sequences are
machine generated. This means that if you want to add new escape
sequences, you have to add an entry to the `sequences' file. This will
cause new entries to be added to `teken_state.h'.
- Any rendering artifacts that didn't occur prior to this commit are by
accident. They should be reported to me, so I can fix them.
Discussed on: current@, hackers@
Discussed with: philip (at 25C3)
Notes:
svn path=/head/; revision=186681
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186680
|
| |
|
|
|
|
|
| |
Verfied with: svn diff -x -Bbw file.h showing empty diff
Notes:
svn path=/head/; revision=186669
|
| |
|
|
|
|
|
| |
Differences from 'svn diff -x -Bbw' are trivially verifiable as only style(9).
Notes:
svn path=/head/; revision=186668
|
| |
|
|
|
|
|
| |
Verified with: svn diff -x -Bbw elf_generic.h elf64.h
Notes:
svn path=/head/; revision=186667
|
| |
|
|
|
|
|
| |
Verified with: svn diff -x -Bbw elf_common.h
Notes:
svn path=/head/; revision=186666
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
operations, such as page faults.
An earlier version of this change was ...
Reviewed by: kib
Tested by: pho
MFC after: 6 weeks
Notes:
svn path=/head/; revision=186665
|
| |
|
|
|
|
|
|
|
|
| |
When sysctl() is being called with a buffer that is too small, it will
return ENOMEM. Unfortunately the changes I made the other day sets the
error number to 0, because it just returns the error number of the
copyout(). Revert this part of the change.
Notes:
svn path=/head/; revision=186664
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186662
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186659
|
| |
|
|
| |
Notes:
svn path=/head/; revision=186658
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add support to uscanner.c for known-working devices
(the same should be done for uscanner2.c).
Waiting for 7.1 to be released before the merge.
MFC after: 3 weeks
Notes:
svn path=/head/; revision=186651
|