1. 29 Jun, 2006 3 commits
    • Russell King's avatar
      [ARM] nommu: provide a way for correct control register value selection · 22b19086
      Russell King authored
      Most MMU-based CPUs have a restriction on the setting of the data cache
      enable and mmu enable bits in the control register, whereby if the data
      cache is enabled, the MMU must also be enabled.  Enabling the data
      cache without the MMU is an invalid combination.
      
      However, there are CPUs where the data cache can be enabled without the
      MMU.
      
      In order to allow these CPUs to take advantage of that, provide a
      method whereby each proc-*.S file defines the control regsiter value
      for use with nommu (with the MMU disabled.)  Later on, when we add
      support for enabling the MMU on these devices, we can adjust the
      "crval" macro to also enable the data cache for nommu.
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      22b19086
    • Russell King's avatar
      [ARM] Remove yucky ifdefs to print "id(wb)BRR" suffix on CPU name · 264edb35
      Russell King authored
      The "id(wb)BRR" suffix reports which CPU debugging options were (or
      were not) selected at kernel build time.  Rather than have every
      proc-*.S file implement this, report the control register value,
      from which this information can be deduced.
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      264edb35
    • Linus Torvalds's avatar
      Fix vsnprintf off-by-one bug · 0a6047ee
      Linus Torvalds authored
      The recent vsnprintf() fix introduced an off-by-one, and it's now
      possible to overrun the target buffer by one byte.
      
      The "end" pointer points to past the end of the buffer, so if we
      have to truncate the result, it needs to be done though "end[-1]".
      
      [ This is just an alternate and simpler patch to one proposed by Andrew
        and Jeremy, who actually noticed the problem ]
      Acked-by: default avatarAndrew Morton <akpm@osdl.org>
      Acked-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      0a6047ee
  2. 28 Jun, 2006 37 commits