[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/LIBMICROPYTHON PATCH 4/5] Add patches.


  • To: "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Mon, 7 Oct 2019 11:02:57 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H9e0O/rrNVwtL4Z713Fu7LorZ5v2Hu+iRM1x3kj5qxw=; b=k7bVE7/kyXz1e/dBONmiCRshDsjF3kNWUCaEeIvjNGTzmm7v/CueWGzSOWCDF7mAokczNuVbQg75VlWiC9RftnuJK/Th1UmSEgnuhj2GXVO4ckoDRNsWNrtlmo6uiGZlmXMXB60Lgw6rUqmnpxSUO+00/GmjdardatKGMVLyWvx1cC2gjNDNRQ2nnu6IavB5U/HQcd36h3xsd2tKeBfIoSzzhTPZOHHPEvUIUgREBHA0J++w/ns9drN4M3omuNEzmdMU9THe/t9lpqhzLt8u4gpvwMXt30O07YYQMdSadHgiLIUfV0R9ByyZxMJ3LszdGh2xyD+bpXv/+4WzV6fBaQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yf6NMe/7xkgOhM+k5nCmByraOPDEZLaIRZ88B6+7ElwVJpggw9wRPQzwEPLX039mAj4UVCjR6l/DcAgbHP0HlGm8gj+uUeuQrlM0KBhRIJ/dFAU4iskkqaxb/3Zdt91ekLMeFXCLJLqFU0v6OfviJAzd9AJ7PKoMX7gw1b7WhoxHZ8jX/+LZZiAIBy3GjGChhTWBOuuEDaoJ2sJ68v2EHLODf5MPmHWq6A2MSIdsd5wS6M29MrkSlXap+RmYHNGjBP2/lZOf60TdLPRNDAkU67619WtyHKBMTr6iJFH1t6rcP2m6woWKQ6KdIzaJZqXWGws6yFxH3kJijrdp4EtaLg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Delivery-date: Mon, 07 Oct 2019 11:03:03 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVc3hg/cHC8jvRYUiZAsyLzet3tqdPFpoA
  • Thread-topic: [Minios-devel] [UNIKRAFT/LIBMICROPYTHON PATCH 4/5] Add patches.

Hey Felipe,

Thank you for the patch.

Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>

On 25.09.2019 11:07, Felipe Huici wrote:
> Add patches to set the "board" to unix and to clear the stack frame.
>
> Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx>
> ---
>   patches/0001-missing-board-defines.patch | 11 +++++++++++
>   patches/0002-clearup-nlrpush-frame.patch | 10 ++++++++++
>   2 files changed, 21 insertions(+)
>   create mode 100644 patches/0001-missing-board-defines.patch
>   create mode 100644 patches/0002-clearup-nlrpush-frame.patch
>
> diff --git a/patches/0001-missing-board-defines.patch 
> b/patches/0001-missing-board-defines.patch
> new file mode 100644
> index 0000000..22a7313
> --- /dev/null
> +++ b/patches/0001-missing-board-defines.patch
> @@ -0,0 +1,11 @@
> +--- a/unix/mpconfigport.h.orig       2017-11-18 08:43:56.096441368 +0100
> ++++ b/unix/mpconfigport.h    2017-11-18 08:42:05.225463413 +0100
> +@@ -25,6 +25,8 @@
> +  */
> +
> + // options to control how MicroPython is built
> ++#define MICROPY_HW_BOARD_NAME "unix"
> ++#define MICROPY_HW_MCU_NAME "unknown-cpu"
> +
> + #define MICROPY_ALLOC_PATH_MAX      (PATH_MAX)
> + #define MICROPY_PERSISTENT_CODE_LOAD (1)
> diff --git a/patches/0002-clearup-nlrpush-frame.patch 
> b/patches/0002-clearup-nlrpush-frame.patch
> new file mode 100644
> index 0000000..44b5849
> --- /dev/null
> +++ b/patches/0002-clearup-nlrpush-frame.patch
> @@ -0,0 +1,10 @@
> +--- a/py/nlrx64.c.orig       2017-08-23 11:50:10.000000000 +0200
> ++++ b/py/nlrx64.c    2017-11-21 14:44:45.513728670 +0100
> +@@ -64,6 +64,7 @@
> +     #if defined(__APPLE__) || defined(__MACH__)
> +     "pop    %rbp                \n" // undo function's prelude
> +     #endif
> ++    "leaveq                     \n" // clean up our frame
> +     "movq   (%rsp), %rax        \n" // load return %rip
> +     "movq   %rax, 16(%rdi)      \n" // store %rip into nlr_buf
> +     "movq   %rbp, 24(%rdi)      \n" // store %rbp into nlr_buf
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.