Skip to content

Instantly share code, notes, and snippets.

View dmiller423's full-sized avatar

David Miller dmiller423

View GitHub Profile
static void vcopy(void *vdst, void *vsrc)
{
asm volatile (
"vl %v0, 0(%r3), 0 \n"
"vst %v0, 0(%r2), 0 \n"
);
}
"
0000000000000960 <_ZL5vcopyPvS_>:
int mprotect(void *addr, void *base, size_t len, int prot)
{
Result rc=0;
static bool isMapped=false;
Handle hProc = envGetOwnProcessHandle();
if (isMapped) {
rc=svcUnmapProcessCodeMemory(hProc, (u64)addr, (u64)base, len);
if (R_FAILED(rc)) {
printf(" Error, svcUnmapProcessCodeMemory() failed w. rc: %X\n", rc);
diff --git a/config.guess b/config.guess
index c0adba9..59ec0ce 100755
--- a/config.guess
+++ b/config.guess
@@ -969,6 +969,9 @@ EOF
*) echo hppa-unknown-linux-gnu ;;
esac
exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-gnu
//
// Copyright 2013, Tarje Nissen-Meyer, Alexandre Fournier, Martin van Driel
// Simon Stähler, Kasra Hosseini, Stefanie Hempel
//
// This file is part of AxiSEM.
// It is distributed from the webpage <http://www.axisem.info>
//
// AxiSEM is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or