Skip to content

Instantly share code, notes, and snippets.

View atiq-cs's full-sized avatar
💭
Head's on the cloud

Atiq Rahman atiq-cs

💭
Head's on the cloud
View GitHub Profile
print('hello world')
@atiq-cs
atiq-cs / bootstrap.py.diff
Created September 29, 2016 19:41
Modification of bootstrap.py for sparc solaris
diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py
index e830454..0d6d817 100755
--- a/tools/gn/bootstrap/bootstrap.py
+++ b/tools/gn/bootstrap/bootstrap.py
@@ -31,8 +31,9 @@ SRC_ROOT = os.path.dirname(os.path.dirname(GN_ROOT))
is_win = sys.platform.startswith('win')
is_linux = sys.platform.startswith('linux')
+is_solaris = sys.platform.startswith('sunos')
is_mac = sys.platform.startswith('darwin')
@atiq-cs
atiq-cs / v8-build-freebsd-port.log
Created November 8, 2016 21:54
a test of v8 build port on march 2, 1016
# make install clean
===> License BSD3CLAUSE accepted by the user
===> v8-3.18.5_1 depends on file: /usr/local/sbin/pkg - found
=> v8-3.18.5.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/vanilla/v8-3.18.5.tar.xz
v8-3.18.5.tar.xz 100% of 8522 kB 719 kBps 00m11s
===> Fetching all distfiles required by v8-3.18.5_1 for building
===> Extracting for v8-3.18.5_1
=> SHA256 Checksum OK for v8-3.18.5.tar.xz.
===> Patching for v8-3.18.5_1
@atiq-cs
atiq-cs / b112_update.log
Created November 16, 2016 19:19
Update info for update to b112 from 110
# Update to build 112
# First command, pkg update -nv
# 2nd command, pkg update --accept
# pkg update -nv
Password:
Packages to remove: 30
Packages to install: 43
Packages to update: 857
Estimated space available: 152.72 GB
@atiq-cs
atiq-cs / test-macro-assembler-x64.cc
Created November 23, 2016 23:35
Doing Assert Tests on x64 v8
// linked with http://blog.fftsys.com/tech/AssertNotSmi-test-x64
static void TestAssertNotSmi(MacroAssembler* masm, Label* exit, int id, int value) {
__ movl(rax, Immediate(id));
// __ Move(rcx, (Smi *) value); // be aware of this!
__ movl(rcx, Immediate(value));
__ AssertNotSmi(rcx);
__ j(equal, exit);
}
TEST(AssertNotSmi) {
@atiq-cs
atiq-cs / TF-3200_build.log
Created December 20, 2016 00:07
Build log of TF 3200 Driver build which fails on sundance
make -C /lib/modules/2.6.32-220.el6.i686/build SUBDIRS=/root/LinuxDriver modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-220.el6.i686'
CC [M] /root/LinuxDriver/sundance_main.o
/root/LinuxDriver/sundance_main.c: In function ‘sundance_probe1’:
/root/LinuxDriver/sundance_main.c:712: error: implicit declaration of function ‘SET_MODULE_OWNER’
/root/LinuxDriver/sundance_main.c:735: error: ‘struct net_device’ has no member named ‘priv’
/root/LinuxDriver/sundance_main.c:762: error: ‘struct net_device’ has no member named ‘open’
/root/LinuxDriver/sundance_main.c:763: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/root/LinuxDriver/sundance_main.c:764: error: ‘struct net_device’ has no member named ‘stop’
/root/LinuxDriver/sundance_main.c:765: error: ‘struct net_device’ has no member named ‘get_stats’
@atiq-cs
atiq-cs / TryTruncateFloat32ToUint64WithCheck_v02.cpp
Created March 10, 2017 00:12
Second version of TryTruncateFloat32ToUint64WithCheck that is working, this code goes into src/compiler/sparc64/code-generator-sparc64.cc
case kSparcCvtSXu: {
Label done;
Label success;
Label simple;
if (instr->OutputCount() > 1) {
__ or3(G0, G0, i.OutputRegister(1));
}
// NaN
__ fcmps(i.InputSingleRegister(0), i.InputSingleRegister(0));
__ fb(f_unordered, true, &done);
@atiq-cs
atiq-cs / foo8_sparc_native.asm
Created July 8, 2017 03:40
sparc64 native code for f008 function of v8
foo8()
foo8: 9d e3 bf 50 save %sp, -0xb0, %sp
foo8+0x4: f0 77 a8 7f stx %i0, [%fp + 0x87f]
foo8+0x8: f2 77 a8 87 stx %i1, [%fp + 0x887]
foo8+0xc: f4 77 a8 8f stx %i2, [%fp + 0x88f]
foo8+0x10: f6 77 a8 97 stx %i3, [%fp + 0x897]
foo8+0x14: f8 77 a8 9f stx %i4, [%fp + 0x89f]
foo8+0x18: fa 77 a8 a7 stx %i5, [%fp + 0x8a7]
foo8+0x1c: c4 5f a8 7f ldx [%fp + 0x87f]
@atiq-cs
atiq-cs / apt-get_example.txt
Created July 22, 2017 21:33
apt-get update and upgrade examaple
# apt-get update
Ign:1 http://ftp.us.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Get:3 http://ftp.us.debian.org/debian stretch-updates InRelease [88.5 kB]
Get:4 http://ftp.us.debian.org/debian stretch Release [118 kB]
Get:5 http://ftp.us.debian.org/debian stretch Release.gpg [2,373 B]
Get:6 http://ftp.us.debian.org/debian stretch/main Sources [6,749 kB]
Get:7 http://ftp.us.debian.org/debian stretch/main amd64 Packages [7,095 kB]
Get:8 http://ftp.us.debian.org/debian stretch/main Translation-en [5,393 kB]
Fetched 19.4 MB in 11s (1,744 kB/s)
@atiq-cs
atiq-cs / vim_debian_install
Created July 22, 2017 21:37
vim installation example on Debian 9
# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
vim-runtime
Suggested packages:
ctags vim-doc vim-scripts
The following NEW packages will be installed:
vim vim-runtime