]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
5 years agobcm: fix l2 cache maintenance routines for raspi3 (armv8)
cinap_lenrek [Sun, 28 Oct 2018 05:05:43 +0000 (06:05 +0100)]
bcm: fix l2 cache maintenance routines for raspi3 (armv8)

armv8 has 16-way l2, so adjust shift for the set-way cache
tag format.

5 years agodevuart: don't sleep in uartdrainoutput() when called splhi or without a process
cinap_lenrek [Sat, 27 Oct 2018 18:00:12 +0000 (20:00 +0200)]
devuart: don't sleep in uartdrainoutput() when called splhi or without a process

uartdrainoutput() might be called in early initialization
from uartctl() without a process.

5 years agorc: skip searchpath for "", "." and ".."
cinap_lenrek [Sat, 27 Oct 2018 16:32:00 +0000 (18:32 +0200)]
rc: skip searchpath for "", "." and ".."

5 years agorc: use searchpath() logic to handle $cdpath
cinap_lenrek [Fri, 26 Oct 2018 08:25:23 +0000 (10:25 +0200)]
rc: use searchpath() logic to handle $cdpath

5 years agorc: ignore $cdpath for # device rooted paths (thanks kivik)
cinap_lenrek [Fri, 26 Oct 2018 07:52:05 +0000 (09:52 +0200)]
rc: ignore $cdpath for # device rooted paths (thanks kivik)

5 years agoadd Centrino Wireless-N 1030 (thanks lksmk from brazil)
23hiro [Thu, 25 Oct 2018 06:09:10 +0000 (08:09 +0200)]
add Centrino Wireless-N 1030 (thanks lksmk from brazil)

5 years ago/sys/lib/dist/mkfile: add pi.img target for raspi sdcard image
cinap_lenrek [Sun, 21 Oct 2018 22:16:04 +0000 (00:16 +0200)]
/sys/lib/dist/mkfile: add pi.img target for raspi sdcard image

5 years agoadd /sys/src/boot/bcm/mkfile to download raspberry pi bootcode firmware
cinap_lenrek [Sun, 21 Oct 2018 22:15:39 +0000 (00:15 +0200)]
add /sys/src/boot/bcm/mkfile to download raspberry pi bootcode firmware

5 years agonusb/serial: add support for CH340 serial converter
cinap_lenrek [Sun, 21 Oct 2018 15:24:33 +0000 (17:24 +0200)]
nusb/serial: add support for CH340 serial converter

5 years agomerge
cinap_lenrek [Sun, 21 Oct 2018 01:44:16 +0000 (03:44 +0200)]
merge

5 years agokbdfs: don't get confused by broken utf8
cinap_lenrek [Sun, 21 Oct 2018 01:42:24 +0000 (03:42 +0200)]
kbdfs: don't get confused by broken utf8

5 years agodoom: fix music for patch wads
qwx [Sat, 20 Oct 2018 22:11:39 +0000 (00:11 +0200)]
doom: fix music for patch wads

revert last change, which used games/wadfs to expose genmidi and music lumps.
replacements from patch wads were never seen that way.  instead, write genmidi
and music lumps to /tmp and play them from there.

5 years agoacme: fix fd checks - initialize Window.rdselfd to -1 not 0
cinap_lenrek [Sat, 20 Oct 2018 21:57:50 +0000 (23:57 +0200)]
acme: fix fd checks - initialize Window.rdselfd to -1 not 0

5 years agofix misleading/wrong fd checks
BurnZeZ [Sat, 20 Oct 2018 18:44:09 +0000 (18:44 +0000)]
fix misleading/wrong fd checks

5 years agolibdisk: catch null bytes in proto file, fix memory leaks
cinap_lenrek [Sat, 20 Oct 2018 18:32:22 +0000 (20:32 +0200)]
libdisk: catch null bytes in proto file, fix memory leaks

5 years agonusb/kb: work arround broken split transaction on raspi's dwc otg usb controller
cinap_lenrek [Sat, 20 Oct 2018 17:57:37 +0000 (19:57 +0200)]
nusb/kb: work arround broken split transaction on raspi's dwc otg usb controller

5 years agobcm: import changes for raspi2/3 from richard miller
cinap_lenrek [Sat, 20 Oct 2018 17:56:31 +0000 (19:56 +0200)]
bcm: import changes for raspi2/3 from richard miller

5 years agonusbrc: support for raspi3 ethernet
cinap_lenrek [Sat, 20 Oct 2018 17:53:57 +0000 (19:53 +0200)]
nusbrc: support for raspi3 ethernet

5 years agokernel: fix allocb for BLOCKALIGN*2 >= Hdrspc
cinap_lenrek [Sat, 20 Oct 2018 17:52:54 +0000 (19:52 +0200)]
kernel: fix allocb for BLOCKALIGN*2 >= Hdrspc

5 years agodevusb: use Enotconf[] string constant
cinap_lenrek [Sat, 20 Oct 2018 17:41:37 +0000 (19:41 +0200)]
devusb: use Enotconf[] string constant

5 years agonusb/ether: add support for lan78xx (raspi3) (thanks richard miller)
cinap_lenrek [Sat, 20 Oct 2018 17:30:16 +0000 (19:30 +0200)]
nusb/ether: add support for lan78xx (raspi3) (thanks richard miller)

5 years agonusb/ether: tune buffer size parameters for SMSC ethernet (raspi) (thanks richard...
cinap_lenrek [Sat, 20 Oct 2018 17:29:18 +0000 (19:29 +0200)]
nusb/ether: tune buffer size parameters for SMSC ethernet (raspi) (thanks richard miller)

5 years agoupas/fs: delete extra binaries
mischief [Thu, 18 Oct 2018 15:46:44 +0000 (08:46 -0700)]
upas/fs: delete extra binaries

5 years agotruetypefs(4): fix example path
mischief [Tue, 16 Oct 2018 19:53:55 +0000 (12:53 -0700)]
truetypefs(4): fix example path

5 years agokbdfs(8): fix nit
mischief [Tue, 16 Oct 2018 19:53:34 +0000 (12:53 -0700)]
kbdfs(8): fix nit

5 years agottf: SHZ also uses 0x36
aiju [Tue, 16 Oct 2018 19:26:40 +0000 (19:26 +0000)]
ttf: SHZ also uses 0x36

5 years agolibttf: add SHZ[] instruction
aiju [Tue, 16 Oct 2018 19:14:19 +0000 (19:14 +0000)]
libttf: add SHZ[] instruction

5 years agolibttf: dont unset LOOP in SHC
aiju [Tue, 16 Oct 2018 18:35:47 +0000 (18:35 +0000)]
libttf: dont unset LOOP in SHC

5 years agonusb/disk: also drive usb attached scsi devices
mischief [Mon, 15 Oct 2018 11:14:59 +0000 (04:14 -0700)]
nusb/disk: also drive usb attached scsi devices

5 years agonusb/joy: update misleading comment (thanks Tobias Heinecke)
aiju [Mon, 15 Oct 2018 09:10:34 +0000 (10:10 +0100)]
nusb/joy: update misleading comment (thanks Tobias Heinecke)

5 years agolibttf: instruction 0x24 is DEPTH, not CLEAR
mischief [Sat, 13 Oct 2018 09:20:31 +0000 (02:20 -0700)]
libttf: instruction 0x24 is DEPTH, not CLEAR

5 years agolibdisk: back out last change
cinap_lenrek [Fri, 12 Oct 2018 22:07:46 +0000 (00:07 +0200)]
libdisk: back out last change

5 years agossh: fix spinning due to sticky intr flag on connection timeout
cinap_lenrek [Fri, 12 Oct 2018 17:28:39 +0000 (19:28 +0200)]
ssh: fix spinning due to sticky intr flag on connection timeout

5 years agomerge
cinap_lenrek [Fri, 12 Oct 2018 17:04:22 +0000 (19:04 +0200)]
merge

5 years agolibdisk: check for proper line termination in proto file parser
cinap_lenrek [Fri, 12 Oct 2018 17:02:57 +0000 (19:02 +0200)]
libdisk: check for proper line termination in proto file parser

5 years agonamespace(4): fix $home bin paths
mischief [Fri, 12 Oct 2018 15:47:52 +0000 (08:47 -0700)]
namespace(4): fix $home bin paths

5 years agonamespace(4): document new TrueType path, drop unused Hershey fonts path
mischief [Fri, 12 Oct 2018 15:46:48 +0000 (08:46 -0700)]
namespace(4): document new TrueType path, drop unused Hershey fonts path

5 years agotruetypefs(4): document truetypefs
mischief [Fri, 12 Oct 2018 15:36:22 +0000 (08:36 -0700)]
truetypefs(4): document truetypefs

5 years agotruetypefs: fall back to width if advance is zero
mischief [Fri, 12 Oct 2018 15:34:17 +0000 (08:34 -0700)]
truetypefs: fall back to width if advance is zero

combining marks will have zero advance, but it results in zero-width
glyphs in subfonts.  fall back to width so something meaningful is
rendered even if its not combined properly.

5 years agotruetypefs: fix subfont indices (thanks aiju!)
mischief [Fri, 12 Oct 2018 15:32:19 +0000 (08:32 -0700)]
truetypefs: fix subfont indices (thanks aiju!)

5 years agotruetypefs: use /lib/font/ttf as default font path
mischief [Fri, 12 Oct 2018 15:31:05 +0000 (08:31 -0700)]
truetypefs: use /lib/font/ttf as default font path

5 years agolibttf: fix swapped argument in vscan()...
aiju [Fri, 12 Oct 2018 11:40:34 +0000 (11:40 +0000)]
libttf: fix swapped argument in vscan()...

5 years agoplumber: fix memory and filedescriptor leaks (thanks BurnZeZ)
cinap_lenrek [Thu, 11 Oct 2018 20:49:45 +0000 (22:49 +0200)]
plumber: fix memory and filedescriptor leaks (thanks BurnZeZ)

5 years agondb/dnstcp: only lookup the expected address type in findserver()
cinap_lenrek [Thu, 11 Oct 2018 16:57:14 +0000 (18:57 +0200)]
ndb/dnstcp: only lookup the expected address type in findserver()

theres no reason to lookup both A and AAAA records, as we already
know the type of srcip.

5 years agomerge
cinap_lenrek [Thu, 11 Oct 2018 16:34:14 +0000 (18:34 +0200)]
merge

5 years agondb/dns: use nil for pointers in dnresolve() args
cinap_lenrek [Thu, 11 Oct 2018 16:32:31 +0000 (18:32 +0200)]
ndb/dns: use nil for pointers in dnresolve() args

5 years agondb/dns: do recursive lookup for dnsslave=
cinap_lenrek [Thu, 11 Oct 2018 16:31:35 +0000 (18:31 +0200)]
ndb/dns: do recursive lookup for dnsslave=

5 years agondb/dns: avoid format strings in procname
cinap_lenrek [Thu, 11 Oct 2018 16:29:17 +0000 (18:29 +0200)]
ndb/dns: avoid format strings in procname

5 years agogames/gb: when the LCD is turned off, reset ppuy and ppustate to 0, fixes bug in...
aiju [Thu, 11 Oct 2018 16:25:11 +0000 (16:25 +0000)]
games/gb: when the LCD is turned off, reset ppuy and ppustate to 0, fixes bug in dragon warriors iii reported by mischief

5 years agoetheriwl: support type 2000 devices and the 2200 chip in x230t
mischief [Wed, 10 Oct 2018 23:37:13 +0000 (16:37 -0700)]
etheriwl: support type 2000 devices and the 2200 chip in x230t

5 years agonusb/joy: send magic packet to enable playstation controller events
mischief [Wed, 10 Oct 2018 20:56:28 +0000 (13:56 -0700)]
nusb/joy: send magic packet to enable playstation controller events

5 years agonusbrc: prevent nusb/kb from attaching to sony ps3 controller
mischief [Wed, 10 Oct 2018 20:49:03 +0000 (13:49 -0700)]
nusbrc: prevent nusb/kb from attaching to sony ps3 controller

5 years agohget: do a HEAD request to check if the file is already complete (thanks miscief)
cinap_lenrek [Wed, 10 Oct 2018 00:45:11 +0000 (02:45 +0200)]
hget: do a HEAD request to check if the file is already complete (thanks miscief)

when we continue a download, make sure the file isnt already
complete, as otherwise the server might respond with a 416
as the range request will out of range.

5 years agondb/dnstcp: return a proper non-answer when rejecting zone transfer
cinap_lenrek [Tue, 9 Oct 2018 04:34:27 +0000 (06:34 +0200)]
ndb/dnstcp: return a proper non-answer when rejecting zone transfer

5 years agondb/dns: fix format print warning for procsetname(), cleanup
cinap_lenrek [Tue, 9 Oct 2018 04:08:48 +0000 (06:08 +0200)]
ndb/dns: fix format print warning for procsetname(), cleanup

5 years agondb/dns: send_notify() to multiple ip addresses in parallel, filter myip()
cinap_lenrek [Tue, 9 Oct 2018 04:07:51 +0000 (06:07 +0200)]
ndb/dns: send_notify() to multiple ip addresses in parallel, filter myip()

5 years agondb/dnstcp: restrict DNS zone transfers to clients listed as dnsslave=
cinap_lenrek [Tue, 9 Oct 2018 04:02:36 +0000 (06:02 +0200)]
ndb/dnstcp: restrict DNS zone transfers to clients listed as dnsslave=

initial idea from Steve Simon, but doesnt require reverse
lookup of the callers ip address.

5 years agousbxhci: only clear RW1C bits when set.
cinap_lenrek [Mon, 8 Oct 2018 05:10:59 +0000 (07:10 +0200)]
usbxhci: only clear RW1C bits when set.

5 years agousbxhci: delay after reset, preserve reserved bits in legacy status control register...
cinap_lenrek [Mon, 8 Oct 2018 05:05:28 +0000 (07:05 +0200)]
usbxhci: delay after reset, preserve reserved bits in legacy status control register in handoff()

when clering smi enable bits in the legacy control/status register,
preserve the reserved bits. clear the RW1C bits.

linux code claims intel xhci controller needs a 1ms delay before
accessing any register after reset.

5 years agoremove /lib/tftpd from proto file
cinap_lenrek [Mon, 8 Oct 2018 00:18:02 +0000 (02:18 +0200)]
remove /lib/tftpd from proto file

5 years agoget rid of /lib/tftpd
cinap_lenrek [Mon, 8 Oct 2018 00:13:29 +0000 (02:13 +0200)]
get rid of /lib/tftpd

5 years agoip/dhcpd, ip/tftpd: change default for tftp homedir to /
cinap_lenrek [Mon, 8 Oct 2018 00:11:36 +0000 (02:11 +0200)]
ip/dhcpd, ip/tftpd: change default for tftp homedir to /

5 years agopc drivers: more pci cleanup
cinap_lenrek [Sun, 7 Oct 2018 21:38:41 +0000 (23:38 +0200)]
pc drivers: more pci cleanup

5 years agopc drivers: use pcienable() to handle device power up and missing initialization
cinap_lenrek [Sun, 7 Oct 2018 20:28:21 +0000 (22:28 +0200)]
pc drivers: use pcienable() to handle device power up and missing initialization

5 years agopc, pc64: add pcienable() and pcidisable() functions
cinap_lenrek [Sun, 7 Oct 2018 19:52:53 +0000 (21:52 +0200)]
pc, pc64: add pcienable() and pcidisable() functions

pcienable() puts a device in fully powered on state
and does some missing initialization that UEFI might
have skipped such as I/O and Memory requests being
disabled.

pcidisable() is ment to shutdown the device, but
currently just disables dma to prevent accidents.

5 years agoadd (unfinished but working) truetypefs
aiju [Sun, 7 Oct 2018 11:11:39 +0000 (11:11 +0000)]
add (unfinished but working) truetypefs

5 years ago9boot: get rid of 64 byte line length limit
cinap_lenrek [Sat, 6 Oct 2018 00:42:53 +0000 (02:42 +0200)]
9boot: get rid of 64 byte line length limit

5 years agomerge
cinap_lenrek [Fri, 5 Oct 2018 22:30:59 +0000 (00:30 +0200)]
merge

5 years agousbehci, usbxhci: add *noehcihandoff= and *noxhcihandoff= parameters
cinap_lenrek [Fri, 5 Oct 2018 22:29:05 +0000 (00:29 +0200)]
usbehci, usbxhci: add *noehcihandoff= and *noxhcihandoff= parameters

on Samsung ATIV Smart PC Pro XE00T1C-A01CL, the EHCI handoff
causes the system to freeze in UEFI mode as soon as we assert
the os semaphore bit.

until a general solution is found, provide these parameters to
disable the handoff for now as it seems to otherwise work fine.

5 years agopc, pc64: increase CONFADDR buffer from 4K to 24K
cinap_lenrek [Fri, 5 Oct 2018 22:26:07 +0000 (00:26 +0200)]
pc, pc64: increase CONFADDR buffer from 4K to 24K

move APBOOTSTRAP and TMPADDR to make space available for
boot parameters. which can become quite long such as *e820.

5 years agofortunes: I'm beginning to wonder if anyone is left that isn't part of 9front? -...
stanley lieber [Fri, 5 Oct 2018 03:23:50 +0000 (23:23 -0400)]
fortunes: I'm beginning to wonder if anyone is left that isn't part of 9front? -- Steve Stallion

5 years agocpurc: filter ipv6 loopback address for automatic ip address setup (thanks fhs)
cinap_lenrek [Tue, 2 Oct 2018 22:53:10 +0000 (00:53 +0200)]
cpurc: filter ipv6 loopback address for automatic ip address setup (thanks fhs)

5 years agodevip: remove unused QLock from udp and icmpv6 control blocks (thanks brho)
cinap_lenrek [Tue, 2 Oct 2018 22:47:34 +0000 (00:47 +0200)]
devip: remove unused QLock from udp and icmpv6 control blocks (thanks brho)

5 years ago5i ki qi vi: avoid buffer overflow in command read loop
cinap_lenrek [Sat, 29 Sep 2018 11:58:08 +0000 (13:58 +0200)]
5i ki qi vi: avoid buffer overflow in command read loop

5 years agoaudio/libogg: sync to ogg v1.3.3
mischief [Sat, 29 Sep 2018 00:28:51 +0000 (17:28 -0700)]
audio/libogg: sync to ogg v1.3.3

this corresponds to upstream git commit 4380566a44b8d5e85ad511c9c17eb04197863ec5.

5 years ago5e: byte access incorrectly checked for long; brk has to round up addresses
aiju [Fri, 28 Sep 2018 22:53:24 +0000 (22:53 +0000)]
5e: byte access incorrectly checked for long; brk has to round up addresses

5 years agoip/ipconfig: silently ignore prefix information with Autonomous flag clear
cinap_lenrek [Fri, 28 Sep 2018 18:23:53 +0000 (20:23 +0200)]
ip/ipconfig: silently ignore prefix information with Autonomous flag clear

5 years agoip/ipconfig: default onlink and autoflag to 1
cinap_lenrek [Fri, 28 Sep 2018 16:16:08 +0000 (18:16 +0200)]
ip/ipconfig: default onlink and autoflag to 1

5 years agodevip: only add interface route for "on-link" prefixes
cinap_lenrek [Fri, 28 Sep 2018 16:13:01 +0000 (18:13 +0200)]
devip: only add interface route for "on-link" prefixes

when a prefix is added with the onlink flag clear, packets
towards that prefix needs to be send to the default gateway
so we omit adding the interface route.

when the on-link flag gets changed to 1 later, we add the
interface route.

the on-link flag is sticky, so theres no way to clear it back
to zero except removing and re-adding the prefix.

5 years agovt: fix backup/forward after resize
cinap_lenrek [Thu, 27 Sep 2018 14:08:51 +0000 (16:08 +0200)]
vt: fix backup/forward after resize

5 years agovt: implement word select
cinap_lenrek [Thu, 27 Sep 2018 13:24:41 +0000 (15:24 +0200)]
vt: implement word select

5 years agoidn(2): add documentation for idn2utf() and utf2idn()
cinap_lenrek [Wed, 26 Sep 2018 13:58:19 +0000 (15:58 +0200)]
idn(2): add documentation for idn2utf() and utf2idn()

5 years agoprovide procsetname(2) manpage
cinap_lenrek [Wed, 26 Sep 2018 13:24:29 +0000 (15:24 +0200)]
provide procsetname(2) manpage

5 years agolibc: add procsetname()
cinap_lenrek [Wed, 26 Sep 2018 12:56:23 +0000 (14:56 +0200)]
libc: add procsetname()

5 years agolibc: return number of bytes produced for idn2utf() and utf2idn()
cinap_lenrek [Wed, 26 Sep 2018 12:32:17 +0000 (14:32 +0200)]
libc: return number of bytes produced for idn2utf() and utf2idn()

5 years agoip/ipconfig: increase maximum host and domainname size to 255 bytes. idn for -h option
cinap_lenrek [Tue, 25 Sep 2018 19:51:57 +0000 (21:51 +0200)]
ip/ipconfig: increase maximum host and domainname size to 255 bytes. idn for -h option

5 years agondb/inform: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:59:08 +0000 (20:59 +0200)]
ndb/inform: handle internationalized domain names

5 years agomerge
cinap_lenrek [Tue, 25 Sep 2018 18:45:11 +0000 (20:45 +0200)]
merge

5 years agoip/ipconfig: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:43:37 +0000 (20:43 +0200)]
ip/ipconfig: handle internationalized domain names

5 years agoip/dhcp6d: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:28:19 +0000 (20:28 +0200)]
ip/dhcp6d: handle internationalized domain names

5 years agoip/dhcpd: handle internationalized domain names
cinap_lenrek [Tue, 25 Sep 2018 18:17:56 +0000 (20:17 +0200)]
ip/dhcpd: handle internationalized domain names

5 years agondb/dns: use libc's new idn functions
cinap_lenrek [Tue, 25 Sep 2018 18:17:00 +0000 (20:17 +0200)]
ndb/dns: use libc's new idn functions

5 years agowebfs: remove idn.c
cinap_lenrek [Tue, 25 Sep 2018 18:16:06 +0000 (20:16 +0200)]
webfs: remove idn.c

5 years agowebfs: fix memory leak in Nfmt(), use libc's new idn functions
cinap_lenrek [Tue, 25 Sep 2018 18:15:24 +0000 (20:15 +0200)]
webfs: fix memory leak in Nfmt(), use libc's new idn functions

5 years agolibc: add utf2idn() and idn2utf() functions to deal with internationalized domain...
cinap_lenrek [Tue, 25 Sep 2018 18:14:25 +0000 (20:14 +0200)]
libc: add utf2idn() and idn2utf() functions to deal with internationalized domain names

5 years agomerge
cinap_lenrek [Tue, 25 Sep 2018 13:06:13 +0000 (15:06 +0200)]
merge

5 years agoip/dhcpd: implement rfc3397 dhcp search domain option (dnsdomain)
cinap_lenrek [Tue, 25 Sep 2018 13:04:19 +0000 (15:04 +0200)]
ip/dhcpd: implement rfc3397 dhcp search domain option (dnsdomain)

5 years agoip/ipconfig: implement rfc3397 dhcp dns search option (dnsdomain)
cinap_lenrek [Tue, 25 Sep 2018 13:02:29 +0000 (15:02 +0200)]
ip/ipconfig: implement rfc3397 dhcp dns search option (dnsdomain)

5 years agoDisallow '/' in file names.
Ori Bernstein [Tue, 25 Sep 2018 08:02:31 +0000 (01:02 -0700)]
Disallow '/' in file names.

A bad rename call could send a path with a '/' to cwfs.
This is invalid, and should be disallowed.

5 years agoip/ipconfig: handle noconfig flag for router advertisement, add debug prints, cleanup
cinap_lenrek [Mon, 24 Sep 2018 11:56:25 +0000 (13:56 +0200)]
ip/ipconfig: handle noconfig flag for router advertisement, add debug prints, cleanup