Skip to content

Instantly share code, notes, and snippets.

View FlyGoat's full-sized avatar
🎯
Focusing

Jiaxun Yang FlyGoat

🎯
Focusing
View GitHub Profile
@FlyGoat
FlyGoat / mipsinsn.decode
Created September 5, 2022 13:25
mipsinsn.decode
# All MIPS base instructions
# Generated from MIPS AVP
#
# Fields
#
%rd 11:5
%rs 21:5
@FlyGoat
FlyGoat / uoe_auto_login.js
Last active May 23, 2022 14:37
UoE Auto Login UserScript
// ==UserScript==
// @name UoE Auto Login
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Auto Login on University of Edinburgh websites
// @author Jiaxun Yang
// @match *://www.ease.ed.ac.uk/*
// @match *://www.myed.ed.ac.uk/*
// @match *://www.learn.ed.ac.uk/*
// @match *://www.ed.ac.uk/*
@FlyGoat
FlyGoat / yoga14s_bios_unlock.py
Created January 5, 2021 02:41
Lenovo Yoga14s BIOS unlock
#!/usr/bin/python
import portio
portio.iopl(3)
portio.ioperm(0x72, 2, 1)
portio.outb_p(0xf7, 0x72)
portio.outb_p(0x77, 0x73)
@FlyGoat
FlyGoat / keybase.md
Created August 16, 2019 18:58
keybase.md

Keybase proof

I hereby claim:

  • I am flygoat on github.
  • I am flygoat (https://keybase.io/flygoat) on keybase.
  • I have a public key whose fingerprint is 9803 79BE FEBF BF47 7EA0 4EF9 C111 9490 73FC 0F67

To claim this, I am signing this object:

@FlyGoat
FlyGoat / gcc_mno-unaligned-access.patch
Created December 27, 2018 07:12
gcc_mno-unaligned-access.patch
diff -Nur gcc-8.2.0/gcc/config/mips/mips.h gcc-8.2.0-fg/gcc/config/mips/mips.h
--- gcc-8.2.0/gcc/config/mips/mips.h 2018-01-03 18:03:58.000000000 +0800
+++ gcc-8.2.0-fg/gcc/config/mips/mips.h 2018-12-27 15:03:01.526649000 +0800
@@ -1105,7 +1105,7 @@
&& (MODE) == V2SFmode)) \
&& !TARGET_MIPS16)
-#define ISA_HAS_LWL_LWR (mips_isa_rev <= 5 && !TARGET_MIPS16)
+#define ISA_HAS_LWL_LWR (mips_isa_rev <= 5 && !TARGET_MIPS16 && !TARGET_NO_UNALIGNED_ACCESS)
From 20d76cab4ab707325b42629ecebe34b9b5cb603a Mon Sep 17 00:00:00 2001
From: Jiaxun Yang <jiaxun.yang@flygoat.com>
Date: Mon, 24 Dec 2018 11:26:48 +0800
Subject: [PATCH] drivers/rtc/ls1x: Prevent RTC irq block whole system
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
drivers/rtc/rtc-ls1x-toy.c | 5 +++++
drivers/rtc/rtc-ls1x.c | 11 +++++++++++
2 files changed, 16 insertions(+)
@FlyGoat
FlyGoat / kicad-mips_n64-libcontext.patch
Last active December 25, 2018 12:54
kicad-mips_n64-libcontext patch
diff --git a/common/system/libcontext.cpp b/common/system/libcontext.cpp
index 1f1285370..434df15e6 100644
--- a/common/system/libcontext.cpp
+++ b/common/system/libcontext.cpp
@@ -710,3 +710,120 @@ __asm (
);
#endif
+
+#if defined(LIBCONTEXT_PLATFORM_linux_mips_n64) && defined(LIBCONTEXT_COMPILER_gcc)