Commit graph

5957 commits

Author SHA1 Message Date
aiju
21a221129a sysinfo: minor formatting fix 2018-06-13 16:05:31 +01:00
qwx
e4b842056c emulators ui: don't drink and code 2018-06-13 14:14:25 +02:00
qwx
09c6120444 emulators ui: add option for fixed factor scaling and bound scale vertically 2018-06-13 14:05:19 +02:00
mischief
382c9ef92c stats: read cputemp as C, set scale max to 100 C 2018-06-13 11:59:14 +00:00
aiju
9fbce3b1b4 games/gb: attempt at fixing sprite priority 2018-06-13 09:52:41 +00:00
aiju
5d202d3456 games/gb: fix mbc5 register addressing (fixes warioland3 gamebreaking bug) 2018-06-13 09:26:55 +00:00
cinap_lenrek
8fdd633d57 devip: fix missing wunlock() for "ipifc not yet bound to device" case, don't create multicast entry on error 2018-06-12 20:31:39 +02:00
cinap_lenrek
55b73cbbbf ip/dhcp6d: don't drink and code 2018-06-12 19:50:04 +02:00
cinap_lenrek
b9b6fcd85f ip/dhcp6d: only announce all-dhcp-servers multicast address on interface with link-local address on it 2018-06-12 19:36:31 +02:00
cinap_lenrek
fca2c1cb31 /sys/src/mkfile: add libttf 2018-06-12 19:29:38 +02:00
Alex Musolino
1c862bd24e upas/nedmail: marshal(1) options -n and -8 are mutually exclusive 2018-06-12 20:04:16 +09:30
cinap_lenrek
232382bfc1 ip/dhcp6d: ignore short and from non-local source packets 2018-06-11 19:32:44 +02:00
cinap_lenrek
71402b2ea1 devip: fix use after free in ipifcremmulti()
closeconv() calls ipifcremmulti() like:

	while((mp = cv->multi) != nil)
		ipifcremmulti(cv, mp->ma, mp->ia);

so we have to defer freeing the entry after doing:

		if((lifc = iplocalonifc(ifc, ia)) != nil)
			remselfcache(f, ifc, lifc, ma);

which accesses the otherwise free'd ia and ma arguments.
2018-06-11 03:19:42 +02:00
cinap_lenrek
94f6f89ac1 devip: do not icmp reply on multicast destination 2018-06-11 03:14:28 +02:00
cinap_lenrek
d497eb2d2f dhcp6d: make constants for message types, check server identifier in request, only recheck ndb every minute 2018-06-10 22:48:51 +02:00
cinap_lenrek
a3f3e31b20 dhcp6d: add minimal stateless DHCPv6 server for network boot and DNS configuration 2018-06-10 22:08:57 +02:00
cinap_lenrek
eed90aa0ad kernel: don't cap the minimum sleep time to TK2MS(1) for syssleep()
on HZ 100 systems like pc and pc64, the minium sleep time
was 10ms, which is quite high. the cap isnt really needed
as arch specific timerset() enforces its own limit, but on
a higher resolution.

background:

from Charles Forsyth:

I haven't really got an opinion on it. The 10ms interval was first used on
machines that were much slower.
I thought someone did set HZ to a bigger value, partly to support better
in-kernel timing. I haven't done it because I never had a need for it.
If I were doing (say) protocol implementation in user mode, I'd certainly
reconsider. Sleep itself forces at best ms granularity,
and for some applications that's too big.

initial mail from qwx raising the issue:

> Hello,
>
> I found out recently that sleep(2)'s resolution on 386 and 9front's amd64
> kernel is 10 ms rather than 1 ms.  The reason is that on those kernels,
> HZ is set to 100 rather than say 1000.  In syssleep, we get 1 tich every
> 10 ms.
>
> What is unclear is why.
>
> To paraphrase cinap_lenrek's answer to my question:
>
> In syssleep:
>                 if(ms < TK2MS(1))
>                         ms = TK2MS(1);
>                 tsleep(&up->sleep, return0, 0, ms);
>
> "TK2MS(1)" can be replaced with just "1", and the arch specific
> timerset() routine would do its own capping of the period if it's too
> small for the timer resolution, and make better decisions based on what
> the minimum timer period should be given the latency overhead of the
> given arch's interrupt handling and performance characteristics.
>
> Alternatively, HZ could be raised to 500 or 1000.
>
> It seems it's just trying to prevent excessive context switches and
> interrupts, but it seems somewhat arbitrary.  A ton of syscalls can be
> done in 1 ms, and it's the lowest we can go without changing the unit.
>
>
> What do you think?
>
> Thanks in advance,
>
> qwx
2018-06-10 19:47:21 +02:00
aiju
ce9d09a965 libttf: add missing file impl.h 2018-06-09 14:55:32 +00:00
aiju
3b63c5a73f add ttfrender(1) 2018-06-09 14:34:44 +00:00
aiju
db71e19005 add libttf 2018-06-09 14:33:19 +00:00
qwx
198f10bb25 snes: fix input botch 2 2018-06-09 07:12:43 +02:00
qwx
54ac2c2871 snes: fix input botch 2018-06-09 07:08:43 +02:00
mischief
9a7b1b57b6 mklib: add %.acid target 2018-06-08 16:48:31 +00:00
mischief
59994e1beb avl(2): add avlmin/avlmax in synopsis 2018-06-08 16:37:39 +00:00
cinap_lenrek
ff1a1e63a8 getuser(2): add source or sysname() 2018-06-03 23:46:47 +02:00
cinap_lenrek
56ffc907ac kernel: stop the practice of passing DMDIR to devir() perm argument
devdir internally replicates the qid in ther perm stat field
already and the practice of explicitely passing just causing
confusion when done inconsistently.
2018-06-03 23:33:35 +02:00
cinap_lenrek
8c70c09bfd devaoe: fix dotdot walk in devlinkdir, make perms consistent 2018-06-03 23:30:57 +02:00
cinap_lenrek
a2623fd82a devenv: make #ec files not show up as world writable 2018-06-03 23:30:05 +02:00
cinap_lenrek
182077ac24 ip/dhcpd: parseip() error handling, make sure client ip is ipv4, add explicit length arguments to lookupname() and lookupserver() 2018-06-03 20:52:10 +02:00
cinap_lenrek
0cf8a0c4a8 ip/ipconfig: use ipmove() instead of memmove() 2018-06-03 20:31:48 +02:00
aiju
55edec2b8a tcs: support EUC-JP JIS X 0212 codes 2018-06-02 00:02:29 +00:00
cinap_lenrek
5db80edcd1 merge 2018-06-01 23:54:44 +02:00
cinap_lenrek
7113f730de ndb/cs: make ipv6 only host practical by checking ip version on local interfaces
avoid returning ip addresses that cannot be reached due
to lack of a compatible ip address. this means when here
is no ipv4 address configured, we wont return ipv4 addresses
and would not query dns for an A record.

likewise, when here is no ipv6 address configured then
we wont query dns for an AAAA record.

ipv6 lookups can still be disabled with the -4 flag just
as before.
2018-06-01 23:53:09 +02:00
qwx
50b36c5112 doom: don't set repl if scale is 1 2018-05-31 05:11:33 +02:00
cinap_lenrek
16c87febd3 sdram: properly support multiple ramdisks, so that ramdiskX corresponds to sdZX 2018-05-29 22:50:04 +02:00
qwx
f1eb657db0 emulators ui: don't call flushmouse twice 2018-05-29 05:28:31 +02:00
spew
3d0ebdc439 6c, 8c: Fix nocast cast bug which prevents address arithmetic from being computed at compile time 2018-05-28 19:38:33 -04:00
cinap_lenrek
6b22a732e8 merge 2018-05-27 23:05:00 +02:00
cinap_lenrek
8f9642a514 9boot: detect SYSLINUX "memdisk" and pass to kernel via ramdisk0= parameter
this makes virtual "memdisk" from SYSLINUX accessible to
the kernel, allowing the iso to be loaded via TFTP and
started without any ethernet or disk drivers available.
2018-05-27 23:03:38 +02:00
cinap_lenrek
5da4f0fc0f sdram: experimental ramdisk driver
this driver makes regions of physical memory accessible as a disk.

to use it, ramdiskinit() has to be called before confinit(), so
that conf.mem[] banks can be reserved. currently, only pc and pc64
kernel use it, but otherwise the implementation is portable.

ramdisks are not zeroed when allocated, so that the contents are
preserved across warm reboots.

to not waste memory, physical segments do not allocate Page structures
or populate the segment pte's anymore. theres also a new SG_CHACHED
attribute.
2018-05-27 22:59:19 +02:00
aiju
52698c726c sshfs(4): language 2018-05-27 11:22:23 +00:00
aiju
6c44dbe4fd sshfs(4): don't drink and troff 2018-05-27 11:09:01 +00:00
aiju
41013392a1 sshfs(4): replace the much maligned -r option 2018-05-27 11:06:07 +00:00
spew
1ddf581f8c cc: fix result of operation not used warning for void casts 2018-05-24 19:31:55 -04:00
aiju
434fc6a1c4 dc(1): add pi program as example 2018-05-24 15:42:43 +01:00
aiju
1984f6813c merge 2018-05-24 13:41:08 +01:00
aiju
be3809866c ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
cinap_lenrek
ad7390dda8 ndb/dnsdebug: handle .ip6.arpa names 2018-05-23 19:44:12 +02:00
cinap_lenrek
03ced8cca1 ndb/dnsquery: handle .ip6.arpa names, don't mount the dns service 2018-05-23 19:43:45 +02:00
cinap_lenrek
d5c906f515 ip/tftpd: deal with block wrap arround 2018-05-22 01:53:15 +02:00