Rev 756 | Rev 786 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 756 | Rev 762 | ||
---|---|---|---|
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(FRAME_KA, ONE_FRAME, NULL); |
50 | frame0 = frame_alloc(FRAME_KA, ONE_FRAME, NULL, NULL); |
51 | frame1 = frame_alloc(FRAME_KA, ONE_FRAME, NULL); |
51 | frame1 = frame_alloc(FRAME_KA, ONE_FRAME, NULL, NULL); |
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; |