Commit graph

1708 commits

Author SHA1 Message Date
cinap_lenrek 1d62e1d8c8 usb: dont give up on unassigned pci irq line in hci driver
sometimes, the bios does not assign a interrupt line for pci
devices. this should not be fatal in case of mp ineterrupts
as long as there is intpin or msi can be used.

warn in intrenable() if we hit such a interrupt and set
irq to -1 to prevent it from getting enabled on the pic
or as isa interrupt in apic mode.
2012-09-15 03:17:17 +02:00
cinap_lenrek 336df4d4ae Qcoalesce patch to satisfy full read length 2012-09-14 03:35:15 +02:00
aiju d6e505167c the IRS 2012-09-13 18:44:44 +02:00
cinap_lenrek 8ca0a19825 merge 2012-09-13 09:39:15 +02:00
cinap_lenrek 4590975312 mothra: fix wrong ascent calculation if text element is too large, fix image border layout 2012-09-13 09:37:28 +02:00
stanley lieber 808e622e73 fortunes, rob, troll: the usual 2012-09-12 14:37:56 -05:00
cinap_lenrek 7b3c5d9257 mothra: special parse mode for <script> as parsetag gets confused by long javascript lines 2012-09-11 07:38:11 +02:00
aiju 6479692f56 fortunes! 2012-09-10 18:10:56 +02:00
cinap_lenrek f90682e32e add hungary keyboard map (contributed by bencef) 2012-09-10 11:01:36 +02:00
cinap_lenrek 0a48c1e340 lp: HTML table support 2012-09-10 08:10:30 +02:00
cinap_lenrek 8472086cc6 update manual pages for lp HTML support 2012-09-10 08:01:49 +02:00
cinap_lenrek f6dd4bb5ee lp: handle HTML files with html2ms | troff in process/generic 2012-09-10 07:40:28 +02:00
cinap_lenrek 2fd758bf2a mothra: simpler approach to ignoring <script> tags 2012-09-10 03:09:30 +02:00
cinap_lenrek f57e4ecb01 hgwebfs: remove prefixing // from file path 2012-09-10 22:20:40 +02:00
cinap_lenrek b62042cdeb libaml: store *value* instead of name reference in dest for alias op 2012-09-09 09:06:37 +02:00
cinap_lenrek 6aa1ca35c3 libaml: implement Alias and Debug instructions 2012-09-08 17:48:09 +02:00
google a71b3dff06 Print correct sizes in prep autopart. 2012-09-09 17:37:21 +12:00
google dd1b8df880 Add alignment hints for e512 ATA drives. 2012-09-09 17:22:12 +12:00
cinap_lenrek aead11533e support file:// urls in hgwebfs extension as apparently hg uses them. m( 2012-09-08 01:55:46 +02:00
stanley lieber 72c1608409 fortunes, rob, theo: I wasn't asking about 9front. 2012-09-06 10:52:41 -05:00
cinap_lenrek a064a48e6d nusb: handle 0 csp value on iface, remove unneeded configdev() calls after getdev() 2012-09-06 05:25:23 +02:00
cinap_lenrek 3cdaf6ea5f usbd: add missing quotefmtinstall 2012-09-06 04:07:51 +02:00
cinap_lenrek ee0a0fca5d rdbfs(4), no ^t^t on 9front system 2012-09-06 02:45:15 +02:00
cinap_lenrek 9c18f300a4 devshr: honor noattach 2012-09-06 01:05:37 +02:00
google 577a9f763f Prevent nusb/disk and nusb/kb from blocking nusbrc 2012-09-06 13:15:59 +12:00
cinap_lenrek 93063b3db0 nusbd: properly handle port detach on hub disconnect 2012-09-05 00:06:20 +02:00
cinap_lenrek 0c52215ae3 usb: fix potential isoread overruns, error instead of panic on isoread in ohci 2012-09-03 04:23:02 +02:00
cinap_lenrek cfd25faa28 usb: fix isowrite putsamples race 2012-09-03 01:54:34 +02:00
cinap_lenrek 1be10947ba doom: fix mixbuffer size confusion 2012-09-03 00:24:27 +02:00
cinap_lenrek d32c8fc79a ether82563: fix format string error 2012-09-02 21:57:10 +02:00
google 3914d039b1 Add timeout to eeprom and flash init in ether82563 driver.
Prevents hang on misidentified or broken cards.
2012-09-03 19:23:28 +12:00
google 25a5ae8a44 Add Intel 82801JIB ICH10 southbridge 2012-09-03 17:44:30 +12:00
google 14843589e2 Intel 82567V DOES support jumbo frames, despite claims to the contrary. 2012-09-03 13:40:51 +12:00
google 59d3ba2ce0 Intel 82567V does not support jumbo frames. 2012-09-02 11:31:53 +12:00
cinap_lenrek c74eff0906 audiohda: unsigned vid/rid formating 2012-09-02 01:02:34 +02:00
cinap_lenrek 5446d9779c date: pikeshedding 2012-09-02 00:18:43 +02:00
google 4cd4b82553 Fixes previous commit: dc3f9d299b40 2012-09-02 01:06:38 +12:00
google 2dfe66d72f Add -i flag to date: prints ISO-8601 datestamp
Add -t flag to date: prints ISO-8601 timestamp
2012-09-02 00:33:39 +12:00
google 87b6b93257 Fix for i82567V-2 2012-09-02 00:27:43 +12:00
cinap_lenrek 7f22b32e63 isodate in libc? revert every commit for great justice! 2012-09-01 14:12:29 +02:00
google 0e41e0b7c5 Add prototypes for isotime and isodate. This should have been in the previous commit. 2012-09-02 23:15:15 +12:00
google dfc348c4e2 Add -i and -t options to date for isodate and isotime display. 2012-09-02 23:08:14 +12:00
google cdb7bdde96 Add isotime() and isodate() functions to libc. 2012-09-02 23:05:41 +12:00
google 67e047589a Fix date formatting in asctime after year 2099. 2012-09-02 22:59:31 +12:00
cinap_lenrek e91301a401 rdmsr/wrmsr become tryrdmsr/trywrmsr, we can should check for trap 2012-08-31 16:48:33 +02:00
cinap_lenrek a7ed529d97 upas/fs: catch alarm note (used in pop3 code) 2012-08-30 17:39:22 +02:00
cinap_lenrek c430bf65d3 ndb/dns: fix mistake 2012-08-29 20:14:15 +02:00
cinap_lenrek e1a0aa42dc merge 2012-08-29 19:06:12 +02:00
cinap_lenrek 860d938b20 ndb/dns: bug fixes and massive cleanup
removing the querylck from the DN as it was never used or being
effective which saves like a ton on space per domain name.

remove the Query.tcplock and put query on the stack. it is
unneccesary to lock the query as its only used by one process
at a time. put Query's on the stack.

change outsidens() to outsidensip() which now takes the ip
buffer that it fills instead of returning static buffer (which
would race with multiple processes involved).

eleminate mostly all of the lock(&dnlock)/unlock(&dnlock) calls.
we'r not working on shared cache RR's in the resolver procs.
we work on *copies* done by rrlookup() made under the dnlock.

the cache garbage collection only runs when all processes are
locked out and is also taking the dnlock while doing so.

cleanup xmitquery(). for the tcp case, we dont need to get
more nameserver addresses, just take the ip from the udp header
that tcpquery() placed there for us.

fixed baddelegation() to actually check for delegation loop even
if theres no dom info for our host.

remove lots of debug code. remove the dnforceage() as it doenst
make sure other processes are locked out. this could destroy
dn's currenctly refered by running queries.

remove dnageallnever() as its not used. dont attach rr's to
keepers to prevent outside spoofing.

make myaddr() retrive the ip address if not set.
2012-08-29 19:01:05 +02:00
stanley lieber 30d016224a fortunes, troll: epub 2012-08-28 22:48:39 -05:00
stanley lieber 60bcab4d78 /sys/lib/dist/ndb/common: for god and country, geronimo, geronimo, geronimo 2012-08-28 22:46:44 -05:00
aiju 5ba4ccd30e fixed RFNOMNT 2012-08-27 17:50:48 +02:00
cinap_lenrek 40d5dce459 dns: fix rr->srv memory leak in rrcopy, mark rr->sig->signer, dn aging, cleanup 2012-08-26 21:56:03 +02:00
cinap_lenrek 25070f33fb audiohda: add intel sch models (thanks puddingpimp on #cat-v for sending a patch) 2012-08-26 17:16:03 +02:00
cinap_lenrek 8f0ec8b725 ndb/dns: fix netmkaddr() race, dnlock consistency, strcpy, cleanups 2012-08-26 01:51:46 +02:00
cinap_lenrek 19219d5a95 archmp: checksum _MP_ structure before use, coherence() and comments (import from sources)
we used to only test the checksum of the PCMP structure referenced by
the _MP_ without checking _MP_ itself. now fixed.

geoff added some coherence() calls and comments in the mpstartup and
apic code which seems to be a good idea.
2012-08-25 14:06:42 +02:00
aiju 69f5a04ac3 games/gb: del instead of f12/o 2012-08-25 22:38:32 +02:00
aiju 9cab16b426 games/gb: set audioproc priority 2012-08-25 22:33:51 +02:00
aiju d7c21149e4 gb: pause function 2012-08-25 22:13:29 +02:00
aiju 46124af6cf fix CUT macro in cpuid 2012-08-24 19:19:42 +02:00
aiju 6edb672951 added aux/cpuid 2012-08-24 18:49:25 +02:00
stanley lieber c42a535fe9 fortunes, rob, rsc, troll: updates 2012-08-24 10:18:33 -05:00
cinap_lenrek 3ac4524e4a syscallfmt: use up->syserrstr instead of up->errstr (import from sources) 2012-08-24 15:53:35 +02:00
cinap_lenrek da01fdae11 guesscpuhz: add sanity checks for virtualbox (import from sources) 2012-08-24 15:46:21 +02:00
cinap_lenrek d436b2117e add unified sigsearch() function to look for bios data structures
replace the various functions that searched for bios data structures by
a single sigsearch() one in pc/memory.c that will probe the various bios
data areas.

also, a new checksum() function was added that is to be used to validate
the structures found.
2012-08-24 15:36:56 +02:00
cinap_lenrek 86f323290c wait: always check up->nchild before going to sleep
always make sure that there are child processes we can wait for
before sleeping.

put pwait() sleep into a loop and recheck. this is not strictly
neccesary but prevents accidents if there are spurious wakeups
or a bug.
2012-08-24 13:11:04 +02:00
cinap_lenrek d404e9e9f8 devmnt: more carefull wakeup in mountmux
once we set q->done = 1 in mountmux, the sleeper might return freeing q
so the wakeup might access invalid memory. we change the embedded Rendez
structure in the Mntrpc into a pointer to the sleeping procs up->sleep
rendez so the rendez is always going to be valid even if the rpc has been
freed.

the call to mntstats was moved before we set q->done also to prevent
accessing invalid memory.
2012-08-24 13:00:14 +02:00
cinap_lenrek 80a5bfc1d8 sdvirtio: be more carefull at wakeup
wakeup cannot access r->sleep once we set r->done because the
sleeper might just return at this point making r invalid. make
a copy of the sleep rendez pointer before setting r->done.
2012-08-24 12:52:34 +02:00
cinap_lenrek 8e5dd37eba ndb/dns: fix memory corruption and bad serveraddrs() range checks 2012-08-22 19:45:29 +02:00
cinap_lenrek 87fca361f7 rio: rect outside screen counts as covered wcovered() 2012-08-22 00:11:42 +02:00
cinap_lenrek 20b4f55603 9bootpxe: try /cfg/pxe/default if /cfg/pxe/$ether fails before breaking to the prompt. 2012-08-21 14:23:52 +02:00
cinap_lenrek be0301f458 calloc: check multiplication overflow 2012-08-19 10:50:39 +02:00
cinap_lenrek feb58cce49 plot(1) manpage corrections 2012-08-19 09:07:59 +02:00
cinap_lenrek 62f5a7e2b7 vncs: cleanup and error handling 2012-08-19 08:57:40 +02:00
cinap_lenrek 7bb4a790d6 webfs: capture error string from tlsClient 2012-08-18 15:10:34 +02:00
cinap_lenrek 56aa8e173f libsec: add sha256WithRSAEncryption signature alg 2012-08-18 15:09:02 +02:00
cinap_lenrek c120dbc777 pccpuf: add vgaradeon 2012-08-17 19:03:26 +02:00
cinap_lenrek 8b93667775 lib/profile: remove startupasfs, start rio as subprocess so we drop to rc if it fails (no framebuffer), drawterm 2012-08-17 18:19:03 +02:00
cinap_lenrek 31ed86ce23 webcookies: create $home/lib/webcookies as 0600 2012-08-17 18:14:34 +02:00
cinap_lenrek 7fdf820589 pckernel: use constants instead of hardcoding cpuid bits in various places 2012-08-17 04:03:51 +02:00
cinap_lenrek 81954dbf25 mothra: bruteforce image src= attribute 2012-08-16 09:03:57 +02:00
cinap_lenrek 2dd17995f1 rio: fix mistake 2012-08-16 06:57:58 +02:00
cinap_lenrek 711557c85e rio: add some tolerance when declaring windows covered 2012-08-16 06:32:34 +02:00
cinap_lenrek 2eb369bb1d rio: add covered (burried) windows to the menu3 hidden window list 2012-08-16 04:00:32 +02:00
cinap_lenrek 3932153299 mothra: handle misplaced trailing quotes 2012-08-15 13:15:34 +02:00
cinap_lenrek 21b5efe962 jpg: ignore sampling factors for grayscale as colormap1() doesnt handle it 2012-08-14 05:36:05 +02:00
cinap_lenrek a8d7bbeeb3 remove 9/pc/boot.fs file 2012-08-14 03:54:26 +02:00
cinap_lenrek 142a77c9dc nusb/kb: increase mouse packet buffer from 32 to 64 bytes for Microsoft Sidewinder X5 Mouse (thanks Rexford Gibbs for reporting and testing) 2012-08-13 10:41:02 +02:00
cinap_lenrek 73e924d847 hg: hook system_rcpath and user_rcpath instead of polluting enviroment by setting HGRCPATH 2012-08-13 09:53:04 +02:00
cinap_lenrek 2a9b90cf85 page: fix drawpage race 2012-08-12 20:25:22 +02:00
cinap_lenrek a1f69ed555 hjfs: fix tabs (damn google code editor) 2012-08-11 12:41:49 +02:00
aiju 3759a4a945 disallow walk on open chans 2012-08-11 10:40:48 +00:00
cinap_lenrek 6538711ef0 hjfs: fix permcheck bug 2012-08-11 12:02:05 +02:00
cinap_lenrek 1132aca4f0 vgaclgd542x: support >8bit colors 2012-08-10 21:03:13 +02:00
cinap_lenrek d1f1be9c57 vgavmware: fix hardware acceleration (fill is not available with SVGA2) 2012-08-10 15:17:27 +02:00
cinap_lenrek dbc4833d10 acid: fix cvtitoa buffer overflow 2012-08-10 10:06:23 +02:00
cinap_lenrek 8a53b8192d mothra: avoid eenter deadlock on resize 2012-08-09 04:03:33 +02:00
cinap_lenrek abba8aa7a9 page: simplify locking, avoid eenter deadlock on resize 2012-08-09 04:03:03 +02:00
cinap_lenrek 5cbae621a5 libdraw: improve handling of screen clipr 2012-08-09 04:02:10 +02:00
cinap_lenrek 84d1ef1463 ape/mkfile: work arround fake "command line arguments" rule matching 2012-08-08 21:36:42 +02:00
cinap_lenrek f466d3894c ndb/dns: cleanup 2012-08-08 19:03:10 +02:00
stanley lieber ea64fd3ad5 fortunes, rob, theo: updates 2012-08-08 09:38:24 -05:00
stanley lieber 23b76aa92d pkg(1): add new pkg repo to man page 2012-08-08 09:37:53 -05:00
aiju 9e608833e9 hjfs: various fixes 2012-08-08 10:14:20 +02:00
aiju f2c70fe2f7 more hjfs fixes 2012-08-08 00:52:37 +02:00
aiju 34bf0ce496 hjfs: various changes 2012-08-08 23:14:42 +02:00
aiju 2e19497159 hjfs: default service name, fshalt 2012-08-07 18:43:13 +02:00
aiju b21b9ba89c added hjfs 2012-08-07 17:57:04 +02:00
cinap_lenrek ef1c186305 venti: fix possible nil deref in libventi vtgetreq() and cleanup vacfs (import from sources) 2012-08-07 16:11:35 +02:00
cinap_lenrek 37a93ef857 ppp: noauth server option (import from sources) 2012-08-07 15:57:42 +02:00
cinap_lenrek 36adf27af8 add Echange[] error string 2012-08-07 07:15:41 +02:00
cinap_lenrek 7fbae174eb floppy: fix endless loop when trying to change floppy type on media change 2012-08-07 07:08:33 +02:00
cinap_lenrek e15b523a6c libmach: fix acid -k regression (was broken in r5eeb36d3ddd0) 2012-08-07 03:48:56 +02:00
cinap_lenrek 6baaf0a773 unzip/zipfs: skip over variable length comment in end of table of content record 2012-08-06 02:25:22 +02:00
cinap_lenrek 5eec707368 pci.c: reserve pci membars after assinging them for *nobios= option 2012-08-06 23:56:10 +02:00
cinap_lenrek cd99666815 memory.c: remove unused xmapupa map 2012-08-06 23:54:52 +02:00
cinap_lenrek 6a443a3e6a merge 2012-08-05 15:51:38 +02:00
cinap_lenrek 8f9374e811 merge 2012-08-05 15:50:42 +02:00
cinap_lenrek 2f457f5f19 audioac97: reserve ioport ranges 2012-08-05 15:49:38 +02:00
aiju e2270b09f3 fixed telnetd 2012-08-04 14:52:29 +02:00
cinap_lenrek 4de62918a3 catclock: properly handle initdraw error instead of crashing 2012-08-04 02:06:57 +02:00
cinap_lenrek b14d7ac38c cron: snprint, error handling (update from sources) 2012-08-03 22:50:21 +02:00
cinap_lenrek 82ece1bb0c ps: cleanup 2012-08-02 02:53:42 +02:00
cinap_lenrek dc25c70249 ps -n print note group 2012-08-02 02:47:18 +02:00
cinap_lenrek 1159f1e54f ip: fix assert panic on fragmented icmp echo request (see eriks icmp-frag patch) 2012-08-02 02:02:10 +02:00
cinap_lenrek 4971432577 libndb: apply eriks dnsquery() ipv6 reverse lookup patch 2012-08-02 01:25:34 +02:00
cinap_lenrek 64cb1dd5b4 libmach: add arm64 constants (import from sources) 2012-08-02 22:23:58 +02:00
cinap_lenrek 18d1ef20b3 format check for octal fmt strings (import from sources) 2012-08-02 22:22:57 +02:00
cinap_lenrek da20365290 libauth: fix authrpc buffer overflow (import from sources) 2012-08-02 22:22:05 +02:00
cinap_lenrek a13a30e854 ndb: recognize ip6.arpa postfix in mkptrname() 2012-08-02 22:20:55 +02:00
cinap_lenrek 8e07a4c9a5 cb: import updates from sources 2012-08-01 21:57:13 +02:00
cinap_lenrek 9b5b68a302 cdfs: pull updates from sources 2012-08-01 21:34:14 +02:00
cinap_lenrek c7ad44a048 factotum: fix _adgetticket() filedescriptor race, add timeouts to all authserver transactions 2012-08-01 19:18:33 +02:00
cinap_lenrek acc239ef26 kfs: fix read offset integer overflow 2012-08-01 01:22:01 +02:00
cinap_lenrek 235f71ba47 cwfs: fix read offset integer overflow 2012-08-01 01:10:24 +02:00
aiju c2304e9329 make sam jump to changes made by undo 2012-08-01 23:14:39 +02:00
cinap_lenrek 9caf93faa8 vesa: timeout blank/unblank operation if it gets stuck 2012-08-01 22:56:58 +02:00
cinap_lenrek 02acb1d4f0 mothra: make emalloc zero memory, fix uninitialized nextline pointer crash 2012-07-31 09:43:24 +02:00
cinap_lenrek 4f33c88a51 import updated compilers from sources 2012-07-30 19:11:16 +02:00
cinap_lenrek fcc5e75d07 tsemacquire: manpage and syscallfmt 2012-07-30 22:45:49 +02:00
cinap_lenrek 49ac0b93d3 add tsemacquire syscall for go 2012-07-29 20:26:49 +02:00
cinap_lenrek 780d393e4b ndb/cs: limit number of slave procs 2012-07-29 03:05:05 +02:00
cinap_lenrek 0f59758d12 factotum: authdial timeout 2012-07-29 02:53:59 +02:00
cinap_lenrek b4d2e39d8c ndb/cs/dns: make sure never to block the 9p loop when we run out of processes, fail the request instead 2012-07-28 19:17:54 +02:00
cinap_lenrek 15c0d4b7c4 rio: add scroll lock key to toggle scroll mode 2012-07-28 14:47:35 +02:00
cinap_lenrek 6d3ff523db doom: fix -warp argument parsing bug 2012-07-27 16:49:56 +02:00
cinap_lenrek 543e510da1 doom: cleanup 2012-07-27 14:42:43 +02:00
cinap_lenrek ab08c97e60 doom: make sure not to drop keyup/keydown events 2012-07-27 11:08:33 +02:00
cinap_lenrek 98b9c4eb1e rio: dont shift window out to the left when its too wide for the screen 2012-07-26 17:28:14 +02:00
cinap_lenrek 6023250c46 plan9.ini: remove *nomp= 2012-07-25 23:21:16 +02:00