Rev 934 | Rev 1132 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 934 | Rev 970 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | #include <arch/boot/memmap.h> |
|
29 | #include <arch/mm/memory_init.h> |
30 | #include <arch/mm/memory_init.h> |
30 | #include <typedefs.h> |
31 | #include <typedefs.h> |
- | 32 | #include <print.h> |
|
- | 33 | ||
- | 34 | memmap_t memmap; |
|
- | 35 | ||
31 | 36 | ||
32 | size_t get_memory_size(void) |
37 | size_t get_memory_size(void) |
33 | { |
38 | { |
- | 39 | return memmap.total; |
|
- | 40 | } |
|
- | 41 | ||
- | 42 | ||
- | 43 | void memory_print_map(void) |
|
- | 44 | { |
|
34 | return 0; |
45 | count_t i; |
- | 46 | ||
- | 47 | for (i = 0; i < memmap.count; i++) |
|
- | 48 | printf("base: %L size: %L\n", memmap.zones[i].start, memmap.zones[i].size); |
|
35 | } |
49 | } |