]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
9 years agomerge
ftrvxmtrx [Sun, 21 Dec 2014 00:30:36 +0000 (01:30 +0100)]
merge

9 years agosam: '^' and '_' cmds; same as '<' and '|' except that stdout goes to the command...
ftrvxmtrx [Sun, 21 Dec 2014 00:28:14 +0000 (01:28 +0100)]
sam: '^' and '_' cmds; same as '<' and '|' except that stdout goes to the command window

9 years agoflate: fix wrong adler32() length calculation (thanks qrstuv)
cinap_lenrek [Sat, 20 Dec 2014 02:34:40 +0000 (03:34 +0100)]
flate: fix wrong adler32() length calculation (thanks qrstuv)

9 years agovblade: fix code so #pragma pack isnt needed
cinap_lenrek [Fri, 19 Dec 2014 02:57:27 +0000 (03:57 +0100)]
vblade: fix code so #pragma pack isnt needed

9 years agoadd erik quanstros vblade utility
cinap_lenrek [Fri, 19 Dec 2014 01:50:22 +0000 (02:50 +0100)]
add erik quanstros vblade utility

9 years agopc64: enable devaoe and sdloop in kernel configuration
cinap_lenrek [Fri, 19 Dec 2014 01:40:45 +0000 (02:40 +0100)]
pc64: enable devaoe and sdloop in kernel configuration

9 years agosdloop: hardcode Enotup[] string to avoid devaoe dependency
cinap_lenrek [Fri, 19 Dec 2014 01:38:36 +0000 (02:38 +0100)]
sdloop: hardcode Enotup[] string to avoid devaoe dependency

9 years agosdaoe: allow aoedev= shorthand for id!lun -> id!#æ/aoe/lun
cinap_lenrek [Fri, 19 Dec 2014 01:37:40 +0000 (02:37 +0100)]
sdaoe: allow aoedev= shorthand for id!lun -> id!#æ/aoe/lun

we cannot type æ character in the bootloader console, so allow
the shorthand syntax id!lun which gets translated to id!#æ/aoe/lun.

9 years agopc, pc64: adjust mpshutdown() comment to reflect the current state
cinap_lenrek [Fri, 19 Dec 2014 22:57:43 +0000 (23:57 +0100)]
pc, pc64: adjust mpshutdown() comment to reflect the current state

9 years agopc, pc64: untangle acpireset() from mpshutdown()
cinap_lenrek [Fri, 19 Dec 2014 22:34:43 +0000 (23:34 +0100)]
pc, pc64: untangle acpireset() from mpshutdown()

mpshutdown() used to call acpireset() making it impossible to build
a kernel without archacpi. now, mpshutdown() is a helper function
that only shuts down the application processors that gets used from
mpreset() and acpireset().

the generic machine reset code in exported by devarch's archreset()
function that is called by mpreset() and from acpireset() as a fallback.
so the code duplication that was in mpshutdown() is avoided.

9 years agohgfs(4): add SOURCE to man page (thanks, spew)
stanley lieber [Thu, 18 Dec 2014 21:11:12 +0000 (16:11 -0500)]
hgfs(4): add SOURCE to man page (thanks, spew)

9 years agofortunes: oh really.
stanley lieber [Thu, 18 Dec 2014 21:07:17 +0000 (16:07 -0500)]
fortunes: oh really.

9 years agohgfs(4): add HISTORY to man page
stanley lieber [Thu, 18 Dec 2014 21:06:25 +0000 (16:06 -0500)]
hgfs(4): add HISTORY to man page

9 years agoxen: remove segmentation constants, not used on xen.
cinap_lenrek [Thu, 18 Dec 2014 01:53:49 +0000 (02:53 +0100)]
xen: remove segmentation constants, not used on xen.

9 years agopc: remove mmuinit0()
cinap_lenrek [Thu, 18 Dec 2014 01:04:42 +0000 (02:04 +0100)]
pc: remove mmuinit0()

all mmuinit0() does is initialize m->gdt, but this isnt neccesary
as this is done by mmuinit() anyway before loading the gdt.

9 years agomerge
cinap_lenrek [Thu, 18 Dec 2014 22:55:00 +0000 (23:55 +0100)]
merge

9 years agokernel: remove "checked xxx page table entries" print from checkpages()
cinap_lenrek [Thu, 18 Dec 2014 22:53:32 +0000 (23:53 +0100)]
kernel: remove "checked xxx page table entries" print from checkpages()

the purpose of checkpages() is to verify consitency of the hardware mmu state,
not to notify on the console that a program faulted. a program could also
continue after handling the note. (this seems to be the case in go programs)

9 years agokernel: print addresses in hex and sizes in decimal in xallocsummary
cinap_lenrek [Thu, 18 Dec 2014 22:06:39 +0000 (23:06 +0100)]
kernel: print addresses in hex and sizes in decimal in xallocsummary

9 years agoacme: allow typing '\n' in window tags
mischief [Wed, 17 Dec 2014 22:27:31 +0000 (14:27 -0800)]
acme: allow typing '\n' in window tags

9 years agopc, pc64: cleanup devarch
cinap_lenrek [Wed, 17 Dec 2014 21:49:51 +0000 (22:49 +0100)]
pc, pc64: cleanup devarch

- shorten cpuidprnt so it doesnt have to break line
- addarchfile: complain when running out of entries
- fix range check in rmemrw() (harmless)
- use nil instead of 0 for pointers

9 years agofstype(1): cleanup
cinap_lenrek [Wed, 17 Dec 2014 20:43:54 +0000 (21:43 +0100)]
fstype(1): cleanup

9 years agoboot(8): the method!server notation isnt usefull anymore...
cinap_lenrek [Wed, 17 Dec 2014 10:18:05 +0000 (11:18 +0100)]
boot(8): the method!server notation isnt usefull anymore...

- in 9front, the bootargs are in the form: method!device args
- remove redundant and wrong paragraphs regarding tcp booting
- document il boot method
- fix boot and bootrc confusions

9 years agoteg2, xen: remove unused bootdisk[] and fix conf.nswppo factor in kernel memory size...
cinap_lenrek [Wed, 17 Dec 2014 09:03:45 +0000 (10:03 +0100)]
teg2, xen: remove unused bootdisk[] and fix conf.nswppo factor in kernel memory size calculation

9 years agopc: remove unused bootdisk[] variable
cinap_lenrek [Wed, 17 Dec 2014 08:45:50 +0000 (09:45 +0100)]
pc: remove unused bootdisk[] variable

9 years agopc, pc64: remove old B.COM command line parsing and just pass tokenized BOOTLINE...
cinap_lenrek [Wed, 17 Dec 2014 08:23:21 +0000 (09:23 +0100)]
pc, pc64: remove old B.COM command line parsing and just pass tokenized BOOTLINE to /boot/boot as argv[]

this change allows command line passing to /boot/boot from qemu like:
qemu -kernel 9pcf -append "-u glenda tcp"

9 years agokernel: replace ulong with uintptr in ucallocb() and fix unneeded parentheses
cinap_lenrek [Tue, 16 Dec 2014 08:41:05 +0000 (09:41 +0100)]
kernel: replace ulong with uintptr in ucallocb() and fix unneeded parentheses

9 years agokernel: remove obsolete comment regarding Mntcache size in */main.c
cinap_lenrek [Tue, 16 Dec 2014 07:11:21 +0000 (08:11 +0100)]
kernel: remove obsolete comment regarding Mntcache size in */main.c

9 years agokernel: new mount cache
cinap_lenrek [Tue, 16 Dec 2014 04:41:20 +0000 (05:41 +0100)]
kernel: new mount cache

this is a new more simple version of the mount cache
that does not require dynamic allocations for extends.

the Mntcache structure now contains a page bitmap
that is used for quick page invalidation. the size
of the bitmap is proportional to MAXCACHE.

instead of keeping track of cached range in the
Extend data structure, we keep all the information
in the Page itself. the offset from the page where
the cache range starts is in the low PGSHIT bits and
the end in the top bits of Page.va.

we choose Page.daddr to map 1:1 the Mountcache number
and page number (pn) in the Mountcache. to find a page,
we first check the bitmap if the page is there and then
do a pagelookup() with the daddr key.

9 years agoaudio/flacdec: fix pcmconv pipeline race (thanks mischief and henesy)
cinap_lenrek [Mon, 15 Dec 2014 06:26:03 +0000 (07:26 +0100)]
audio/flacdec: fix pcmconv pipeline race (thanks mischief and henesy)

9 years agokernel: minor changes to mount cache
cinap_lenrek [Mon, 15 Dec 2014 05:28:27 +0000 (06:28 +0100)]
kernel: minor changes to mount cache

change page cache ids (bid) to uintptr so we use the full
address space of Page.daddr.

make maxcache offset check consistent in cread().

use consistent types in cupdate() and simplify with goto.

make internal functions static.

use nil instead of 0 for pointers.

9 years agoxen: fix cross build
cinap_lenrek [Mon, 15 Dec 2014 00:43:31 +0000 (01:43 +0100)]
xen: fix cross build

9 years agokernel: use new disk/mkfs -o option to get proper source filename list for bootfs...
cinap_lenrek [Mon, 15 Dec 2014 00:04:05 +0000 (01:04 +0100)]
kernel: use new disk/mkfs -o option to get proper source filename list for bootfs.proto

9 years agodisk/mkfs: add -o flag to list source files
cinap_lenrek [Sun, 14 Dec 2014 23:52:22 +0000 (00:52 +0100)]
disk/mkfs: add -o flag to list source files

9 years agomerge
cinap_lenrek [Sun, 14 Dec 2014 21:27:06 +0000 (22:27 +0100)]
merge

9 years agokernel: remove *.acid files in nuke target instead of $CONF.clean target
cinap_lenrek [Sun, 14 Dec 2014 21:25:15 +0000 (22:25 +0100)]
kernel: remove *.acid files in nuke target instead of $CONF.clean target

9 years agopng: fail on invalid bpc
ftrvxmtrx [Sun, 14 Dec 2014 21:20:06 +0000 (22:20 +0100)]
png: fail on invalid bpc

9 years agokernel: get rid of /boot/boot parametrization
cinap_lenrek [Sun, 14 Dec 2014 21:10:34 +0000 (22:10 +0100)]
kernel: get rid of /boot/boot parametrization

there is no use for "bootdisk" variable parametrization
of /boot/boot and no point for the boot section with its
boot methods in the kernel configuration anymore. so
mkboot and boot$CONF.out are gone.

move the rules for bootfs.paq creation in 9/boot/bootmkfile.
location of bootfs.proto is now in 9/boot/bootfs.proto.
our /boot/boot target is now just "boot".

9 years agoxen: fix mtrr dummy functions
cinap_lenrek [Sun, 14 Dec 2014 20:58:02 +0000 (21:58 +0100)]
xen: fix mtrr dummy functions

9 years agobio: add Bfdopen() from plan9port
cinap_lenrek [Sun, 14 Dec 2014 19:21:42 +0000 (20:21 +0100)]
bio: add Bfdopen() from plan9port

9 years agokernel: evaluate dependencies of bootfs.proto files for bootfs.paq
cinap_lenrek [Sat, 13 Dec 2014 23:00:59 +0000 (00:00 +0100)]
kernel: evaluate dependencies of bootfs.proto files for bootfs.paq

expand the list of files specified in bootfs.proto and use them
as dependencies to bootfs.paq rule. this way, bootfs.paq is
regenerated when the to be included files have been modified.

9 years agovarious cmds: replace magic numbers with Kdel/Keof, etc
ftrvxmtrx [Sat, 13 Dec 2014 20:58:49 +0000 (21:58 +0100)]
various cmds: replace magic numbers with Kdel/Keof, etc

9 years agokernel: correct dependency for printstub.$O instead of print.$O
cinap_lenrek [Sat, 13 Dec 2014 20:44:51 +0000 (21:44 +0100)]
kernel: correct dependency for printstub.$O instead of print.$O

9 years agostats: handle 'q' to close
mischief [Sat, 13 Dec 2014 19:28:16 +0000 (11:28 -0800)]
stats: handle 'q' to close

a side effect of this is keys typed other than q/Del no longer get drawn on top of the window.

9 years agopc, pc64: untangle embedded controller (ec) dependency from devarch
cinap_lenrek [Sat, 13 Dec 2014 05:23:23 +0000 (06:23 +0100)]
pc, pc64: untangle embedded controller (ec) dependency from devarch

9 years agokernel: generate dummy bootscreeninit() function when building without vga device
cinap_lenrek [Sat, 13 Dec 2014 04:29:51 +0000 (05:29 +0100)]
kernel: generate dummy bootscreeninit() function when building without vga device

9 years agondb/cs: fix spelling (thanks mischief)
cinap_lenrek [Sat, 13 Dec 2014 22:16:04 +0000 (23:16 +0100)]
ndb/cs: fix spelling (thanks mischief)

9 years agoacme/win: fix mistake
cinap_lenrek [Fri, 12 Dec 2014 20:18:31 +0000 (21:18 +0100)]
acme/win: fix mistake

have to save partial reminder before null terminating current
event buffer :)

9 years agoacme/win: remove old crap
cinap_lenrek [Fri, 12 Dec 2014 20:09:49 +0000 (21:09 +0100)]
acme/win: remove old crap

9 years agomerge
cinap_lenrek [Fri, 12 Dec 2014 20:07:44 +0000 (21:07 +0100)]
merge

9 years agoacme/win: fix fswrite() not assuming iounit < EVENTSIZE
cinap_lenrek [Fri, 12 Dec 2014 20:06:16 +0000 (21:06 +0100)]
acme/win: fix fswrite() not assuming iounit < EVENTSIZE

9 years agofortunes: UX-wise (and generally speaking, for most common uses of a computer these...
stanley lieber [Thu, 11 Dec 2014 19:45:51 +0000 (14:45 -0500)]
fortunes: UX-wise (and generally speaking, for most common uses of a computer these days), Plan9 is, sadly, almost useless.

9 years agoqmail: call mail instead of smtp with the wrong path
stanley lieber [Thu, 11 Dec 2014 19:45:16 +0000 (14:45 -0500)]
qmail: call mail instead of smtp with the wrong path

9 years agocfs: change default mountpoint to /mnt/cfs and fix the manual (thanks mischief)
cinap_lenrek [Thu, 11 Dec 2014 19:38:04 +0000 (20:38 +0100)]
cfs: change default mountpoint to /mnt/cfs and fix the manual (thanks mischief)

9 years agoacme: fix buffer overrun in xfidutfread() and xfidruneread(), cleanup
cinap_lenrek [Thu, 11 Dec 2014 19:20:47 +0000 (20:20 +0100)]
acme: fix buffer overrun in xfidutfread() and xfidruneread(), cleanup

the utf8 buffers b1 where allocated from fbufalloc() which gives
us BUFSIZE bytes, but Xfid->count can be bigger than that. so just
emalloc() the requested number of bytes.

when converting from Runes to utf-8, we have to account for the
terminating '\0' byte snprint() places, so fix the maxrune number
calculation instead of using BUFSIZE+1 as buffer size.

9 years agokbmap: fix sprint() buffer overflow (thanks silasm)
cinap_lenrek [Thu, 11 Dec 2014 17:32:50 +0000 (18:32 +0100)]
kbmap: fix sprint() buffer overflow (thanks silasm)

A buffer can be overflowed in the init function of kbmap.c by using a filename of more than 112 characters.

sample output:
% cd /sys/lib/kbmap
% touch aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
% kbmap
kbmap 1974: suicide: sys: trap: fault write addr=0xa6a96510 pc=0x000011df
offending code is most likely the call to sprint in the init function of /sys/src/cmd/kbmap.c,
which in this case writes /sys/lib/kbmap/$file to a 128-bit buffer.
I'm willing to submit a patch for this myself along with a few minor improvements/fixes to kbmap
if I can figure out the nuances of doing so.

--silasm

9 years agoplan9.ini(8): fix typo (thanks ftrvxmtrx)
cinap_lenrek [Thu, 11 Dec 2014 16:03:01 +0000 (17:03 +0100)]
plan9.ini(8): fix typo (thanks ftrvxmtrx)

9 years agoplan9.ini(8): etheryuk
cinap_lenrek [Wed, 10 Dec 2014 18:38:44 +0000 (19:38 +0100)]
plan9.ini(8): etheryuk

9 years agoplan9.ini(8): document bcm and virtio ethernet and hda and ac97 audio.
cinap_lenrek [Wed, 10 Dec 2014 18:29:46 +0000 (19:29 +0100)]
plan9.ini(8): document bcm and virtio ethernet and hda and ac97 audio.

9 years agoplan9.ini(8): remove factotumopts= (not implemented), add secstore=, clarify domain...
cinap_lenrek [Wed, 10 Dec 2014 17:34:08 +0000 (18:34 +0100)]
plan9.ini(8): remove factotumopts= (not implemented), add secstore=, clarify domain name use for fs= and auth=

9 years agobootrc: keep original address when ndb/dnsgetip fails and let dial complain
cinap_lenrek [Wed, 10 Dec 2014 17:02:41 +0000 (18:02 +0100)]
bootrc: keep original address when ndb/dnsgetip fails and let dial complain

9 years agobootrc: use "address" instead "ip" in wording netboot questions, as we domain names...
cinap_lenrek [Wed, 10 Dec 2014 16:37:53 +0000 (17:37 +0100)]
bootrc: use "address" instead "ip" in wording netboot questions, as we domain names are allowed now.

9 years agomerge
cinap_lenrek [Wed, 10 Dec 2014 02:24:21 +0000 (03:24 +0100)]
merge

9 years agobootfs: remove disk/kfs fileserver, nobody uses it
cinap_lenrek [Wed, 10 Dec 2014 02:22:59 +0000 (03:22 +0100)]
bootfs: remove disk/kfs fileserver, nobody uses it

9 years agobootrc: add ndb/dnsgetip resolver to bootfs so domain names can be used for fs=,...
cinap_lenrek [Wed, 10 Dec 2014 02:22:14 +0000 (03:22 +0100)]
bootrc: add ndb/dnsgetip resolver to bootfs so domain names can be used for fs=, auth= and secstore= (thanks mischief)

9 years agobootrc: preserve #ec/fs (thanks _sl)
cinap_lenrek [Wed, 10 Dec 2014 02:16:36 +0000 (03:16 +0100)]
bootrc: preserve #ec/fs (thanks _sl)

9 years agondb(8): document ndb/dnsgetip
mischief [Wed, 10 Dec 2014 01:33:09 +0000 (17:33 -0800)]
ndb(8): document ndb/dnsgetip

9 years agodnsgetip: filter negative answers, remove -f flag, use dnsgetip logfile
cinap_lenrek [Wed, 10 Dec 2014 01:30:25 +0000 (02:30 +0100)]
dnsgetip: filter negative answers, remove -f flag, use dnsgetip logfile

9 years agondb: add dnsgetip program to resolve A and AAAA records during bootstrapping
mischief [Wed, 10 Dec 2014 00:18:08 +0000 (16:18 -0800)]
ndb: add dnsgetip program to resolve A and AAAA records during bootstrapping

9 years agobootrc: handle multiple fs and auth addresses in netboot, always set auth= in /net/ndb
cinap_lenrek [Tue, 9 Dec 2014 23:30:07 +0000 (00:30 +0100)]
bootrc: handle multiple fs and auth addresses in netboot, always set auth= in /net/ndb

9 years agobootrc: do not pass authserver with -a flag to factotum, handle multiple secstore...
cinap_lenrek [Tue, 9 Dec 2014 21:26:30 +0000 (22:26 +0100)]
bootrc: do not pass authserver with -a flag to factotum, handle multiple secstore addresses

factotum is started in bootrc before the network is setup
(as we need it to negotiate wpa key for wifi). once, the network
is setup, the bootstrap authservers are passed in /net/ndb,
which factotum reads when doing bootstrap authdial. it does
this only when no authserver was specified earlier! but we
want net.rc to select the proper bootstrap authserver...

the $secstore variable takes precedence over $auth. as
there is no connection server yet, we have to select the set
of servers here and pass them to secstore with -s flag.
note that this will work if multiple addresses where
specified.

9 years agofactotum: accept multiple bootstrap auth servers in /net/ndb and -a arguments
cinap_lenrek [Tue, 9 Dec 2014 21:07:37 +0000 (22:07 +0100)]
factotum: accept multiple bootstrap auth servers in /net/ndb and -a arguments

we might have to deal with multiple bootstrap auth server
ip addresses (ipv4 and ipv6) in the future, so deal with them.

9 years agosecstore: allow multiple server addresses in $secstore and multiple -s arguments
cinap_lenrek [Tue, 9 Dec 2014 20:53:07 +0000 (21:53 +0100)]
secstore: allow multiple server addresses in $secstore and multiple -s arguments

on bootstrap, we might have to deal with multiple auth server ip
addresses (ipv4 and ipv6), so deal with it.

9 years agodevsegment: fix segmentcreate function signature
mischief [Tue, 9 Dec 2014 07:16:22 +0000 (23:16 -0800)]
devsegment: fix segmentcreate function signature

9 years agomerge
cinap_lenrek [Tue, 9 Dec 2014 02:25:52 +0000 (03:25 +0100)]
merge

9 years agoethervirtio: fix queue notifications and interrupt flags, avoid useless notifications
cinap_lenrek [Tue, 9 Dec 2014 02:23:53 +0000 (03:23 +0100)]
ethervirtio: fix queue notifications and interrupt flags, avoid useless notifications

bug: Rnointerrupt was used on Vqueue.used.flags instead of
Vqueue.avail.flags.

introduce vqnotify() function that notifies the device
about available ring advancement.

avoid queue notifications there that can be slow by
checking Unonotify flag in Vqueue.used.flags.

keep track of the number of notifications in the queue.

9 years agohgwebfs: add fake add_handler method for HTTPRangeHandler()
cinap_lenrek [Tue, 9 Dec 2014 22:11:05 +0000 (23:11 +0100)]
hgwebfs: add fake add_handler method for HTTPRangeHandler()

provide a add_handler() so code trying to add
byterange.HTTPRangeHandler will succeed. webfs
does handle "206 Partial Content" already.

9 years agoip/ipconfig: treat /32 mask as /0
mischief [Tue, 9 Dec 2014 01:27:40 +0000 (17:27 -0800)]
ip/ipconfig: treat /32 mask as /0

some dhcp servers send a mask of 255.255.255.255 to indicate the gateway is directly routeable.

thanks to david du colombier for this patch.

9 years agoethervirtio: feature negotiation, allow setting mac address, dont read isr from ifsta...
cinap_lenrek [Mon, 8 Dec 2014 18:19:53 +0000 (19:19 +0100)]
ethervirtio: feature negotiation, allow setting mac address, dont read isr from ifstatus, avoid indirection

- properly negotiate Fctrlrx feature bit for promisc and multicast.
- allow setting mac address with ea= option from plan9.ini
- dont read the isr register from ifstats() as it has the side effect of reseting isr status
- embedd the Vqueue array in the Ctlr structure avoiding indirection
- add a interrupt counter Vqueue.nintr for statistical purposes
- only read network status register if the feature has been negotiated
- change name to "virtio" as "ethervirtio" is kind of redundant

9 years agondb/dns: ignore terminating authoritative flag for no-answer when more nameservers...
cinap_lenrek [Mon, 8 Dec 2014 00:26:07 +0000 (01:26 +0100)]
ndb/dns: ignore terminating authoritative flag for no-answer when more nameservers are provided

continue recursing when we get empty but non-negative answer
from a (claimed) authoritative nameserer that provides more
nameservers.

this fixes wordpress dns:

63766.3: sending to 192.0.80.93/ns1.wordpress.com bossypally.files.wordpress.com ip
63766: rcvd OK from 192.0.80.93 (authoritative)
Q:    bossypally.files.wordpress.com ip
Auth: files.wordpress.com              5 min           ns    mdns1.wordpress.com
      files.wordpress.com              5 min           ns    mdns2.wordpress.com
      files.wordpress.com              5 min           ns    mdns3.wordpress.com
      files.wordpress.com              5 min           ns    mdns4.wordpress.com
      files.wordpress.com              5 min           ns    mdns5.wordpress.com
Hint: mdns1.wordpress.com              4 hr            ip    192.0.75.7
      mdns2.wordpress.com              4 hr            ip    198.181.117.7
      mdns3.wordpress.com              4 hr            ip    198.181.116.7
      mdns4.wordpress.com              4 hr            ip    198.181.118.7
      mdns5.wordpress.com              4 hr            ip    192.0.74.7

63766.4: sending to 192.0.75.7/mdns1.wordpress.com bossypally.files.wordpress.com ip
63766: rcvd OK from 192.0.75.7 (authoritative)
Q:    bossypally.files.wordpress.com ip
Ans:  bossypally.files.wordpress.com   5 min           ip    192.0.72.2
      bossypally.files.wordpress.com   5 min           ip    192.0.72.3
----------------------------
answer bossypally.files.wordpress.com   5 min           ip    192.0.72.2
answer bossypally.files.wordpress.com   5 min           ip    192.0.72.3
----------------------------

note the authoritative flag in the first response from ns1.wordpress.com that
would otherwise terminate the search.

9 years agoethervirtio: fix missing */
cinap_lenrek [Sun, 7 Dec 2014 17:20:47 +0000 (18:20 +0100)]
ethervirtio: fix missing */

9 years agoethervirtio: implement promisc and multicast mode, cleanup
cinap_lenrek [Sun, 7 Dec 2014 16:58:51 +0000 (17:58 +0100)]
ethervirtio: implement promisc and multicast mode, cleanup

add vctlcmd() function to setup and comlete control commands.
handle Vctlq and implement promiscuous and multicast mode commands.
remove Vqueue.block[] and Vqueue.header. these are not properties
of the queue (Vctlq as no block array).

the block[] array only needs to be half the queue size as we use
two descriptors per packet.

fix broken shutdown() and remove useless ctl() function.

9 years agoethervirtio: avoid dumping packets in txproc when ring gets full
cinap_lenrek [Sun, 7 Dec 2014 14:34:53 +0000 (15:34 +0100)]
ethervirtio: avoid dumping packets in txproc when ring gets full

9 years ago9boot(8): -from
cinap_lenrek [Sun, 7 Dec 2014 13:34:15 +0000 (14:34 +0100)]
9boot(8): -from

9 years agostrcat(2): fix strchr() and strrchr() function prototypes (thanks BurnZeZ)
cinap_lenrek [Sun, 7 Dec 2014 13:26:41 +0000 (14:26 +0100)]
strcat(2): fix strchr() and strrchr() function prototypes (thanks BurnZeZ)

9 years agopc, pc64: add and enable ethervirtio driver
mischief [Sun, 7 Dec 2014 06:13:44 +0000 (22:13 -0800)]
pc, pc64: add and enable ethervirtio driver

many thanks to cinap_lenrek, erik quanstrom and david du colombier for feedback and testing.

9 years agoresize: fix typo
mischief [Thu, 27 Nov 2014 03:32:16 +0000 (19:32 -0800)]
resize: fix typo

9 years agoastro: fix typo
mischief [Thu, 27 Nov 2014 02:56:00 +0000 (18:56 -0800)]
astro: fix typo

9 years agogames/md: fix interlace at scale 2
cinap_lenrek [Sat, 22 Nov 2014 19:35:28 +0000 (20:35 +0100)]
games/md: fix interlace at scale 2

9 years agogames/md: interlacing, sort of
aiju [Sat, 22 Nov 2014 18:40:36 +0000 (19:40 +0100)]
games/md: interlacing, sort of

9 years agoaudio(1): add mixfs to NAME section
cinap_lenrek [Sat, 22 Nov 2014 17:17:06 +0000 (18:17 +0100)]
audio(1): add mixfs to NAME section

9 years agopc, pc64: more conservative pcirouting
cinap_lenrek [Sat, 22 Nov 2014 16:23:46 +0000 (17:23 +0100)]
pc, pc64: more conservative pcirouting

when we hit a conflict where the pci INTL register gives us
a different irq than we get from southbridge irq router, dont
just change the router setting to the bios assigned irq (that
was previously known as the BIOS workarround), but assume the
southbridge setting to be valid and change the pci INTL register
on the device to it.

only when the router link doesnt seem to be configured or
disabled, then program the router to the irq that bios asisgned
in the INTL register.

the reason is that changing the router setting changes the
irq routing for *all* devices on the same link and changing
it breaks previously checked and valid interrupt routings.
(so happend with virtualbox where the last device on the bus
is some powermanagement device that has wrong INTL setting
and changing the routing breaks the ethernet interrupts)

this change shouldnt affect modern machines which use ioapic
and mp tables or acpi for pci interrupt routing.

9 years agopc, pc64: preserve last KB of conventional memory (might contain bios tables)
cinap_lenrek [Thu, 20 Nov 2014 18:05:43 +0000 (19:05 +0100)]
pc, pc64: preserve last KB of conventional memory (might contain bios tables)

we add new function convmemsize() that returns the size of
*usable* conventional memory that does some sanity checking
and reserves the last KB below the top of memory pointer.

this avoids lowraminit() overriding potential bios tables
and sigsearch() going off the rails looking for tables
at above 640K.

9 years agogames/snes: do message display in screenproc
cinap_lenrek [Thu, 20 Nov 2014 00:26:31 +0000 (01:26 +0100)]
games/snes: do message display in screenproc

do the message drawing from the screenproc so there are no
race conditions with libdraw.

9 years agogames/md, games/snes: fix memory leak on resize
cinap_lenrek [Wed, 19 Nov 2014 20:01:36 +0000 (21:01 +0100)]
games/md, games/snes: fix memory leak on resize

9 years agohjfs(8): theres no chown in plan9, link to chgrp(1) manpage.
cinap_lenrek [Wed, 19 Nov 2014 00:31:20 +0000 (01:31 +0100)]
hjfs(8): theres no chown in plan9, link to chgrp(1) manpage.

9 years agogames/snes: fix extern pic declaration to match reality
cinap_lenrek [Tue, 18 Nov 2014 16:03:45 +0000 (17:03 +0100)]
games/snes: fix extern pic declaration to match reality

9 years agogames/md: apply same screen flush changes from games/snes
cinap_lenrek [Tue, 18 Nov 2014 16:00:44 +0000 (17:00 +0100)]
games/md: apply same screen flush changes from games/snes

9 years agogames/snes: flush screen in parallel to audio (fixes buffer underruns on x200s)
cinap_lenrek [Tue, 18 Nov 2014 15:07:34 +0000 (16:07 +0100)]
games/snes: flush screen in parallel to audio (fixes buffer underruns on x200s)

the x200s is too slow on a single core to keep up without
audio buffer underruns, so the idea is to flush screen
in parallel to witing audio samples in a separate process.

with the proc, we also can keep updating the screen on resize
when paused.

9 years agogames/snes: save more audio state
aiju [Mon, 17 Nov 2014 16:00:41 +0000 (17:00 +0100)]
games/snes: save more audio state

9 years agoaudiohda: add pci ids for Intel 8 Series Lynx Point (thanks quux)
cinap_lenrek [Mon, 17 Nov 2014 09:12:29 +0000 (10:12 +0100)]
audiohda: add pci ids for Intel 8 Series Lynx Point (thanks quux)

Based on OpenBSD driver:
- /sys/dev/pci/azalia.c rev 1.209
- /sys/dev/pci/pcidevs rev 1.1689
- only tested on amd64; machine is an Acer V5-573G
    exact model: V5-573G-74518G1Takk