Skip to content

Instantly share code, notes, and snippets.

View aglasgall's full-sized avatar

Anna Glasgall aglasgall

View GitHub Profile
set name=pkg.fmri value=pkg://openindiana.org/SUNWperl584core@5.8.4,5.11-0.133:20140122T021435Z
set name=org.opensolaris.consolidation value=osnet
set name=variant.opensolaris.zone value=global value=nonglobal
set name=variant.arch value=sparc value=i386
depend fmri=consolidation/osnet/osnet-incorporation type=require

Keybase proof

I hereby claim:

  • I am aglasgall on github.
  • I am aglasgall (https://keybase.io/aglasgall) on keybase.
  • I have a public key whose fingerprint is B012 F76B 6B17 7F30 5117 4423 9683 B491 F141 F0AF

To claim this, I am signing this object:

if RUBY_PLATFORM =~ /linux/
PR_SET_DEATHSIG = 1
if RUBY_PLATFORM =~ /_64/
NR_PRCTL = 157
else
NR_PRCTL = 172
end
SIGTERM = 15
syscall NR_PRCTL, PR_SET_DEATHSIG, SIGTERM
end
typedef u32int kobject_type_t;
typedef struct acl {
} acl_t;
typedef struct kstring {
char *data;
u32int len;
} kstring_t;
do_switch_task:
cli
pop ecx ; throw away return address
pop ecx ; first parameter is the new eip
pop esi ; second parameter is new esp, store in esi temporarily
pop edi ; third is new ebp, store in edi temporarily
pop edx ; fourth is new cr3, but we can't pop
mov esp, esi
mov ebp, edi
mov cr3, edx ; directly into that