arm: bcm2835 framebuffer
* Drop some messy mmu externs * Set proper page flags
This commit is contained in:
@@ -26,11 +26,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "arch_mailbox.h"
|
#include "arch_mailbox.h"
|
||||||
|
#include "arch_mmu.h"
|
||||||
|
|
||||||
|
|
||||||
//XXX
|
//XXX
|
||||||
extern "C" addr_t
|
|
||||||
mmu_map_physical_memory(addr_t physicalAddress, size_t size, uint32 flags);
|
|
||||||
extern "C" bool
|
extern "C" bool
|
||||||
mmu_get_virtual_mapping(addr_t virtualAddress, phys_addr_t *_physicalAddress);
|
mmu_get_virtual_mapping(addr_t virtualAddress, phys_addr_t *_physicalAddress);
|
||||||
|
|
||||||
@@ -162,8 +161,7 @@ ArchFBArmBCM2835::SetVideoMode(int width, int height, int depth)
|
|||||||
= BCM283X_BUS_TO_PHYSICAL(sFramebufferConfig.frame_buffer_address);
|
= BCM283X_BUS_TO_PHYSICAL(sFramebufferConfig.frame_buffer_address);
|
||||||
fSize = sFramebufferConfig.screen_size;
|
fSize = sFramebufferConfig.screen_size;
|
||||||
|
|
||||||
// kDefaultPageFlags?
|
fBase = (addr_t)mmu_map_physical_memory(fPhysicalBase, fSize, kDefaultPageFlags);
|
||||||
fBase = (addr_t)mmu_map_physical_memory(fPhysicalBase, fSize, 0);
|
|
||||||
|
|
||||||
dprintf("video framebuffer: va: %p pa: %p\n", (void *)fBase,
|
dprintf("video framebuffer: va: %p pa: %p\n", (void *)fBase,
|
||||||
(void *)fPhysicalBase);
|
(void *)fPhysicalBase);
|
||||||
|
|||||||
Reference in New Issue
Block a user