[klibc] Correctly handle "ro" and "rw" options overriding each other

The kernel command line parsing rules are "last instance wins."  This
is very important, since different parts of the command line may come
from different sources.  In particular, some may come from /arch.cmd.

This introduces a general framework for handling mutually overriding
boolean options, and uses it for "ro" and "rw".

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2 files changed