MFC r256691, r256748: casuword fixes

  Use unsigned compare against KERNBASE addr.
  Use atomic ops on armv6.