1. 07 12月, 2007 1 次提交
    • H
      [AVR32] Clean up OCD register usage · 8dfe8f29
      Haavard Skinnemoen 提交于
      Generate a new set of OCD register definitions in asm/ocd.h and rename
      __mfdr() and __mtdr() to ocd_read() and ocd_write() respectively.
      
      The bitfield definitions are a lot more complete now, and they are
      entirely based on bit numbers, not masks. This is because OCD
      registers are frequently accessed from assembly code, where bit
      numbers are a lot more useful (can be fed directly to sbr, bfins,
      etc.)
      
      Bitfields that consist of more than one bit have two definitions:
      _START, which indicates the number of the first bit, and _SIZE, which
      indicates the number of bits. These directly correspond to the
      parameters taken by the bfextu, bfexts and bfins instructions.
      Signed-off-by: NHaavard Skinnemoen <hskinnemoen@atmel.com>
      8dfe8f29
  2. 11 10月, 2007 1 次提交
    • H
      [AVR32] Don't use __builtin_xchg() · bb7aa6d4
      Haavard Skinnemoen 提交于
      The implementation of __builtin_xchg() in at least some versions of
      avr32 gcc is buggy. Rather than find out exactly which versions that
      have this bug, let's just avoid the problem altogether by implementing
      xchg() in inline assembly.
      
      Also, in most architectures, xchg() seems to imply a memory barrier,
      while the existing avr32 implementation did not. This patch also fixes
      that discrepancy.
      Signed-off-by: NHaavard Skinnemoen <hskinnemoen@atmel.com>
      bb7aa6d4
  3. 27 4月, 2007 1 次提交
    • H
      [AVR32] Clean up exception handling code · 623b0355
      Haavard Skinnemoen 提交于
        * Use generic BUG() handling
        * Remove some useless debug statements
        * Use a common function _exception() to send signals or oops when
          an exception can't be handled. This makes sure init doesn't
          enter an infinite exception loop as well. Borrowed from powerpc.
        * Add some basic exception tracing support to the page fault code.
        * Rework dump_stack(), show_regs() and friends and move everything
          into process.c
        * Print information about configuration options and chip type when
          oopsing
      Signed-off-by: NHaavard Skinnemoen <hskinnemoen@atmel.com>
      623b0355
  4. 26 9月, 2006 1 次提交