Commit Graph

207611 Commits

Author SHA1 Message Date
macallan
a159e6169b don't switch to 8 bit for WSDISPLAYIO_MODE_EMUL if VOYAGERFB_ANTIALIAS
is defined
2011-12-22 07:32:33 +00:00
macallan
fa70cee0f2 support anti-aliased fonts and let the hardware do the alpha blending 2011-12-22 05:08:05 +00:00
macallan
6696a0c3b4 support running in 32bit colour with anti-aliased fonts
enable with options VOYAGERFB_ANTIALIAS
2011-12-22 05:05:24 +00:00
macallan
50d883797e add some pre-rendered anti-aliased fonts from pkgsrc:
- DejaVu Sans Mono from fonts/dejavu-ttf
- Droid Sans Mono from fonts/droid-ttf
- Free Mono from fonts/freefonts-ttf
2011-12-22 05:01:15 +00:00
macallan
011cff9259 support anti-aliased fonts in 32bit colour 2011-12-22 04:53:43 +00:00
macallan
99d1a7d487 support anti-aliased fonts ( as in, pre-rendered alpha maps ), for now only
in rasops32 although adding support in 15, 16 and 24 would be trivial.
Enabled only if the driver explicitly requests it by setting the
RI_ENABLE_ALPHA flag.
2011-12-22 04:52:45 +00:00
jakllsch
ace778b179 Transfer some static from my winter coat to more structures/functions
in this file.
2011-12-22 02:13:08 +00:00
jakllsch
f765ab4101 Fix up changes commited in kttcp.c 1.29. 2011-12-22 02:00:19 +00:00
christos
55c6b3796e don't include pcap/bpf.h 2011-12-21 22:18:43 +00:00
christos
cd3aca499d don't change the layout of the struct, it is used by fstat. (from yamt) 2011-12-21 19:27:47 +00:00
christos
64f7c0e218 PR/45730: David Holland: Avoid having 2 copies of bpf.h in /usr/include.
This adds the missing entries from libpcap to make libpcap compile with
our bpf.h.
2011-12-21 19:04:18 +00:00
christos
7abb9aefee Don't use libpcap's bpf file, but use our own:
1. include <net/dlt.h> where needed since we have the information in a separate
   file.
2. #error in pcap/bpf.h to make sure it is not being used.
3. If we don't include <pcap/bpf.h> include <net/bpf.h> instead.
4. Install symlinks instead of copies of files.
2011-12-21 19:00:27 +00:00
christos
a6338b1483 only set CANTRCVMORE if no error. 2011-12-21 15:27:50 +00:00
christos
740e523483 simplify expression 2011-12-21 15:26:57 +00:00
mlelstv
149eeb0360 bootmenu doesn't parse "prompt" as part of a command list, it must
stand alone.
2011-12-21 14:33:13 +00:00
jmcneill
5fa13b905b move the (now 1024 byte) printing buffer off the stack 2011-12-21 11:53:07 +00:00
reinoud
8a3ba0c33c Increase printing buffer of ttycons from 80 to 1024 significantly increasing
console output on large dumps.
2011-12-21 10:02:45 +00:00
pgoyette
23a56681fd Include the fifofs Atffile 2011-12-21 07:36:02 +00:00
jmcneill
373daf800d relax the test for analog devices analog pcbeep widgets 2011-12-21 02:16:57 +00:00
christos
19bd33b453 add fifofs 2011-12-21 01:58:46 +00:00
christos
5ef9683a49 add the directories 2011-12-21 01:57:55 +00:00
christos
6ac73dbd87 correct install dir 2011-12-21 01:56:16 +00:00
christos
770e6bc355 Add a fifofs test. 2011-12-21 00:23:30 +00:00
christos
013de02143 Add a test for the latest fifofs fix. 2011-12-21 00:17:06 +00:00
christos
87d8a6fadb - Eliminate so_nbio and turn it into a bit SS_NBIO in so_state.
- Introduce MSG_NBIO so that we can turn non blocking i/o on a per call basis
- Use MSG_NBIO to fix the XXX: multi-threaded issues on the fifo sockets.
- Don't set SO_CANTRCVMORE, if we were interrupted (perhaps do it for all
  errors?).
2011-12-20 23:56:28 +00:00
jmcneill
9b26cc69b4 on second thought, set machine and machine_arch both from the host and
override module_machine
2011-12-20 22:48:59 +00:00
jmcneill
a4ead07a0f check return value of write, make sure we send the whole buffer to stdout 2011-12-20 21:35:16 +00:00
dyoung
112aac83da Mark all of the Rx descriptor fields 'volatile' so that the compiler
will not re-order accesses.  Some versions of GCC (such as one in NetBSD
5.x) definitely do re-order reads from these fields if they're not
marked volatile.
2011-12-20 21:27:29 +00:00
jmcneill
4cb64fe02b set machine_arch to that of the host 2011-12-20 21:26:37 +00:00
jmcneill
d13b2de961 thunk_pollchar: use read instead of getchar 2011-12-20 21:07:56 +00:00
jmcneill
34e2106021 get rid of urkelvisor, and use same MD majors as the host 2011-12-20 21:01:39 +00:00
reinoud
39568060d0 If we need to set the PK_CHKNOSYSCALL flag in struct proc be so nice to first
take the mutex. Tnx for pointing it out to me.
2011-12-20 19:49:36 +00:00
apb
4309071985 Put the path to the compat/common directory in a .PATH line, not in
an element of the SRCS list.  This should fix a problem in which build
products were created in the source tree.

Also add a comment about where COMPAT_50 is defined.
2011-12-20 17:09:04 +00:00
hannken
872808dec2 Move the diagnostic check for a missing VOP_CLOSE() to the top of vrelel().
As long as we hold the vnode interlock there is no chance for this vnode
to gain new references.

Fixes false alarms observed by Thor Lancelot Simon and reported on tech-kern.

Ok: David Holland <dholland@netbsd.org>
2011-12-20 16:49:37 +00:00
wiz
e62237163a New sentence, new line. Bump date for previous. 2011-12-20 16:43:14 +00:00
drochner
5cc2549c59 allow kernels w/o COMPAT_50 to build 2011-12-20 16:38:06 +00:00
reinoud
a87f342047 Use to the MAP_NOSYSCALLS argument to mmap() to allow for NetBSD/usermode to
execute bog-standard native programs.
2011-12-20 15:45:36 +00:00
reinoud
85475f9fdb Add int $80 and sysenter opcodes to the x86 SIGILL opcode detector 2011-12-20 15:43:51 +00:00
reinoud
1e4a845e20 Part 2 - x86 implementation of MAP_NOSYSCALLS
Currently the MAP_NOSYSCALLS is only implemented for x86 but other
architectures are easy to adapt; see the sys/arch/x86/x86/syscall.c patch.
Port maintainers are encouraged to add them for their processor ports too.
When this feature is not yet implemented for an architecture the
MAP_NOSYSCALLS is simply ignored with virtually no cpu cost..
2011-12-20 15:41:50 +00:00
reinoud
ea698f7362 Ooops forgot the uvm_map.h 2011-12-20 15:41:01 +00:00
reinoud
d131102a3b Add a MAP_NOSYSCALLS flag to mmap. This flag prohibits executing of system
calls from the mapped region. This can be used for emulation perposed or for
extra security in the case of generated code.

Its implemented by adding mapping-attributes to each uvm_map_entry. These can
then be queried when needed.

Currently the MAP_NOSYSCALLS is only implemented for x86 but other
architectures are easy to adapt; see the sys/arch/x86/x86/syscall.c patch.
Port maintainers are encouraged to add them for their processor ports too.
When this feature is not yet implemented for an architecture the
MAP_NOSYSCALLS is simply ignored with virtually no cpu cost..
2011-12-20 15:39:35 +00:00
yamt
49cf653167 comment and assertion 2011-12-20 13:47:38 +00:00
apb
aed644df58 Revert previous; the #include was already present, and I got confused
by a merge error.
2011-12-20 13:42:19 +00:00
jmcneill
a4dec04e60 from http://www.freshbsd.org/commit/openbsd/ae7f934ae5bdf57dcf3431ba55fd1da93b8f1963
Initialize abridged tag word properly. x87 spec says FNINIT says tag word
contains FFFFh (all stack locations empty) which would make abridged tag
word 00h. From the Intel 64 and IA-32 Architectures Software Developer's
Manual:

"The FXSAVE instruction saves an abridged version of the x87 FPU tag word
in the FTW field (unlike the FSAVE instruction, which saves the complete
tag word). The tag information is saved in physical register order (R0
through R7), rather than in top-of- stack (TOS) order. With the FXSAVE
instruction, however, only a single bit (1 for valid or 0 for empty) is
saved for each tag."

ok rmind@
2011-12-20 13:17:05 +00:00
apb
69662c7cbb #include "opt_compat_netbsd.h" 2011-12-20 12:45:00 +00:00
drochner
0d045f120a note new OpenPAM release 2011-12-20 11:18:35 +00:00
christos
f0196baaf5 - make all the ifdefs match
- make it compile, and test
2011-12-19 22:25:45 +00:00
christos
84b663d32f Put back setitimer based code for the have-nots: (OS/X Lion) 2011-12-19 21:59:46 +00:00
apb
e48fd3a0e7 SRCS += ${.CURDIR}/../../../../compat/common/rndpseudo_50.c
to fix build errors like this:

DESTDIR/usr/lib/librumpdev_rnd.so: undefined reference to
`rumpns_compat_50_rnd_ioctl'
2011-12-19 21:56:18 +00:00
apb
381a814261 Add COMPAT_50 and COMPAT_NETBSD32 compatibility code for rnd(4)
ioctl commands.

Tested with "rndctl -ls" using an old 32-bit version of rndctl(8)
(built for NetBSD-5.99.56/i386) and a new 64-bit kernel
(NetBSD-5.99.59/amd64).
2011-12-19 21:53:52 +00:00