sleep.S (aaccf3c97418f169afdbb5855e9cbcbda34e90fd) sleep.S (d7cceda96badc1bd444cff27ab9c375a1277c1e3)
1/*
2 * This file contains sleep low-level functions for PowerBook G3.
3 * Copyright (C) 1999 Benjamin Herrenschmidt (benh@kernel.crashing.org)
4 * and Paul Mackerras (paulus@samba.org).
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 42 unchanged lines hidden (view full) ---

51 (defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32))
52
53/* This gets called by via-pmu.c late during the sleep process.
54 * The PMU was already send the sleep command and will shut us down
55 * soon. We need to save all that is needed and setup the wakeup
56 * vector that will be called by the ROM on wakeup
57 */
58_GLOBAL(low_sleep_handler)
1/*
2 * This file contains sleep low-level functions for PowerBook G3.
3 * Copyright (C) 1999 Benjamin Herrenschmidt (benh@kernel.crashing.org)
4 * and Paul Mackerras (paulus@samba.org).
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 42 unchanged lines hidden (view full) ---

51 (defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32))
52
53/* This gets called by via-pmu.c late during the sleep process.
54 * The PMU was already send the sleep command and will shut us down
55 * soon. We need to save all that is needed and setup the wakeup
56 * vector that will be called by the ROM on wakeup
57 */
58_GLOBAL(low_sleep_handler)
59#ifndef CONFIG_6xx
59#ifndef CONFIG_PPC_BOOK3S_32
60 blr
61#else
62 mflr r0
63 stw r0,4(r1)
64 stwu r1,-SL_SIZE(r1)
65 mfcr r0
66 stw r0,SL_CR(r1)
67 stw r2,SL_R2(r1)

--- 321 unchanged lines hidden (view full) ---

389#endif /* defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ) */
390
391 .section .data
392 .balign L1_CACHE_BYTES
393sleep_storage:
394 .long 0
395 .balign L1_CACHE_BYTES, 0
396
60 blr
61#else
62 mflr r0
63 stw r0,4(r1)
64 stwu r1,-SL_SIZE(r1)
65 mfcr r0
66 stw r0,SL_CR(r1)
67 stw r2,SL_R2(r1)

--- 321 unchanged lines hidden (view full) ---

389#endif /* defined(CONFIG_PM) || defined(CONFIG_CPU_FREQ) */
390
391 .section .data
392 .balign L1_CACHE_BYTES
393sleep_storage:
394 .long 0
395 .balign L1_CACHE_BYTES, 0
396
397#endif /* CONFIG_6xx */
397#endif /* CONFIG_PPC_BOOK3S_32 */
398 .section .text
398 .section .text