From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulyadi.santosa@gmail.com (Mulyadi Santosa) Date: Sun, 15 Jul 2012 12:49:25 +0700 Subject: [RFC]confusion about syscall In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi... On Sun, Jul 15, 2012 at 9:28 AM, ?? wrote: > and the second program: > > #include > #include > > int main(void) > { > unsigned long value = 0; > value = getpid(); > return 0; > } > > and disassembling it:( objdump -d a.out) > ... > 08048300 : > 8048300: ff 25 00 a0 04 08 jmp *0x804a000 > 8048306: 68 00 00 00 00 push $0x0 > 804830b: e9 e0 ff ff ff jmp 80482f0 <_init+0x3c> Looks like jumping into vsyscall page to me... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com