Skip to content
  • Mark Cave-Ayland's avatar
    7aa6baee
    esp: add support for unaligned accesses · 7aa6baee
    Mark Cave-Ayland authored
    
    
    When the MacOS toolbox ROM transfers data from a target device to an unaligned
    memory address, the first/last byte of a 16-bit transfer needs to be handled
    separately. This means that the first byte is preloaded into the FIFO before
    the transfer, or the last byte remains in the FIFO after the transfer.
    
    The result of this is that the PDMA routines must be updated so that the FIFO
    is loaded/unloaded if the last 16-bit word is used (rather than the last byte)
    and any remaining byte from a FIFO wraparound is handled correctly.
    
    Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
    Message-Id: <20210304221103.6369-43-mark.cave-ayland@ilande.co.uk>
    7aa6baee
    esp: add support for unaligned accesses
    Mark Cave-Ayland authored
    
    
    When the MacOS toolbox ROM transfers data from a target device to an unaligned
    memory address, the first/last byte of a 16-bit transfer needs to be handled
    separately. This means that the first byte is preloaded into the FIFO before
    the transfer, or the last byte remains in the FIFO after the transfer.
    
    The result of this is that the PDMA routines must be updated so that the FIFO
    is loaded/unloaded if the last 16-bit word is used (rather than the last byte)
    and any remaining byte from a FIFO wraparound is handled correctly.
    
    Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
    Message-Id: <20210304221103.6369-43-mark.cave-ayland@ilande.co.uk>
Loading