plan9fox/sys/src/9
cinap_lenrek 4d211fdd48 kernel: fix integer overflow in syssegflush(), segment code cleanup
mcountseg(), mfreeseg():
use Pte.first/last pointers when possible and avoid constructs
like s->map[i]->pages[j].

freepte():
do not zero entries in freepte(), the segment is going away and
here is no point in zeroing page pointers. hoist common code at
the top avoiding duplication.

segpage(), fixfault():
avoid load after store for Pte** pointer.

fixfault():
return -1 in default case to avoid the "used but not set" warning
for mmuphys and get rid of the useless initialization.

syssegflush():
due to len being unsigned, the pe = PGROUND(pe) can make "chunk"
bigger than len causing a overflow. rewrite the function and deal
with page alignment and errors at the beginning.

syssegflush(), segpage(), fixfault(), putseg(), relocateseg(),
mcountseg(), mfreeseg():
keep naming consistent.
2015-03-10 18:16:08 +01:00
..
alphapc kernel: reduce Page structure size by changing Page.cachectl[] 2015-02-07 02:52:23 +01:00
bcm devsd: always page align sd buffers 2015-03-06 16:16:45 +01:00
bitsy kernel: reduce Page structure size by changing Page.cachectl[] 2015-02-07 02:52:23 +01:00
boot kernel: use new disk/mkfs -o option to get proper source filename list for bootfs.proto 2014-12-15 01:04:05 +01:00
ip ip: exclude "don't fragment" bit from ipv4 reassembly test 2014-12-21 17:25:55 +01:00
kw usbehci: initial support for usb on zynq, remove uncached.h 2015-02-14 03:00:31 +01:00
mtx kernel: reduce Page structure size by changing Page.cachectl[] 2015-02-07 02:52:23 +01:00
omap usbehci: initial support for usb on zynq, remove uncached.h 2015-02-14 03:00:31 +01:00
omap4 kernel: reduce Page structure size by changing Page.cachectl[] 2015-02-07 02:52:23 +01:00
pc pc, pc64: simplify intrdisable() 2015-02-20 18:43:32 +01:00
pc64 pc, pc64: simplify intrdisable() 2015-02-20 18:43:32 +01:00
port kernel: fix integer overflow in syssegflush(), segment code cleanup 2015-03-10 18:16:08 +01:00
ppc kernel: reduce Page structure size by changing Page.cachectl[] 2015-02-07 02:52:23 +01:00
teg2 kernel: reduce Page structure size by changing Page.cachectl[] 2015-02-07 02:52:23 +01:00
xen kernel: reduce Page structure size by changing Page.cachectl[] 2015-02-07 02:52:23 +01:00
zynq zynq: sdio support 2015-03-06 18:29:39 +01:00
mkfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00