summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-06devusb: print Hci.port as 64-bit uvlongcinap_lenrek
2020-06-06devether: print Ether.port as 64-bit uvlongcinap_lenrek
2020-06-06devpnp: print pci membar as 64-bit uvlongcinap_lenrek
2020-06-06bcm64: bring pci code in line with the pc/pc64cinap_lenrek
2020-06-06bcm64: use uvlong for ISAConf.portcinap_lenrek
2020-06-06bcm64: use 64-bit uvlong physical address in vmap()cinap_lenrek
2020-06-06pc, pc64: implement 64-bit pci membar supportcinap_lenrek
2020-06-06pc, pc64: use 64-bit physical addresses for ISAConf.portcinap_lenrek
2020-06-06pc, pc64: use 64-bit physical addresses for vmap() and upaalloc()cinap_lenrek
2020-06-05ape: add missing rerrstr.cOri Bernstein
2020-06-05ape: make libplumb available under ape.Ori Bernstein
This adds the mkfiles and plumb.h to ape, similar to how libdraw is made available. This is used for ports such as netsurf.
2020-06-04aux/getflags: fix named rune arguments.Ori Bernstein
Flags can be runes. That means that we can't just look at p[1] to decide if we have a named argument, we need to look one rune forward. This change does that.
2020-06-01mergecinap_lenrek
2020-05-31acme: implement 'scratch' ctl command (thanks Drew DeVault)kvik
The new command marks the target window as a scratch window -- a window whose state cannot be "dirtied" by changes made to its body, therefore avoiding warnings about unsaved changes when deleting the window or exiting acme. Existing examples of scratch windows are error, directory, and guide windows, whose scratchness is set internally. With the new command users and programs alike can create their own scratch windows. This is put to use in acme's own win(1).
2020-05-31kernel: remove unused segment argument in freepte()cinap_lenrek
2020-05-31pc, xen: make PAT support optional (for xen)cinap_lenrek
2020-05-30ape/libdraw: add missing eenter (thanks phil9)Ori Bernstein
2020-05-30imap4d: reject invalid month in date2tm()cinap_lenrek
2020-05-30rc: avoid forking for final command that has variable assignments (to get ↵cinap_lenrek
$apid right) basically, we want the following commands to print the same pid twice: rc -c 'cat /dev/pid &;echo $apid' vs: rc -c 'a=1 cat /dev/pid &;echo $apid' basically, Xsimple() calls exitnext() to determine if a simple command should be promoted to exec, by peeking ahead into the code and searching for Xexit instruction. Xexit might not follow immediately after the Xsimple instruction because of redirections, which exitnext() would skip. but it would not skip the Xunlocal instructions that where added by the variable assignment.
2020-05-27ip/cifsd: add FIND_FIRST2 SMB_FIND_FILE_FULL_DIRECTORY_INFO info levelcinap_lenrek
2020-05-26sshnet: prevent ssh process from keeping the mount alivecinap_lenrek
2020-05-24pc, pc64: fix wrong mtrr physmask() for machines without extended address ↵cinap_lenrek
size msr
2020-05-24awk: fix race condition with sub-mk in mkfilecinap_lenrek
the maketab helper program was generated in parallel, which had a dependency to y.tab.h which lead to yacc running twice in parallel. this removes the dependency to y.tab.h in the virtual maketab.$objtype target to prevent this race condition. the dependency to y.tab.h is resolved in the main mk at the $cputype.maketab target which serializes with the other targets.
2020-05-24usbehci: release ctlr ilock before calling pollcheck()cinap_lenrek
2020-05-24mergecinap_lenrek
2020-05-24usbehci: avoid kproc() while holding poll lockcinap_lenrek
2020-05-24man(9): remove accidentally commited indicescinap_lenrek
2020-05-23mergecinap_lenrek
2020-05-23ip/tinc: accept udp connection from any udp source portcinap_lenrek
the remote host might be behind a NAT which translates the source port, so if no host could be found, lookup the ip address only.
2020-05-23paint: change colors in the palette with button 3Sigrid
2020-05-23libaml: implement ToDecimalString and ToHexString operationscinap_lenrek
2020-05-22pc, pc64: do page attribute table (PAT) init early in cpuidentify()cinap_lenrek
the page attribute table was initialized in mmuinit(), which is too late for bootscreen(). So now we check for PAT support and insert the write-combine entry early in cpuidentify(). this might have been the cause of some slow EFI framebuffers on machines with overlapping or insufficient MTRR entries.
2020-05-17libc/arm64: work arround linker bug for cas()cinap_lenrek
at the _cas0 label, the linker would generate spurious stack adjustment before the return: atexitdont+0x84 0x000000000003614c CLREX $0xf atexitdont+0x88 0x0000000000036150 MOVW R31,R0 atexitdont+0x8c 0x0000000000036154 MOV (SP)16!,R30 <- ???????????? atexitdont+0x90 0x0000000000036158 RETURN the work arround is to move the code into its own cas0 text symbol. this fixes impossible cwfs crashes in srvi().
2020-05-177l: handle dupok flag in TEXT/GLOBL datacinap_lenrek
2020-05-17Add stdbool.h to apeOri Bernstein
in accordance with c99:7.16. Used by perl, trivial enough that I feel ok with adding it before the port is fully done.
2020-05-167l: fix mistakecinap_lenrek
2020-05-15#pragma ref no longer existsOri Bernstein
It appears to be an antiquated form of 'USED(x)'
2020-05-15Fix scans of more than one character in %[]Ori Bernstein
This got broken in d8e877a89dae, where we returned 0 on the first mismatch; we want to return 0 only when we consumed no characters.
2020-05-13stop fiddling with path construction.Ori Bernstein
There's fd2path, which gives back the full path directly. This makes the code even simpler.
2020-05-13fix yacc crash with absolute pathsOri Bernstein
When passing an absolute file path to yacc, we would skip initializing inpath, leaving it null. This would cause Bopen to die. We would similarly fail to report an error if we tried to get the current working directory, and then die when constructing inpath. This fixes both cases.
2020-05-13ape: fix name clash, have to use _SLEEP syscall instead of ape sleep in ↵cinap_lenrek
plan9 code (thanks jamos) this fixes etimer() from ape built libdraw as posix sleep() uses seconds while plan9 uses miliseconds.
2020-05-12cc: dont export gethunk(), hunk, nhunk and thunkcinap_lenrek
2020-05-12cc: get rid of hunk pointer fiddling and just use alloc()cinap_lenrek
2020-05-12?l: remove direct hunk manipulation from linkers, just call malloc()cinap_lenrek
as with recent changes, cc's malloc() could make the hunk pointer misaligned. in the the compilers, the hunk pointer is used directly by the lexer with no effort to to keep the hunk pointer aligned. alloc/malloc still return aligned pointers, but hunk itself can be on a odd address after allocation of a odd sized amount of bytes. however, in the linkers, this assumption appears to be differnet. as most allocations mostly allocate padded structures. however, symbol lookup allocates strings on byte-size ganularity and the cc's malloc would misalign the hunk pointer after the malloc() call. while the rest of the code assumed hunk pointer was always aligned. this change removes all the hunk pointer fiddling from the linker, and we just call malloc() (which will use the fast implmenentation of cc, and should not really make much of a performance difference).
2020-05-12[ape] add missing conversion flags for scanfOri Bernstein
We're missing type flags for: hh: char ll: vlong z: size_t t: ptrdiff_t j: intmax_t The lack of '%lld' was causing us to fail when parsing timezone files. This brings us in line with the specifiers in the C99 standard, section 7.19.6.2p11
2020-05-10devip: fix ifc recursive rlock() deadlockcinap_lenrek
ipiput4() and ipiput6() are called with the incoming interface rlocked while ipoput4() and ipoput6() also rlock() the outgoing interface once a route has been found. it is common that the incoming and outgoing interfaces are the same recusive rlocking(). the deadlock happens when a reader holds the rlock for the incoming interface, then ip/ipconfig tries to add a new address, trying to wlock the interface. as there are still active readers on the ifc, ip/ipconfig process gets queued on the inteface RWlock. now the reader finds the outgoing route which has the same interface as the incoming packet and tries to rlock the ifc again. but now theres a writer queued, so we also go to sleep waiting four outselfs to release the lock. the solution is to never wait for the outgoing interface rlock, but instead use non-queueing canrlock() and if it cannot be acquired, discard the packet.
2020-05-10kernel: fix checkpages() and segflush() on SG_PHYSICAL type segmentscinap_lenrek
do not touch s->map on SG_PHYSICAL type segments as they do not have a pte map (s->mapsize == 0 && s->map == nil). also remove the SG_PHYSICAL switch in freepte(), this is never reached.
2020-05-10mergekvik
2020-05-10acme: add missed error checkskvik
2020-05-10mergecinap_lenrek