Rev 877 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 877 | Rev 881 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | size = (size+4095) & ~ 4095; |
39 | size = (size+4095) & ~ 4095; |
Line 40... | Line 40... | ||
40 | 40 | ||
41 | if (mapped = UserAlloc(size)) |
41 | if (mapped = UserAlloc(size)) |
42 | { |
42 | { |
Line 43... | Line 43... | ||
43 | CommitPages(mapped, ((u32_t)local+rhd.PhisBase)|7|(1<<9), size); |
43 | CommitPages(mapped, ((u32_t)local+rhd.LinearAddr)|7|(1<<9), size); |
44 | 44 | ||
45 | io->mapped = mapped; |
45 | io->mapped = mapped; |
Line 51... | Line 51... | ||
51 | pixmap->format = PICT_a8r8g8b8; |
51 | pixmap->format = PICT_a8r8g8b8; |
52 | pixmap->flags = io->flags; |
52 | pixmap->flags = io->flags; |
53 | pixmap->pitch = pitch; |
53 | pixmap->pitch = pitch; |
54 | pixmap->mapped = mapped; |
54 | pixmap->mapped = mapped; |
55 | pixmap->pitch_offset = ((pitch/64)<<22)| (((u32_t)local+rhd.FbIntAddress)>>10); |
55 | pixmap->pitch_offset = ((pitch/64)<<22)| (((u32_t)local+rhd.fbLocation)>>10); |
56 | pixmap->local = local; |
56 | pixmap->local = local; |
57 | 57 | ||
Line 58... | Line 58... | ||
58 | dbgprintf("pixmap.pitch_offset: %x\n", pixmap->pitch_offset); |
58 | dbgprintf("pixmap.pitch_offset: %x\n", pixmap->pitch_offset); |
59 | dbgprintf("width: %d height: %d\n",pixmap->width,pixmap->height ); |
59 | dbgprintf("width: %d height: %d\n",pixmap->width,pixmap->height ); |
60 | dbgprintf("map at %x\n", pixmap->mapped); |
60 | dbgprintf("map at %x\n", pixmap->mapped); |