diff options
author | mark@chromium.org <mark@chromium.org> | 2015-04-15 19:28:11 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org> | 2015-04-15 19:28:11 +0000 |
commit | d88401cca9ff7640387a0d88d75de1e7d8fff294 (patch) | |
tree | b47c776a127bb465572e382e752d5d63ca9b544c /src/common/memory.h | |
parent | Use __NR_rt_sigaction instead of __NR_sigaction (diff) | |
download | breakpad-d88401cca9ff7640387a0d88d75de1e7d8fff294.tar.xz |
MIPS64: Initial MIPS64 related change.
With this change Breakpad can be compiled for MIPS64,
but it is not yet functional.
Patch by Gordana Cmiljanovic <Gordana.Cmiljanovic@imgtec.com>
Review URL: https://breakpad.appspot.com/6824002/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1446 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/memory.h')
-rw-r--r-- | src/common/memory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/memory.h b/src/common/memory.h index 03228f07..d6aa137d 100644 --- a/src/common/memory.h +++ b/src/common/memory.h @@ -114,7 +114,8 @@ class PageAllocator { private: uint8_t *GetNPages(size_t num_pages) { -#if defined(__x86_64__) || defined(__aarch64__) +#if defined(__x86_64__) || defined(__aarch64__) || defined(__aarch64__) || \ + ((defined(__mips__) && _MIPS_SIM == _ABI64)) void *a = sys_mmap(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); #else |