]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
9 years agogif: fix color table clipping (for cb5.gif)
cinap_lenrek [Wed, 11 Mar 2015 11:59:19 +0000 (12:59 +0100)]
gif: fix color table clipping (for cb5.gif)

9 years agofactotum: remove unused extern declarations of invoker and authdom from header
cinap_lenrek [Wed, 11 Mar 2015 10:56:02 +0000 (11:56 +0100)]
factotum: remove unused extern declarations of invoker and authdom from header

9 years agokernel: fix integer overflow in syssegflush(), segment code cleanup
cinap_lenrek [Tue, 10 Mar 2015 17:16:08 +0000 (18:16 +0100)]
kernel: fix integer overflow in syssegflush(), segment code cleanup

mcountseg(), mfreeseg():
use Pte.first/last pointers when possible and avoid constructs
like s->map[i]->pages[j].

freepte():
do not zero entries in freepte(), the segment is going away and
here is no point in zeroing page pointers. hoist common code at
the top avoiding duplication.

segpage(), fixfault():
avoid load after store for Pte** pointer.

fixfault():
return -1 in default case to avoid the "used but not set" warning
for mmuphys and get rid of the useless initialization.

syssegflush():
due to len being unsigned, the pe = PGROUND(pe) can make "chunk"
bigger than len causing a overflow. rewrite the function and deal
with page alignment and errors at the beginning.

syssegflush(), segpage(), fixfault(), putseg(), relocateseg(),
mcountseg(), mfreeseg():
keep naming consistent.

9 years agowpa(8): the -p flag will also prompt for user/password on wpa enterprise
cinap_lenrek [Mon, 9 Mar 2015 23:44:17 +0000 (00:44 +0100)]
wpa(8): the -p flag will also prompt for user/password on wpa enterprise

9 years agopushtls(2): fix signature to TLSconn.trace()
cinap_lenrek [Mon, 9 Mar 2015 23:41:46 +0000 (00:41 +0100)]
pushtls(2): fix signature to TLSconn.trace()

9 years agowebfs: implement CONNECT method for https connections over proxy
cinap_lenrek [Mon, 9 Mar 2015 19:26:20 +0000 (20:26 +0100)]
webfs: implement CONNECT method for https connections over proxy

when using a http proxy, establish secure tls connection to the
other end with the CONNECT method so the proxy.

9 years agotheo: OpenBSD is not generally known as an exposed democracy.
stanley lieber [Mon, 9 Mar 2015 01:52:34 +0000 (21:52 -0400)]
theo: OpenBSD is not generally known as an exposed democracy.

9 years agog: search .awk and .rc files
stanley lieber [Mon, 9 Mar 2015 01:46:00 +0000 (21:46 -0400)]
g: search .awk and .rc files

9 years agogs: fix bug 694539. Reading off the end of the cbuf when dash pattern len is max
cinap_lenrek [Sun, 8 Mar 2015 04:27:24 +0000 (05:27 +0100)]
gs: fix bug 694539. Reading off the end of the cbuf when dash pattern len is max

9 years agokernel: catch address overflow in syssegfree()
cinap_lenrek [Sat, 7 Mar 2015 17:59:06 +0000 (18:59 +0100)]
kernel: catch address overflow in syssegfree()

the "to" address can overflow in syssegfree() causing wrong
number of pages to be passed to mfreeseg(). with the current
implementation of mfreeseg() however, this doesnt cause any
data corruption but was just freeing an unexpected number of
pages.

this change checks for this condition in syssegfree() and
errors out instead. also mfreeseg() was changed to take
ulong argument for number of pages instead of int to keep
it consistent with other routines that work with page counts.

9 years agosnap: fix readseg() to cope with > 2gb segments
cinap_lenrek [Sat, 7 Mar 2015 14:21:01 +0000 (15:21 +0100)]
snap: fix readseg() to cope with > 2gb segments

9 years agomerge
cinap_lenrek [Fri, 6 Mar 2015 17:30:25 +0000 (18:30 +0100)]
merge

9 years agozynq: sdio support
cinap_lenrek [Fri, 6 Mar 2015 17:29:39 +0000 (18:29 +0100)]
zynq: sdio support

9 years agodevsd: always page align sd buffers
cinap_lenrek [Fri, 6 Mar 2015 15:16:45 +0000 (16:16 +0100)]
devsd: always page align sd buffers

sdbio() tests if it can pass the buffer pointer directly to
the driver when it is already in kernel memory. we also need
to check if the buffer is properly aligned but alignment
requirement is handled in system specific sdmalloc() and
was not known to devsd.

to solve this, we *always* page align sd buffers and get rid
of the system specific sdmalloc() macro (was only used in bcm
kernel).

9 years agozynq: do mpinit() early so cpu1 debug prints do not intermix
cinap_lenrek [Fri, 6 Mar 2015 13:31:51 +0000 (14:31 +0100)]
zynq: do mpinit() early so cpu1 debug prints do not intermix

9 years agomerge
cinap_lenrek [Thu, 5 Mar 2015 09:17:23 +0000 (10:17 +0100)]
merge

9 years agoset /mail/tmp permissions world writable in cdproto
cinap_lenrek [Thu, 5 Mar 2015 09:16:17 +0000 (10:16 +0100)]
set /mail/tmp permissions world writable in cdproto

9 years agozynq: fix usb by implementing delay() and give proper port speed in portstatus
cinap_lenrek [Thu, 5 Mar 2015 22:48:23 +0000 (23:48 +0100)]
zynq: fix usb by implementing delay() and give proper port speed in portstatus

9 years agocol(1): add SOURCE (thanks, qrstuv)
stanley lieber [Thu, 5 Mar 2015 00:23:34 +0000 (19:23 -0500)]
col(1): add SOURCE (thanks, qrstuv)

9 years agolibthread: get rid of chaninit() (thanks qrstuv)
cinap_lenrek [Wed, 4 Mar 2015 09:20:31 +0000 (10:20 +0100)]
libthread: get rid of chaninit() (thanks qrstuv)

chaninit() does not initialize Chan.qentry and Chan.nentry
and there is no way to get rid of such a channel. nobody is
using it, so removing the function to avoid confusion.

9 years agokernel: fix physical segment handling
cinap_lenrek [Tue, 3 Mar 2015 12:08:29 +0000 (13:08 +0100)]
kernel: fix physical segment handling

ignore physical segments in mcountseg() and mfreeseg(). physical
segments are not backed by user pages, and doing putpage() on
physical segment pages in mfreeseg() is an error.

do now allow physical segemnts to be resized. the segment size
is only checked in segattach() to be within the physical segment!

ignore physical segments in portcountpagerefs() as pagenumber()
does not work on the malloced page structures of a physical segment.

get rid of Physseg.pgalloc() and Physseg.pgfree() indirection as
this was never used and if theres a need to do more efficient
allocation, it should be done in a portable way.

9 years agolibdraw: font->display->defaultsubfont vs. display->defaultsubfont, dead code, malloc...
cinap_lenrek [Mon, 2 Mar 2015 10:01:12 +0000 (11:01 +0100)]
libdraw: font->display->defaultsubfont vs. display->defaultsubfont, dead code, malloc erros

it is possible to have fonts belong to different or no display, so the
check for defaultsubfont has to be against font->display, not the global
display variable.

remove unused freeup() routine.

handle strdup() error in allocsubfont() and realloc() error in buildfont().

9 years agodevmnt: remove unused mntstats fields from Mntrpc
cinap_lenrek [Sun, 1 Mar 2015 17:56:45 +0000 (18:56 +0100)]
devmnt: remove unused mntstats fields from Mntrpc

9 years agofactotum: cleanup getnvramkey()
cinap_lenrek [Sun, 1 Mar 2015 10:17:21 +0000 (11:17 +0100)]
factotum: cleanup getnvramkey()

- remove secstore password code, it is not used anymore.
- zero the Nvrsafe structure on the stack before returning.
- use smprint(), can't overflow.

9 years agolibdraw: use multiple read() calls in openfont() to read .font file
cinap_lenrek [Sun, 1 Mar 2015 04:45:22 +0000 (05:45 +0100)]
libdraw: use multiple read() calls in openfont() to read .font file

font files might be bigger than the i/o unit, so do multiple reads
until eof to read it.

9 years agolibdraw: use readn() to read headers and Fontchar array
cinap_lenrek [Sun, 1 Mar 2015 04:39:45 +0000 (05:39 +0100)]
libdraw: use readn() to read headers and Fontchar array

the Fontchar array might be bigger than the i/o unit,
so we have to use readn() to properly read it.

9 years ago6c: fix missing memset in Bconv()
cinap_lenrek [Sun, 1 Mar 2015 04:33:41 +0000 (05:33 +0100)]
6c: fix missing memset in Bconv()

9 years agothread(2): remove another instance of /mnt/temp
cinap_lenrek [Sat, 28 Feb 2015 12:27:00 +0000 (13:27 +0100)]
thread(2): remove another instance of /mnt/temp

9 years agolibthread: remove unused internal functions and old xinc assembler files
cinap_lenrek [Sat, 28 Feb 2015 12:26:38 +0000 (13:26 +0100)]
libthread: remove unused internal functions and old xinc assembler files

9 years agolibthread: use devdup instead of mounting pipe to /mnt/temp for close-on-exec in...
cinap_lenrek [Sat, 28 Feb 2015 11:50:17 +0000 (12:50 +0100)]
libthread: use devdup instead of mounting pipe to /mnt/temp for close-on-exec in procexec()

the namespace might be shared by other processes. instead, we
create a anonymous pipe with pipe() and use devdup to open one
end close-on-exec. this is shorter and avoids the race condition.

do not touch Execargs after writing the error message as the
process might be gone after the write. this was to manually
close the fd which isnt neccesary as the kernel will do it
for us on the following exit.

9 years agoleak: report alloc size mismatch
cinap_lenrek [Thu, 26 Feb 2015 21:33:03 +0000 (22:33 +0100)]
leak: report alloc size mismatch

9 years agopool: maintain Pool.curalloc for poolallocalign() and blockgrow()
cinap_lenrek [Thu, 26 Feb 2015 21:22:07 +0000 (22:22 +0100)]
pool: maintain Pool.curalloc for poolallocalign() and blockgrow()

blockgrow() and poolallocalign() change the size of
allocated blocks which needs to be accounted for
in Pool.curalloc.

9 years agofortunes: My recent incompetence is humbling. I should quit the industry.
stanley lieber [Thu, 26 Feb 2015 00:22:47 +0000 (19:22 -0500)]
fortunes: My recent incompetence is humbling.  I should quit the industry.

9 years agoaux/vga: dont error when vesa setscale fails after modeset (thanks rx9p for reporting)
cinap_lenrek [Wed, 25 Feb 2015 23:54:23 +0000 (00:54 +0100)]
aux/vga: dont error when vesa setscale fails after modeset (thanks rx9p for reporting)

9 years agokbdfs: work arround qemu
cinap_lenrek [Tue, 24 Feb 2015 13:21:47 +0000 (14:21 +0100)]
kbdfs: work arround qemu

qemu does not send e0 escape for gray (arrow) keys, no matter
the numlock state. as a work arround, we assume gray key when
numlock is not active.

9 years agolibdraw: check fontchar count in openmemsubfont() and readsubfont()
cinap_lenrek [Tue, 24 Feb 2015 02:30:21 +0000 (03:30 +0100)]
libdraw: check fontchar count in openmemsubfont() and readsubfont()

9 years agolibdraw: cleanup getsubfont()
cinap_lenrek [Tue, 24 Feb 2015 02:25:26 +0000 (03:25 +0100)]
libdraw: cleanup getsubfont()

9 years agowebfs: check $httpproxy and error when its bogus
cinap_lenrek [Mon, 23 Feb 2015 06:27:19 +0000 (07:27 +0100)]
webfs: check $httpproxy and error when its bogus

the httpproxy environment variable needs to be a url as stated
in the manpage, so give an error when it isnt.

9 years agomerge
cinap_lenrek [Mon, 23 Feb 2015 00:23:31 +0000 (01:23 +0100)]
merge

9 years agojpg: handle progressive non-interleaved mode
cinap_lenrek [Mon, 23 Feb 2015 00:20:42 +0000 (01:20 +0100)]
jpg: handle progressive non-interleaved mode

9 years agomerge
cinap_lenrek [Sat, 21 Feb 2015 09:56:32 +0000 (10:56 +0100)]
merge

9 years agogs: backport 16MB string support
cinap_lenrek [Sat, 21 Feb 2015 09:55:09 +0000 (10:55 +0100)]
gs: backport 16MB string support

9 years agorestore balance to reality
khm [Fri, 20 Feb 2015 20:09:25 +0000 (15:09 -0500)]
restore balance to reality

9 years agoio(1), seg(1): add HISTORY section to man pages (thanks, jpm_)
stanley lieber [Fri, 20 Feb 2015 19:28:56 +0000 (14:28 -0500)]
io(1), seg(1): add HISTORY section to man pages (thanks, jpm_)

9 years agodevusb: check for nil hp->dump and hp->seprintep
cinap_lenrek [Fri, 20 Feb 2015 17:56:22 +0000 (18:56 +0100)]
devusb: check for nil hp->dump and hp->seprintep

9 years agopc, pc64: simplify intrdisable()
cinap_lenrek [Fri, 20 Feb 2015 17:43:32 +0000 (18:43 +0100)]
pc, pc64: simplify intrdisable()

9 years agodevusb: fix debug ctl nil crash
cinap_lenrek [Fri, 20 Feb 2015 17:42:24 +0000 (18:42 +0100)]
devusb: fix debug ctl nil crash

9 years agogs: backport aes support for pdf-1.6
cinap_lenrek [Thu, 19 Feb 2015 23:21:45 +0000 (00:21 +0100)]
gs: backport aes support for pdf-1.6

9 years agogs: work arround broken xref table pdfs
cinap_lenrek [Thu, 19 Feb 2015 10:44:16 +0000 (11:44 +0100)]
gs: work arround broken xref table pdfs

rebuilding the xref table does not work for pdfs with
compressed object streams. as a work arround, we skip
xref table verification and ignore wrong xref gen #
for gen 0 objects.

9 years agopc, pc64: fix intrdisable() MaxIrqLAPIC -> MaxVectorAPIC (thanks mischief)
cinap_lenrek [Wed, 18 Feb 2015 05:30:01 +0000 (06:30 +0100)]
pc, pc64: fix intrdisable() MaxIrqLAPIC -> MaxVectorAPIC (thanks mischief)

9 years ago6c: eleminate more MOV instructions
cinap_lenrek [Wed, 18 Feb 2015 22:34:33 +0000 (23:34 +0100)]
6c: eleminate more MOV instructions

convert:

x = B || W
MOVxLZX a, r; MOVxQZX r, b -> MOVxQZX a, r; MOVQ r, b
MOVxLSX a, r; MOVxQSX r, r -> MOVxQSX a, r; MOVQ r, r

the MOVQ can then be eleminated by copy propagation.

improve subprop() by accepting other mov and lea
instructions as the source op.

9 years ago6l: no need to emit rex.w prefix for MOVBQZX and MOVWQZX
cinap_lenrek [Tue, 17 Feb 2015 21:25:55 +0000 (22:25 +0100)]
6l: no need to emit rex.w prefix for MOVBQZX and MOVWQZX

as with 32 bit operand size, the upper bits 63:32 are
automatically zeroed in 64bit mode. this gives a shoter
instruction encoding.

9 years agonusb/usbd: fix typo in debug prints, dont use %U format as its not installed
cinap_lenrek [Tue, 17 Feb 2015 21:17:30 +0000 (22:17 +0100)]
nusb/usbd: fix typo in debug prints, dont use %U format as its not installed

9 years agovc: eleminate strcpy in multab code
cinap_lenrek [Tue, 17 Feb 2015 21:16:02 +0000 (22:16 +0100)]
vc: eleminate strcpy in multab code

9 years ago[125678kqv][cl]: fix sprint() and strcpy() buffer overflows
cinap_lenrek [Tue, 17 Feb 2015 21:13:35 +0000 (22:13 +0100)]
[125678kqv][cl]: fix sprint() and strcpy() buffer overflows

9 years agotlssrv: produce meaningfull error message when unable to read certificate
cinap_lenrek [Tue, 17 Feb 2015 06:05:54 +0000 (07:05 +0100)]
tlssrv: produce meaningfull error message when unable to read certificate

9 years agotlssrv: fix usage, dont cat
cinap_lenrek [Tue, 17 Feb 2015 05:59:55 +0000 (06:59 +0100)]
tlssrv: fix usage, dont cat

9 years agotlssrv: fix this mess (thanks burnzez for reporting the issue)
cinap_lenrek [Tue, 17 Feb 2015 05:54:19 +0000 (06:54 +0100)]
tlssrv: fix this mess (thanks burnzez for reporting the issue)

tlsServer() closes the passed in fd, in our case fd=1 leaving it
with no std output which got occupied by pipe() filedescriptor
which it then closed after duping... a classic.

delete all this mess. theres no reason to fork() and copy traffic
on a pipe at all as tlsServer() gives us a perfectly valid filedescriptor.
just dup() and exec() and we'r done.

9 years agowc: flags dont need to be uvlong
cinap_lenrek [Sun, 15 Feb 2015 05:26:49 +0000 (06:26 +0100)]
wc: flags dont need to be uvlong

9 years agowc: bring back old wc but extended for 21 bit runes
cinap_lenrek [Sun, 15 Feb 2015 05:22:19 +0000 (06:22 +0100)]
wc: bring back old wc but extended for 21 bit runes

the imported wc from sources is arround 8 times slower
than our old one. it is common to run wc on large log files
to count lines. so i think the implementation complexity
is justified. (just like with grep)

9 years agowc: import new wc from sources
cinap_lenrek [Sat, 14 Feb 2015 15:20:40 +0000 (16:20 +0100)]
wc: import new wc from sources

9 years agousbehci: initial support for usb on zynq, remove uncached.h
cinap_lenrek [Sat, 14 Feb 2015 02:00:31 +0000 (03:00 +0100)]
usbehci: initial support for usb on zynq, remove uncached.h

the following hooks have been added to the ehci Ctlr
structore to handle cache coherency (on arm):

void* (*tdalloc)(ulong,int,ulong);
void* (*dmaalloc)(ulong);
void (*dmafree)(void*);
void (*dmaflush)(int,void*,ulong);

tdalloc() is used to allocate descriptors and the periodic
frame schedule array. on arm, this needs to return uncached
memory. tdalloc()ed memory is never freed.

dmaalloc()/dmafree() is used for io buffers. this can return
cached memory when when hardware maintains cache coherency (pc)
or dmaflush() is provided to flush/invalidate the cache (zynq),
otherwise needs to return uncached memory.

dmaflush() is used to flush/invalidate the cache. the first
argument tells us if we need to flush (non zero) or
invalidate (zero).

uncached.h is gone now. this change makes the handling explicit.

9 years agozynq: do fixed mapping for ocm memory on boot and make kaddr() and paddr() work with it
cinap_lenrek [Sat, 14 Feb 2015 01:44:19 +0000 (02:44 +0100)]
zynq: do fixed mapping for ocm memory on boot and make kaddr() and paddr() work with it

map the whole ocm memory on boot so we can translate physical to
virtual addresses and back for uncached memory using KADDR() and
PADDR().

replace ualloc() with ucalloc() returning virtual address. physical
address can be acquired with PADDR() now.

as ocm is now always mapped, use KADDR() instead of tmpmap() for
mp bootstrap.

9 years agoircrc: dont require nick and user to be the same for auth/userpasswd (thanks spew)
cinap_lenrek [Thu, 12 Feb 2015 17:40:20 +0000 (18:40 +0100)]
ircrc: dont require nick and user to be the same for auth/userpasswd (thanks spew)

9 years agoircrc(1): remove auth/userpasswd complaint from BUGS section
cinap_lenrek [Thu, 12 Feb 2015 17:24:41 +0000 (18:24 +0100)]
ircrc(1): remove auth/userpasswd complaint from BUGS section

9 years agobuild and document auth/userpasswd
cinap_lenrek [Thu, 12 Feb 2015 17:18:34 +0000 (18:18 +0100)]
build and document auth/userpasswd

9 years agolibc: check name in getvent()/putenv()
cinap_lenrek [Wed, 11 Feb 2015 22:54:28 +0000 (23:54 +0100)]
libc: check name in getvent()/putenv()

passing "", "." or ".." as name caused a crash in
getenv() as it would open the directory; then seek()
to determine the file size would fail and return -1.

now checking for these special names and set
error string when its bad.

doing a single read() will not work when /env has a
9p fileserver mounted onto it and the file size is bigger
than the i/o unit. so doing incremental reads until
we get eof.

9 years agoigfx: displayport support for ivy bridge
cinap_lenrek [Mon, 9 Feb 2015 18:17:04 +0000 (19:17 +0100)]
igfx: displayport support for ivy bridge

9 years agomothra: add side scrolling, controlled by left and right buttons on the keyboard...
stanley lieber [Sun, 8 Feb 2015 18:19:47 +0000 (13:19 -0500)]
mothra: add side scrolling, controlled by left and right buttons on the keyboard. if desired, x-scrollbar can be set visible via the visxbar variable in mothra.c. (thanks, jpm_)

9 years agovga/igfx: add 0x2a02 for GM965/GL960/X3100; comment vid/did with name of chipset
stanley lieber [Sat, 7 Feb 2015 06:12:46 +0000 (01:12 -0500)]
vga/igfx: add 0x2a02 for GM965/GL960/X3100; comment vid/did with name of chipset

9 years agovgadb: add vid=0x8086 did=0x2a02 for Intel GM965/GL960/X3100; comment recent igfx...
stanley lieber [Sat, 7 Feb 2015 06:10:35 +0000 (01:10 -0500)]
vgadb: add vid=0x8086 did=0x2a02 for Intel GM965/GL960/X3100; comment recent igfx ctlr definitions with the names of specific chipsets instead of the model numbers of laptops they may ship in

9 years agopc64: enable uartisa in default config
stanley lieber [Sat, 7 Feb 2015 06:01:11 +0000 (01:01 -0500)]
pc64: enable uartisa in default config

9 years agogames/c64: map : to \ key
aiju [Sat, 7 Feb 2015 17:55:03 +0000 (18:55 +0100)]
games/c64: map : to \ key

9 years agogames/c64: fix -2/-3
aiju [Sat, 7 Feb 2015 17:28:55 +0000 (18:28 +0100)]
games/c64: fix -2/-3

9 years agogames/mkfile: add c64
aiju [Sat, 7 Feb 2015 17:12:06 +0000 (18:12 +0100)]
games/mkfile: add c64

9 years agogames/c64: oops
aiju [Sat, 7 Feb 2015 17:11:19 +0000 (18:11 +0100)]
games/c64: oops

9 years agoadded games/c64
aiju [Sat, 7 Feb 2015 17:03:17 +0000 (18:03 +0100)]
added games/c64

9 years agozynq: fix print format warning in screeninit()
cinap_lenrek [Sat, 7 Feb 2015 02:24:07 +0000 (03:24 +0100)]
zynq: fix print format warning in screeninit()

9 years agokernel: make pagereclaim() a bit less stupid
cinap_lenrek [Sat, 7 Feb 2015 02:01:59 +0000 (03:01 +0100)]
kernel: make pagereclaim() a bit less stupid

put recently used pages at the head of ther image hash
chains, and reclaim pages from the tail first.

9 years agokernel: reduce Page structure size by changing Page.cachectl[]
cinap_lenrek [Sat, 7 Feb 2015 01:52:23 +0000 (02:52 +0100)]
kernel: reduce Page structure size by changing Page.cachectl[]

there are no kernels currently that do page coloring,
so the only use of cachectl[] is flushing the icache
(on arm and ppc).

on pc64, cachectl consumes 32 bytes in each page resulting
in over 200 megabytes of overhead for 32gb of ram with 4K
pages.

this change removes cachectl[] and adds txtflush ulong
that is set to ~0 by pio() to instruct putmmu() to flush
the icache.

9 years agofplot: add modulus % operator
cinap_lenrek [Thu, 5 Feb 2015 18:55:46 +0000 (19:55 +0100)]
fplot: add modulus % operator

9 years agolibsec: add TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA client cipher suit support
cinap_lenrek [Thu, 5 Feb 2015 03:29:28 +0000 (04:29 +0100)]
libsec: add TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA client cipher suit support

9 years agoaux/vga: remove vbs/vbe from mode, use shs/ehs when sync is ment, prefer detailed...
cinap_lenrek [Thu, 5 Feb 2015 22:08:46 +0000 (23:08 +0100)]
aux/vga: remove vbs/vbe from mode, use shs/ehs when sync is ment, prefer detailed timing in edid

vbs/vbe members in Mode was only used in the vesadb
and cannot be changed from vgadb.

use shs/ehs in drivers when refering to the horizontal
sync pulse. clarify the matter in a comment.

link detailed timing modes at the head of the edid
modelist. these are the modes we'r interested in,
not the ones from vesadb.

9 years agofortunes: The NTP codebase is larger than the SSH codebase.
stanley lieber [Tue, 3 Feb 2015 02:30:07 +0000 (21:30 -0500)]
fortunes: The NTP codebase is larger than the SSH codebase.

9 years agoaux/vga: fix mistale :-)
cinap_lenrek [Mon, 2 Feb 2015 02:05:56 +0000 (03:05 +0100)]
aux/vga: fix mistale :-)

9 years agoaux/vga: use optional edid information to determine mode when vgadb fails
cinap_lenrek [Mon, 2 Feb 2015 01:58:59 +0000 (02:58 +0100)]
aux/vga: use optional edid information to determine mode when vgadb fails

igfx and vesa can determine monitor timing information from ddc
and store the edid info for connected monitors in vga->edid[].
when monitor type cannot be found in vgadb, we consult the edid
information and make a mode based on the edid info.

this avoids having to maintain a vgadb entry for each monitor.

monitor can be set to "[width]x[height]@[freq]Hz" for a specific
edid setting. when not found, a mode is searched based on the
size.

so the following should work:

aux/vga -m 1366x768@60Hz -l 1366x768x32
aux/vga -m auto -l 1366x768x32

9 years agoaux/vga: cleanup vesa code
cinap_lenrek [Sun, 1 Feb 2015 18:28:24 +0000 (19:28 +0100)]
aux/vga: cleanup vesa code

dbvesamode() modified the passed in size string in the process
of option parsing. this is a no-go because the string might be
constant in the read only section. provide cracksize() function
for the parsing and make a static copy.

do the vendor specific monitor detection in vbesnarf() instead
of vbecheck(). vbecheck()'s purpose is to check if vesa bios
service is avialable, not snarf graphics card state.

nvidiascale() was a no-op because it missed the vbecall() at
the end of the function. this means it was never tested so i
add the missing vbecall(), but disable nvidiascale for now
until someone tests this.

keep fancy stuff out of the Vbe structure. it is just there for
making bios calls, not keep state about the graphics card.

9 years agomothra: people do not like it. reverting
cinap_lenrek [Sat, 31 Jan 2015 19:18:45 +0000 (20:18 +0100)]
mothra: people do not like it. reverting

9 years agomothra: wrap long text and images to fit
cinap_lenrek [Sat, 31 Jan 2015 19:01:24 +0000 (20:01 +0100)]
mothra: wrap long text and images to fit

9 years agokernel: increase size of palloc.mem[] user page bank array
cinap_lenrek [Fri, 30 Jan 2015 13:50:28 +0000 (14:50 +0100)]
kernel: increase size of palloc.mem[] user page bank array

we'r hitting the limit of user page banks on some asrock mainboard,
so doubling the size of the array twice to make running out unlikely.

9 years agowifi: fix recvbeacon()
cinap_lenrek [Fri, 30 Jan 2015 12:41:23 +0000 (13:41 +0100)]
wifi: fix recvbeacon()

we used to read beyond the boundaries of the becon because of
the end pointer was offset by the beacon header. this is
also what caused the double entries.

9 years agowifi: ignore truncated tlv in beacon/probes
cinap_lenrek [Fri, 30 Jan 2015 01:00:07 +0000 (02:00 +0100)]
wifi: ignore truncated tlv in beacon/probes

9 years agofactotum(4): fix typo
cinap_lenrek [Thu, 29 Jan 2015 13:11:43 +0000 (14:11 +0100)]
factotum(4): fix typo

9 years agofactotum(4): document mschapv2 and wpapsk protocols
cinap_lenrek [Thu, 29 Jan 2015 12:57:27 +0000 (13:57 +0100)]
factotum(4): document mschapv2 and wpapsk protocols

9 years agotftpfs(8): fix manpage reference dhcp(8) -> dhcpd(8)
cinap_lenrek [Thu, 29 Jan 2015 12:21:12 +0000 (13:21 +0100)]
tftpfs(8): fix manpage reference dhcp(8) -> dhcpd(8)

9 years agoircrc(1): tlsclient(8) -> tlssrv(8)
cinap_lenrek [Thu, 29 Jan 2015 12:17:34 +0000 (13:17 +0100)]
ircrc(1): tlsclient(8) -> tlssrv(8)

9 years ago6in4(8): document ayiya
cinap_lenrek [Thu, 29 Jan 2015 12:16:08 +0000 (13:16 +0100)]
6in4(8): document ayiya

9 years agoircrc(8), ndb(8): fix manpage reference
cinap_lenrek [Thu, 29 Jan 2015 11:36:14 +0000 (12:36 +0100)]
ircrc(8), ndb(8): fix manpage reference

9 years agodevmnt: handle rpc buffer exhaustion on mntflushalloc()
cinap_lenrek [Tue, 27 Jan 2015 21:14:26 +0000 (22:14 +0100)]
devmnt: handle rpc buffer exhaustion on mntflushalloc()

this bug happens when the kernel runs out of mount rpc
buffers when allocating a flush rpc. in this case, mntflushalloc()
will errorjump out of mountio() leaving the currently in
flight rpc in the mount. the caller of mountrpc()/mountio()
frees the rpc thats still queued in the mount leaving
to interesting results.

for the fix, we add a waserror() arround mntflushalloc() and
handle the error case like a mount rpc failure which will
properly dequeue the rpc's in flight.

9 years agowpa: fix password avp padding, recognize wpa1 authentication oui
cinap_lenrek [Tue, 27 Jan 2015 13:09:24 +0000 (14:09 +0100)]
wpa: fix password avp padding, recognize wpa1 authentication oui

we have to padd the data portion in the password avp,
not add padding after the avp.