more formatting. Reference: /n/atom/patch/applied2013/adrfmt Date: Wed Oct 9 08:24:12 CES 2013 Signed-off-by: quanstro@quanstro.net --- /sys/man/9nix/adr Wed Oct 9 08:24:04 2013 +++ /sys/man/9nix/adr Wed Oct 9 08:24:05 2013 @@ -37,11 +37,11 @@ .PB enum { Cnone = -1, - Cmax = 32767, + Cmax = 32767, }; .PB .PD 0 -.ta +\w'\fL 'u +\w'\fL 'u +6n +4n +.ta +\w'\fL 'u +\w'\fL 'u +6n +4n uintmem adralloc(uintmem base, uintmem len, int align, int type, int use, uint flags) .PB @@ -71,7 +71,7 @@ .IR adr . Map entries consist of a base, length address type (e.g. memory, mmio, etc.), current use, color (NUMA domain), and -caching flags. The map is initlialized from the +memory cachability flags. The map is initlialized from the .B *e820 configuration variable (see .IR plan9.ini (8)), @@ -136,9 +136,14 @@ to maintain consistent caching flags. .TP .BI adrsetcolor( pa\fP,\fP\ len\fP,\fP\ color ) -Set the color for a range of memory. +Set the color (NUMA domain) for a range of memory. .SH SOURCE .B /sys/src/nix/k10/adr.c .SH "SEE ALSO" .IR plan9.ini (8), .IR vmap (9nix). +.SH BUGS +.I Adrsetcolor +may fail if a Adr map needs to be split, and the memory +is already in use. Color memory early in boot to avoid this +issue.