[coldfire-gnu-discuss] C Stack Initialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coldfire-gnu-discuss] C Stack Initialization
- To: <coldfire-gnu-discuss@xxxxxxxxxxxxxxxx>
- Subject: [coldfire-gnu-discuss] C Stack Initialization
- From: "Corrin Meyer" <Corrin.Meyer@xxxxxxxxxxxxxxx>
- Date: Wed, 3 Sep 2008 14:27:45 -0400
Is there an easy way using CS3 to have the stack initialized to a
predefined bit pattern? By the time main is executed the stack area has
already been used to some degree so starting at __cs3_stack would likely
cause problems. I suppose I can try to determine the current stack
pointer once I enter main() by grabbing it from the register or
something similar but the stack should really be fully initialized prior
to entering main.
Corrin J. Meyer
DornerWorks, Ltd.
Embedded Systems Engineering
T: 616.389.8336
F: 616.245.8372
E: corrin.meyer@xxxxxxxxxxxxxxx <mailto:corrin.meyer@xxxxxxxxxxxxxxx>
3445 Lake Eastbrook Blvd. SE
Grand Rapids, MI 49546