Commit c563ce28 authored by Robert Sprowson's avatar Robert Sprowson

Issue service call once boot variables are set

After setting BootResources$Things, Choices$Things, Boot$Things a new service call is sent to allow, for example, ROM based modules to react to any implications of that change.
R0 is defined as flags, currently all 0, might be useful one day.
Tested briefly.

Version 1.19. Tagged as 'Boot-1_19'
parent a1f478b2
......@@ -384,6 +384,11 @@ static void bootvars_boot_dir_netfs(char *canon)
sprintf (canon, "Net::%s.%s.!ArmBoot", disc, csd);
}
static void bootvars_now_set(void)
{
_swix(OS_ServiceCall, _INR(0,1), 0 /* Flags */, Service_BootBootVarsSet);
}
static void bootvars_canonicalise_boot_dir(void)
{
/* "Canonicalise" Boot$Dir, making sure it contains the filing system and
......@@ -434,7 +439,9 @@ int main(void)
/* Canonicalise Boot$Dir */
bootvars_canonicalise_boot_dir();
/* OK - exit cleanly */
/* All set, tell ROM modules that is the case */
bootvars_now_set();
return 0;
}
No preview for this file type
/* (1.18)
/* (1.19)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.18
#define Module_MajorVersion_CMHG 1.19
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 27 May 2013
#define Module_Date_CMHG 21 Nov 2013
#define Module_MajorVersion "1.18"
#define Module_Version 118
#define Module_MajorVersion "1.19"
#define Module_Version 119
#define Module_MinorVersion ""
#define Module_Date "27 May 2013"
#define Module_Date "21 Nov 2013"
#define Module_ApplicationDate "27-May-13"
#define Module_ApplicationDate "21-Nov-13"
#define Module_ComponentName "Boot"
#define Module_ComponentPath "castle/RiscOS/Sources/SystemRes/Boot"
#define Module_FullVersion "1.18"
#define Module_HelpVersion "1.18 (27 May 2013)"
#define Module_LibraryVersionInfo "1:18"
#define Module_FullVersion "1.19"
#define Module_HelpVersion "1.19 (21 Nov 2013)"
#define Module_LibraryVersionInfo "1:19"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment