Changeset bd55bbb in mainline


Ignore:
Timestamp:
2006-05-21T20:17:17Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48c1ef9
Parents:
cf464d1
Message:

Fixed mips to compile with fb (missing hw_map).
Fixed mips hw virt/phys addresses of fb.
Moved fb_init to post_mm, because it needs malloc().

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/console.c

    rcf464d1 rbd55bbb  
    3232#include <arch/drivers/serial.h>
    3333#include <arch/drivers/msim.h>
    34 #include <genarch/fb/fb.h>
    3534
    3635void console_init(void)
     
    4241        } else {
    4342                msim_console();
    44 #ifdef CONFIG_FB
    45                 fb_init(0xb2000000, 640, 480, 24, 1920); // gxemul framebuffer
    46 #endif
    4743        }
    4844}
  • arch/mips32/src/mips32.c

    rcf464d1 rbd55bbb  
    4646#include <console/chardev.h>
    4747#include <arch/debugger.h>
     48#include <genarch/fb/fb.h>
    4849
    4950#include <arch/asm/regname.h>
     
    112113void arch_post_mm_init(void)
    113114{
     115#ifdef CONFIG_FB
     116                fb_init(0x12000000, 640, 480, 24, 1920); // gxemul framebuffer
     117#endif
    114118}
    115119
  • arch/mips32/src/mm/page.c

    rcf464d1 rbd55bbb  
    3535        page_mapping_operations = &pt_mapping_operations;
    3636}
     37
     38/** Map device into kernel space
     39 * - on mips, all devices are already mapped into kernel space,
     40 *   translate the physical address to uncached area
     41 */
     42__address hw_map(__address physaddr, size_t size)
     43{
     44        return physaddr + 0xa0000000;
     45}
  • generic/src/ipc/sysipc.c

    rcf464d1 rbd55bbb  
    514514        /* Include phone address('id') of the caller in the request,
    515515         * copy whole call->data, not only call->data.args */
    516         STRUCT_TO_USPACE(calldata, &call->data);
     516        if (STRUCT_TO_USPACE(calldata, &call->data)) {
     517                return 0;
     518        }
    517519        return (__native)call;
    518520}
Note: See TracChangeset for help on using the changeset viewer.