Ignore:
Timestamp:
2009-04-15T15:00:51Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9239333
Parents:
17646b1
Message:

repair a bug in calculating the address of hardware devices
(no cookies today :))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/kbd.c

    r17646b1 rf03afad  
    163163#ifdef CONFIG_Z8530
    164164        case KBD_Z8530:
    165                 z8530 = (z8530_t *) hw_map(aligned_addr, offset + size) +
    166                     offset;
     165                z8530 = (z8530_t *)
     166                    (hw_map(aligned_addr, offset + size) + offset);
    167167               
    168168                indev_t *kbrdin_z8530 = z8530_init(z8530, inr, cir, cir_arg);
     
    184184#ifdef CONFIG_NS16550
    185185        case KBD_NS16550:
    186                 ns16550 = (ns16550_t *) hw_map(aligned_addr, offset + size) +
    187                     offset;
     186                ns16550 = (ns16550_t *)
     187                   (hw_map(aligned_addr, offset + size) + offset);
    188188               
    189189                indev_t *kbrdin_ns16550 = ns16550_init(ns16550, inr, cir, cir_arg);
Note: See TracChangeset for help on using the changeset viewer.