Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
Programmer
BootCmds
Commits
027146f3
Commit
027146f3
authored
28 years ago
by
Neil Turton
Browse files
Options
Download
Email Patches
Plain Diff
Import from SrcFiler
parent
5c3be877
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
3 deletions
+27
-3
CMHG/header
CMHG/header
+7
-2
Resources/Messages
Resources/Messages
+0
-0
Resources/UK/Messages
Resources/UK/Messages
+0
-0
c/main
c/main
+18
-0
h/main
h/main
+2
-1
No files found.
CMHG/header
View file @
027146f3
...
...
@@ -14,7 +14,7 @@
;
title-string: BootCommands
help-string: Boot_Commands 1.1
4
help-string: Boot_Commands 1.1
5
initialisation-code: main_initialise
...
...
@@ -59,4 +59,9 @@ command-keyword-table: main_command
gstrans-map: 0,
international:,
invalid-syntax: "SafeLogonSyntax",
help-text: "SafeLogonHelp")
help-text: "SafeLogonHelp"),
FreePool( min-args: 0, max-args: 0,
gstrans-map: 0,
international:,
invalid-syntax: "FreePoolSyntax",
help-text: "FreePoolHelp")
This diff is collapsed.
Click to expand it.
Resources/Messages
View file @
027146f3
No preview for this file type
This diff is collapsed.
Click to expand it.
Resources/UK/Messages
View file @
027146f3
No preview for this file type
This diff is collapsed.
Click to expand it.
c/main
View file @
027146f3
...
...
@@ -628,6 +628,23 @@ finish:
return
error
;
}
static
os_error
*
Free_Pool
(
char
*
tail
)
{
int
next_size
;
os_error
*
err
=
xwimp_slot_size
(
-
1
,
-
1
,
NULL
,
&
next_size
,
NULL
);
if
(
err
==
NULL
)
{
int
app_size
;
err
=
xos_change_environment
(
0x0E
,
0
,
0
,
0
,
(
void
**
)
&
app_size
,
NULL
,
NULL
);
if
(
err
==
NULL
)
err
=
xos_read_dynamic_area
(
6
,
NULL
,
NULL
,
NULL
);
if
(
err
==
NULL
)
err
=
xos_change_dynamic_area
(
6
,
app_size
-
next_size
,
NULL
);
}
return
err
;
NOT_USED
(
tail
);
}
/*------------------------------------------------------------------------*/
_kernel_oserror
*
main_initialise
(
char
*
tail
,
int
podule_base
,
void
*
workspace
)
...
...
@@ -679,6 +696,7 @@ _kernel_oserror *main_initialise (char *tail, int podule_base,
Commands
[
main_LOAD_CMOS
]
=
&
Load_CMOS
;
Commands
[
main_REPEAT
]
=
&
Repeat
;
Commands
[
main_SAFE_LOGON
]
=
&
Safe_Logon
;
Commands
[
main_FREE_POOL
]
=
*
Free_Pool
;
finish:
if
(
error
!=
NULL
)
...
...
This diff is collapsed.
Click to expand it.
h/main
View file @
027146f3
...
...
@@ -42,7 +42,8 @@
#define main_LOAD_CMOS 4
#define main_REPEAT 5
#define main_SAFE_LOGON 6
#define main_COMMAND_COUNT 7
#define main_FREE_POOL 7
#define main_COMMAND_COUNT 8
extern
_kernel_oserror
*
main_initialise
(
char
*
,
int
,
void
*
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment