From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gLtxE-0006M1-FP for kernelnewbies@kernelnewbies.org; Sun, 11 Nov 2018 12:55:24 -0500 Received: by mail-yb1-xb31.google.com with SMTP id t13-v6so3045589ybb.8 for ; Sun, 11 Nov 2018 09:55:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Augusto Mecking Caringi Date: Sun, 11 Nov 2018 18:55:10 +0100 Message-ID: Subject: Re: function stack frames in the kernel To: cartercheng@gmail.com Cc: kernelnewbies List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Message-ID: <20181111175510._ERv92hFfSn_yf_Kbj0S0g25Ua2REBdaflhd9UTvzt0@z> On Sun, Nov 11, 2018 at 6:04 PM Carter Cheng wrote: > I am wondering how the compiler divines which stack to use for function calls and placement of locals and arguments when a function call is made inside the kernel since the kernel has multiple call stacks. Are function calls handled manually inside kernel code or is there something special inside the compiler for handling this? I think this link can answer your question... https://stackoverflow.com/questions/12911841/kernel-stack-and-user-space-stack -- Augusto Mecking Caringi _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies