03 May, 2008

1 commit


29 Apr, 2008

1 commit

  • Unaligned access is ok for the following arches:
    cris, m68k, mn10300, powerpc, s390, x86

    Arches that use the memmove implementation for native endian, and
    the byteshifting for the opposite endianness.
    h8300, m32r, xtensa

    Packed struct for native endian, byteshifting for other endian:
    alpha, blackfin, ia64, parisc, sparc, sparc64, mips, sh

    m86knommu is generic_be for Coldfire, otherwise unaligned access is ok.

    frv, arm chooses endianness based on compiler settings, uses the byteshifting
    versions. Remove the unaligned trap handler from frv as it is now unused.

    v850 is le, uses the byteshifting versions for both be and le.

    Remove the now unused asm-generic implementation.

    Signed-off-by: Harvey Harrison
    Acked-by: David S. Miller
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     

28 Apr, 2008

1 commit

  • s390 for one, cannot implement VM_MIXEDMAP with pfn_valid, due to their memory
    model (which is more dynamic than most). Instead, they had proposed to
    implement it with an additional path through vm_normal_page(), using a bit in
    the pte to determine whether or not the page should be refcounted:

    vm_normal_page()
    {
    ...
    if (unlikely(vma->vm_flags & (VM_PFNMAP|VM_MIXEDMAP))) {
    if (vma->vm_flags & VM_MIXEDMAP) {
    #ifdef s390
    if (!mixedmap_refcount_pte(pte))
    return NULL;
    #else
    if (!pfn_valid(pfn))
    return NULL;
    #endif
    goto out;
    }
    ...
    }

    This is fine, however if we are allowed to use a bit in the pte to determine
    refcountedness, we can use that to _completely_ replace all the vma based
    schemes. So instead of adding more cases to the already complex vma-based
    scheme, we can have a clearly seperate and simple pte-based scheme (and get
    slightly better code generation in the process):

    vm_normal_page()
    {
    #ifdef s390
    if (!mixedmap_refcount_pte(pte))
    return NULL;
    return pte_page(pte);
    #else
    ...
    #endif
    }

    And finally, we may rather make this concept usable by any architecture rather
    than making it s390 only, so implement a new type of pte state for this.
    Unfortunately the old vma based code must stay, because some architectures may
    not be able to spare pte bits. This makes vm_normal_page a little bit more
    ugly than we would like, but the 2 cases are clearly seperate.

    So introduce a pte_special pte state, and use it in mm/memory.c. It is
    currently a noop for all architectures, so this doesn't actually result in any
    compiled code changes to mm/memory.o.

    BTW:
    I haven't put vm_normal_page() into arch code as-per an earlier suggestion.
    The reason is that, regardless of where vm_normal_page is actually
    implemented, the *abstraction* is still exactly the same. Also, while it
    depends on whether the architecture has pte_special or not, that is the
    only two possible cases, and it really isn't an arch specific function --
    the role of the arch code should be to provide primitive functions and
    accessors with which to build the core code; pte_special does that. We do
    not want architectures to know or care about vm_normal_page itself, and
    we definitely don't want them being able to invent something new there
    out of sight of mm/ code. If we made vm_normal_page an arch function, then
    we have to make vm_insert_mixed (next patch) an arch function too. So I
    don't think moving it to arch code fundamentally improves any abstractions,
    while it does practically make the code more difficult to follow, for both
    mm and arch developers, and easier to misuse.

    [akpm@linux-foundation.org: build fix]
    Signed-off-by: Nick Piggin
    Acked-by: Carsten Otte
    Cc: Jared Hulbert
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nick Piggin
     

20 Apr, 2008

9 commits

  • On Mon, Apr 14, 2008 at 03:36:24PM +0100, Alan Cox wrote:
    > On Mon, 14 Apr 2008 17:17:21 +0300
    > Adrian Bunk wrote:
    >
    > > This patch fixes the following build error:
    > >
    > >
    > >
    > > ...
    > > CC [M] drivers/serial/8250.o
    > > /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/serial/8250.c:95:24: error: asm/serial.h: No such file or directory
    > > make[3]: *** [drivers/serial/8250.o] Error 1
    > >
    > >
    > >
    > > Signed-off-by: Adrian Bunk
    > >
    > > ---
    > > 3cb4ef80d75e118ccfd44f7006aea3db54afb31c diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
    > > index b1bbaa0..b0e216d 100644
    > > --- a/drivers/serial/Kconfig
    > > +++ b/drivers/serial/Kconfig
    > > @@ -11,7 +11,7 @@ menu "Serial drivers"
    > > # The new 8250/16550 serial drivers
    > > config SERIAL_8250
    > > tristate "8250/16550 and compatible serial support"
    > > - depends on (BROKEN || !SPARC)
    > > + depends on (BROKEN || !SPARC) && !AVR32
    > > select SERIAL_CORE
    > > ---help---
    >
    > NAK.
    >
    > Add an asm/serial.h to the platform as it has PCI so will have 8250 PCI
    > devices available to it. A copy of the MIPS one should be right.

    Patch below.

    > Alan

    cu
    Adrian

    This patch fixes the following build error with CONFIG_SERIAL_8250:

    ...
    CC [M] drivers/serial/8250.o
    /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/serial/8250.c:95:24: error: asm/serial.h: No such file or directory
    make[3]: *** [drivers/serial/8250.o] Error 1

    Signed-off-by: Adrian Bunk
    Acked-by: Alan Cox
    Signed-off-by: Haavard Skinnemoen

    Adrian Bunk
     
  • This patch fixes the following compile error with CONFIG_MD_RAID456
    on avr32:

    ...
    CC [M] crypto/xor.o
    /home/bunk/linux/kernel-2.6/git/linux-2.6/crypto/xor.c:23:21: error: asm/xor.h: No such file or directory
    /home/bunk/linux/kernel-2.6/git/linux-2.6/crypto/xor.c: In function 'calibrate_xor_blocks':
    /home/bunk/linux/kernel-2.6/git/linux-2.6/crypto/xor.c:131: error: 'XOR_TRY_TEMPLATES' undeclared (first use in this function)
    /home/bunk/linux/kernel-2.6/git/linux-2.6/crypto/xor.c:131: error: (Each undeclared identifier is reported only once
    /home/bunk/linux/kernel-2.6/git/linux-2.6/crypto/xor.c:131: error: for each function it appears in.)
    make[2]: *** [crypto/xor.o] Error 1

    Signed-off-by: Adrian Bunk
    Signed-off-by: Haavard Skinnemoen

    Adrian Bunk
     
  • This combines three patches from David Brownell:
    * avr32: tclib support
    * avr32: simplify clocksources
    * avr32: Turn count/compare into a oneshot clockevent device

    Register both TC blocks (instead of just the first one) so that
    the AT32/AT91 tclib code will pick them up (instead of just the
    avr32-only PIT-style clocksource).

    Rename the first one and its resources appropriately.

    More cleanups to the cycle counter clocksource code

    - Disable all the weak symbol magic; remove the AVR32-only TCB-based
    clocksource code (source and header).

    - Mark the __init code properly.

    - Don't forget to report IRQF_TIMER.

    - Make the system work properly with this clocksource, by preventing
    use of the CPU "idle" sleep state in the idle loop when it's used.

    Package the avr32 count/compare timekeeping support as a oneshot
    clockevent device, so it supports NO_HZ and high res timers.
    This means it also supports plugging in other clockevent devices
    and clocksources.

    Signed-off-by: David Brownell
    Signed-off-by: Haavard Skinnemoen

    David Brownell
     
  • Create a new file, pm-at32ap700x.S, in mach-at32ap and move the CPU
    idle sleep code there. Make it possible to disable the sleep code.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Move the only thing that was actually implemented and used in
    asm/intc.h, intc_get_pending(), into asm/irq.h and delete asm/intc.h

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • New-style I2C drivers require that motherboard-mounted I2C devices are
    registered with the I2C core, typically at arch_initcall time. This
    can be done nice and neat by passing the struct i2c_board_info[]
    through at32_add_device_twi just like we do for the SPI board info.

    While we've got the hood up, remove a duplicate declaration of
    at32_add_device_twi() in board.h.

    [hskinnemoen@atmel.com: add missing i2c_board_info forward-declaration]
    Signed-Off-By: Ben Nizette
    Signed-off-by: Haavard Skinnemoen

    Ben Nizette
     
  • PAGE_SIZE is used both from assembly and C code. We want to have type
    specifiers when using it from C, but this will make the assembler
    confused, so we need to make it conditional.

    This is exactly what the _AC macro is for, so using it allows us to
    get rid of a few lines of cpp noise.

    Signed-off-by: Cyrill Gorcunov
    Signed-off-by: Haavard Skinnemoen

    Cyrill Gorcunov
     
  • …en/usba-2.6.26 into base

    Haavard Skinnemoen
     

17 Apr, 2008

1 commit

  • Semaphores are no longer performance-critical, so a generic C
    implementation is better for maintainability, debuggability and
    extensibility. Thanks to Peter Zijlstra for fixing the lockdep
    warning. Thanks to Harvey Harrison for pointing out that the
    unlikely() was unnecessary.

    Signed-off-by: Matthew Wilcox
    Acked-by: Ingo Molnar

    Matthew Wilcox
     

07 Apr, 2008

1 commit

  • The atmel_usba_udc driver is being used by several platforms and arches
    (avr32 and at91 ATM), and each platform may have different endpoint
    settings.

    The patch below moves the endpoint declarations into the platform
    data and make the necessary adjustments for AVR32 (improved by
    Haavard Skinnemoen ).

    Signed-off-by: Stelian Pop
    Acked-by: David Brownell
    Signed-off-by: Haavard Skinnemoen

    Stelian Pop
     

03 Apr, 2008

1 commit

  • Currently include/linux/kvm.h is not considered by make headers_install,
    because Kbuild cannot handle " unifdef-$(CONFIG_FOO) += foo.h. This problem
    was introduced by

    commit fb56dbb31c4738a3918db81fd24da732ce3b4ae6
    Author: Avi Kivity
    Date: Sun Dec 2 10:50:06 2007 +0200

    KVM: Export include/linux/kvm.h only if $ARCH actually supports KVM

    Currently, make headers_check barfs due to , which
    includes, not existing. Rather than add a zillion s, export kvm.
    only if the arch actually supports it.

    Signed-off-by: Avi Kivity

    which makes this an 2.6.25 regression.

    One way of solving the issue is to enhance Kbuild, but Avi and David conviced
    me, that changing headers_install is not the way to go. This patch changes
    the definition for linux/kvm.h to unifdef-y.

    If  unifdef-y is used for linux/kvm.h "make headers_check" will fail on all
    architectures without asm/kvm.h. Therefore, this patch also provides
    asm/kvm.h on all architectures.

    Signed-off-by: Christian Borntraeger
    Acked-by: Avi Kivity
    Cc: Sam Ravnborg
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christian Borntraeger
     

10 Mar, 2008

1 commit


13 Feb, 2008

1 commit


09 Feb, 2008

4 commits

  • Background: I've implemented 1K/2K page tables for s390. These sub-page
    page tables are required to properly support the s390 virtualization
    instruction with KVM. The SIE instruction requires that the page tables
    have 256 page table entries (pte) followed by 256 page status table entries
    (pgste). The pgstes are only required if the process is using the SIE
    instruction. The pgstes are updated by the hardware and by the hypervisor
    for a number of reasons, one of them is dirty and reference bit tracking.
    To avoid wasting memory the standard pte table allocation should return
    1K/2K (31/64 bit) and 2K/4K if the process is using SIE.

    Problem: Page size on s390 is 4K, page table size is 1K or 2K. That means
    the s390 version for pte_alloc_one cannot return a pointer to a struct
    page. Trouble is that with the CONFIG_HIGHPTE feature on x86 pte_alloc_one
    cannot return a pointer to a pte either, since that would require more than
    32 bit for the return value of pte_alloc_one (and the pte * would not be
    accessible since its not kmapped).

    Solution: The only solution I found to this dilemma is a new typedef: a
    pgtable_t. For s390 pgtable_t will be a (pte *) - to be introduced with a
    later patch. For everybody else it will be a (struct page *). The
    additional problem with the initialization of the ptl lock and the
    NR_PAGETABLE accounting is solved with a constructor pgtable_page_ctor and
    a destructor pgtable_page_dtor. The page table allocation and free
    functions need to call these two whenever a page table page is allocated or
    freed. pmd_populate will get a pgtable_t instead of a struct page pointer.
    To get the pgtable_t back from a pmd entry that has been installed with
    pmd_populate a new function pmd_pgtable is added. It replaces the pmd_page
    call in free_pte_range and apply_to_pte_range.

    Signed-off-by: Martin Schwidefsky
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Martin Schwidefsky
     
  • PWM device setup, and a simple PWM driver exposing a programming interface
    giving access to each channel's full capabilities. Note that this doesn't
    support starting several channels in synch.

    [hskinnemoen@atmel.com: allocate platform device dynamically]
    [hskinnemoen@atmel.com: Kconfig fix]
    Signed-off-by: David Brownell
    Signed-off-by: Haavard Skinnemoen
    Cc: Andrew Victor
    Cc: Nicolas Ferre
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Some arches (like alpha and ia64) already have a clean posix_types.h header.
    This brings all the others in line by removing all references to __GLIBC__
    (and some undocumented __USE_ALL).

    Signed-off-by: Mike Frysinger
    Acked-by: Ingo Molnar
    Cc: Ulrich Drepper
    Cc: Roland McGrath
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • Move STACK_TOP[_MAX] out of asm/a.out.h and into asm/processor.h as they're
    required whether or not A.OUT format is available.

    Signed-off-by: David Howells
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Howells
     

08 Feb, 2008

3 commits

  • Use the new generic cmpxchg_local (disables interrupt) for 8, 16 and 64 bits
    cmpxchg_local. Use the __cmpxchg_u32 primitive for 32 bits cmpxchg_local.

    Note that cmpxchg only uses the __cmpxchg_u32 or __cmpxchg_u64 and will cause
    a linker error if called with 8 or 16 bits argument.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Haavard Skinnemoen
    Cc: Haavard Skinnemoen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • struct user.u_ar0 is defined to contain a pointer offset on all
    architectures in which it is defined (all architectures which define an
    a.out format except SPARC.) However, it has a pointer type in the headers,
    which is pointless -- is not exported to userspace, and it
    just makes the code messy.

    Redefine the field as "unsigned long" (which is the same size as a pointer
    on all Linux architectures) and change the setting code to user offsetof()
    instead of hand-coded arithmetic.

    Cc: Linux Arch Mailing List
    Cc: Bryan Wu
    Cc: Roman Zippel
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Russell King
    Cc: Lennert Buytenhek
    Cc: Håvard Skinnemoen
    Cc: Mikael Starvik
    Cc: Yoshinori Sato
    Cc: Tony Luck
    Cc: Hirokazu Takata
    Cc: Ralf Baechle
    Cc: Paul Mackerras
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Cc: Paul Mundt
    Signed-off-by: H. Peter Anvin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    H. Peter Anvin
     
  • asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can
    drop #ifdef __KERNEL__ for them.

    [k.shutemov@gmail.com: remove #ifdef __KERNEL_]
    Signed-off-by: Kirill A. Shutemov
    Reviewed-by: David Woodhouse
    Cc:
    Signed-off-by: Kirill A. Shutemov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill A. Shutemov
     

07 Feb, 2008

2 commits

  • The declaration and implementation of __const_udelay use different
    names for the parameter on a number of architectures:

    include/asm-avr32/delay.h:15:extern void __const_udelay(unsigned long usecs);
    arch/avr32/lib/delay.c:39:inline void __const_udelay(unsigned long xloops)

    include/asm-sh/delay.h:15:extern void __const_udelay(unsigned long usecs);
    arch/sh/lib/delay.c:22:inline void __const_udelay(unsigned long xloops)

    include/asm-m32r/delay.h:15:extern void __const_udelay(unsigned long usecs);
    arch/m32r/lib/delay.c:58:void __const_udelay(unsigned long xloops)

    include/asm-x86/delay.h:16:extern void __const_udelay(unsigned long usecs);
    arch/x86/lib/delay_32.c:82:inline void __const_udelay(unsigned long xloops)
    arch/x86/lib/delay_64.c:46:inline void __const_udelay(unsigned long xloops)

    The units of the parameter isn't usecs, so that name is definitely
    wrong. It's also not exactly loops, so I suppose xloops is an OK
    name.

    This patch changes these names from usecs to xloops.

    Signed-off-by: Jeff Dike
    Cc: Haavard Skinnemoen
    Cc: Paul Mundt
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: Hirokazu Takata
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • - All implementations can be __devinit

    - The function prototypes were in asm/timex.h but they all must be the same,
    so create a single declaration in linux/timex.h.

    - uninline the sparc64 version to match the other architectures

    - Don't bother #defining ARCH_HAS_READ_CURRENT_TIMER to a particular value.

    [ezk@cs.sunysb.edu: fix build]
    Cc: "David S. Miller"
    Cc: Haavard Skinnemoen
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

06 Feb, 2008

3 commits

  • Hmm. Someone removed the timerfd() syscall...

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Haavard Skinnemoen
     
  • (with Martin Schwidefsky )

    The pgd/pud/pmd/pte page table allocation functions get a mm_struct pointer as
    first argument. The free functions do not get the mm_struct argument. This
    is 1) asymmetrical and 2) to do mm related page table allocations the mm
    argument is needed on the free function as well.

    [kamalesh@linux.vnet.ibm.com: i386 fix]
    [akpm@linux-foundation.org: coding-syle fixes]
    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Martin Schwidefsky
    Cc:
    Signed-off-by: Kamalesh Babulal
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • Teach AVR32 to use the "GPIO Library" when exposing its GPIOs, so that signals
    on external chips (like GPIO expanders) can easily be used.

    This mostly reorganizes some existing logic, with two minor changes in
    behavior:

    - The PSR registers are used instead of the previous "gpio_mask" values,
    matching AT91 behavior and removing some duplication between that role
    and that of "pinmux_mask".

    - NR_IRQs grew to acommodate a bank of external GPIOs. Eventually this
    number should probably become a board-specific config option.

    There's a debugfs dump of status for the built-in GPIOs, showing which pins
    have deglitching, pullups, or open drain drive enabled, as well as the ID
    string used when requesting each IRQ.

    Signed-off-by: David Brownell
    Acked-by: Haavard Skinnemoen
    Cc: Jean Delvare
    Cc: Eric Miao
    Cc: Sam Ravnborg
    Cc: Philipp Zabel
    Cc: Russell King
    Cc: Ben Gardner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

01 Feb, 2008

1 commit

  • A userspace program may wish to set the mark for each packets its send
    without using the netfilter MARK target. Changing the mark can be used
    for mark based routing without netfilter or for packet filtering.

    It requires CAP_NET_ADMIN capability.

    Signed-off-by: Laszlo Attila Toth
    Acked-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Laszlo Attila Toth
     

29 Jan, 2008

1 commit


26 Jan, 2008

1 commit


25 Jan, 2008

4 commits

  • Change the NMI handler to use the die notifier chain to signal anyone
    who cares. Add a simple "nmi debugger" which hooks into this chain and
    that may dump registers, task state, etc. when it happens.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • These are derivatives of the AT32AP7000 chip, which means that most of
    the code stays the same. Rename a few files, functions, definitions
    and config symbols to reflect that they apply to all AP700x chips, and
    exclude some platform devices from chips where they aren't present.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Add the following fields to /proc/cpuinfo:
    * chip type and revision (from the JTAG chip id)
    * cpu MHz (from clk_get_rate())
    * features (from the CONFIG0 register)

    Also rename "cpu family" to "cpu arch" and "cpu type" to "cpu core" to
    remove some ambiguity.

    Show chip type and revision at bootup, and clarify that the other
    kinds of IDs that we're already printing are for the cpu core and
    architecture. Rename "AP7000" to "AP7" since that's the name of the
    core.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Keep track of processes being debugged (including the kernel itself)
    and turn the OCD system on and off as appropriate. Since enabling
    debugging turns off some optimizations in the CPU core, this fixes the
    issue that enabling KProbes support or simply running a program under
    gdbserver will reduce system performance significantly until the next
    reboot.

    The CPU performance will still be reduced for all processes while a
    process is being debugged, but this is a lot better than reducing the
    performance forever.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     

07 Dec, 2007

4 commits

  • The current implementation of copy_to_user_page() gives "vaddr" to the
    cache instruction when trying to sync the icache with the dcache. If
    vaddr does not exist in the TLB, the CPU will silently abort the
    operation, which may result in the caches staying out of sync.

    To fix this, pass the "dst" parameter to flush_icache_range() instead
    -- we know this is valid because we just wrote to it.

    Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • The current debug trap handling code does a number of things that are
    illegal according to the AVR32 Architecture manual. Most importantly,
    it may try to schedule from Debug Mode, thus clearing the D bit, which
    can lead to "undefined behaviour".

    It seems like this works in most cases, but several people have
    observed somewhat unstable behaviour when debugging programs,
    including soft lockups. So there's definitely something which is not
    right with the existing code.

    The new code will never schedule from Debug mode, it will always exit
    Debug mode with a "retd" instruction, and if something not running in
    Debug mode needs to do something debug-related (like doing a single
    step), it will enter debug mode through a "breakpoint" instruction.
    The monitor code will then return directly to user space, bypassing
    its own saved registers if necessary (since we don't actually care
    about the trapped context, only the one that came before.)

    This adds three instructions to the common exception handling code,
    including one branch. It does not touch super-hot paths like the TLB
    miss handler.

    Signed-off-by: Haavard Skinnemoen

    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: Haavard Skinnemoen

    Haavard Skinnemoen
     
  • Signed-off-by: Haavard Skinnemoen

    Haavard Skinnemoen