Changeset 6da5a6b in mainline
- Timestamp:
- 2016-11-25T17:34:33Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 47c1437
- Parents:
- 2a72d9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/obio/obio.c
r2a72d9f r6da5a6b 94 94 switch (IPC_GET_IMETHOD(call)) { 95 95 case IRC_ENABLE_INTERRUPT: 96 /* Noop */ 96 inr = IPC_GET_ARG1(call); 97 base_virt[OBIO_IMR(inr & INO_MASK)] |= (1UL << 31); 97 98 async_answer_0(callid, EOK); 98 99 break; … … 116 117 static bool obio_init(void) 117 118 { 118 sysarg_t paddr; 119 120 if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) { 121 printf("%s: No OBIO registers found\n", NAME); 122 return false; 123 } 124 125 base_phys = (uintptr_t) paddr; 119 base_phys = (uintptr_t) 0x1fe00000000ULL; 126 120 127 121 int flags = AS_AREA_READ | AS_AREA_WRITE; … … 135 129 } 136 130 137 printf("%s: OBIO registers with base at % zu\n", NAME, base_phys);131 printf("%s: OBIO registers with base at %lx\n", NAME, base_phys); 138 132 139 133 async_set_fallback_port_handler(obio_connection, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.