Subversion Repositories HelenOS-historic

Rev

Rev 786 | Rev 1196 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 786 Rev 816
Line 45... Line 45...
45
    __address frame0, frame1;
45
    __address frame0, frame1;
46
    __u32 v0, v1;
46
    __u32 v0, v1;
47
 
47
 
48
    printf("Memory management test mapping #1\n");
48
    printf("Memory management test mapping #1\n");
49
 
49
 
50
    frame0 = frame_alloc(ONE_FRAME, FRAME_KA);
50
    frame0 = PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA)));
51
    frame1 = frame_alloc(ONE_FRAME, FRAME_KA); 
51
    frame1 = PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA)));
52
 
52
 
53
    printf("Writing %L to physical address %P.\n", VALUE0, KA2PA(frame0));
53
    printf("Writing %L to physical address %P.\n", VALUE0, KA2PA(frame0));
54
    *((__u32 *) frame0) = VALUE0;
54
    *((__u32 *) frame0) = VALUE0;
55
    printf("Writing %L to physical address %P.\n", VALUE1, KA2PA(frame1));
55
    printf("Writing %L to physical address %P.\n", VALUE1, KA2PA(frame1));
56
    *((__u32 *) frame1) = VALUE1;
56
    *((__u32 *) frame1) = VALUE1;