vtgpu: Fix the physical memory size
Use the correct endian switching function when switching to a little endian 64-bit address. Even on a little-endian machine this will truncate the address to a 32-bit value. Sponsored by: Arm Ltd
This commit is contained in:
parent
843bea1871
commit
4386935191
|
@ -565,7 +565,7 @@ vtgpu_attach_backing(struct vtgpu_softc *sc)
|
|||
s.req.backing.resource_id = htole32(VTGPU_RESOURCE_ID);
|
||||
s.req.backing.nr_entries = htole32(1);
|
||||
|
||||
s.req.mem[0].addr = htole32(sc->vtgpu_fb_info.fb_pbase);
|
||||
s.req.mem[0].addr = htole64(sc->vtgpu_fb_info.fb_pbase);
|
||||
s.req.mem[0].length = htole32(sc->vtgpu_fb_info.fb_size);
|
||||
|
||||
error = vtgpu_req_resp(sc, &s.req, sizeof(s.req), &s.resp,
|
||||
|
|
Loading…
Reference in New Issue