Changeset f4cfd271 in mainline for uspace/drv/platform/sun4v/sun4v.c


Ignore:
Timestamp:
2017-11-26T10:22:30Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
474c68b
Parents:
5f4c41b2
Message:

Sun4v-con should get output buffer address via hw_res, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/sun4v/sun4v.c

    r5f4c41b2 rf4cfd271  
    7575                }
    7676        },
     77        {
     78                .type = MEM_RANGE,
     79                .res.mem_range = {
     80                        .address = 0,
     81                        .size = PAGE_SIZE,
     82                        .relative = true,
     83                        .endianness = LITTLE_ENDIAN
     84                }
     85        },
    7786};
    7887
     
    223232        }
    224233
    225         console_data.pio_window.mem.base = paddr;
     234        console_res[0].res.mem_range.address = paddr;
     235
     236        rc = sysinfo_get_value("niagara.outbuf.address", &paddr);
     237        if (rc != EOK) {
     238                ddf_msg(LVL_ERROR, "niagara.outbuf.address not set (%d)", rc);
     239                return rc;
     240        }
     241
     242        console_res[1].res.mem_range.address = paddr;
    226243        return EOK;
    227244}
Note: See TracChangeset for help on using the changeset viewer.