all repos — mgba @ c14da05d8dca225010677643c32fea5c0ac8517a

mGBA Game Boy Advance Emulator

src/platform/3ds/3ds-memory.c (view raw)

 1/* Copyright (c) 2013-2014 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#include "util/memory.h"
 7
 8#define asm __asm__
 9
10#include <3ds.h>
11
12void* anonymousMemoryMap(size_t size) {
13	return linearAlloc(size);
14}
15
16void mappedMemoryFree(void* memory, size_t size) {
17	UNUSED(size);
18	linearFree(memory);
19}