1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/docs/wiki/Library--start Tue Jun 11 16:49:23 2019 +0200
1.3 @@ -0,0 +1,16 @@
1.4 += Payload Start Routine =
1.5 +
1.6 +The `lib/start.S` file contains the start-up routine for a deployed payload.
1.7 +Its responsibilities are as follows:
1.8 +
1.9 + 1. To enable caching, if available.
1.10 + 1. To initialise a kernel stack for privileged routines to use.
1.11 + 1. To set up the globals pointer so that symbols can be looked up.
1.12 + 1. To [[../payload|initialise payload data]].
1.13 + 1. To enter the main program of the payload.
1.14 +
1.15 +The start-up routine is positioned in the `.boot` section of the payload.
1.16 +
1.17 +Alongside the start-up routine are definitions of device configuration
1.18 +registers: `.devcfg0`, `.devcfg1` and `.devcfg2`. The actual values set for
1.19 +these registers should be defined in an application's `devconfig.h` file.