From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752143AbcBLR5Z (ORCPT ); Fri, 12 Feb 2016 12:57:25 -0500 Received: from mail.litepoint.com ([71.5.56.119]:52800 "EHLO mail.litepoint.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751074AbcBLR5Y convert rfc822-to-8bit (ORCPT ); Fri, 12 Feb 2016 12:57:24 -0500 X-Greylist: delayed 310 seconds by postgrey-1.27 at vger.kernel.org; Fri, 12 Feb 2016 12:57:24 EST From: Rudici Cazeao To: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Date: Fri, 12 Feb 2016 09:52:13 -0800 Subject: Reinitiazling an arm machine without restarting the kernel or rebooting the machine Thread-Topic: Reinitiazling an arm machine without restarting the kernel or rebooting the machine Thread-Index: AdFlvQVVfOzhL/a8QcqKmg76lrhyHQAAOJVQ Message-ID: <689B1B2CF734104FB52EED5DDD4A6D6502A395A0900C@LPEXMB01.litepoint.internal> References: <1455227590-9837-1-git-send-email-yang.shi@linaro.org> <56BDE260.20504@arm.com> <56BE18AB.4090902@linaro.org> <20160212174116.GI17901@arm.com> <56BE19AF.7000605@linaro.org> In-Reply-To: <56BE19AF.7000605@linaro.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All, I have the following arch machine defined as follows: MACHINE_START(TRANSCEDE, "Transcede 2200/3300") /* Maintainer: Intel Corporation */ .boot_params = PHYS_OFFSET + 0x00000100, .map_io = transcede_map_io, .init_irq = transcede_init_irq, .timer = &transcede_timer, .init_machine = transcede_init, .reserve = transcede_reserve, MACHINE_END I would like to be reable to reinitialize the machine in the state that it was in when it had firt booted up whithout actually rebooting or restarting the kernel. How can I go about this? I was thinking about restarting from the following statement from init/main.c setup_arch(&command_line); Is this the right way to go? Thanks,