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
Ben Avison
Kernel
Commits
d6ece89e
Commit
d6ece89e
authored
25 years ago
by
Kevin Bracey
Browse files
Options
Download
Email Patches
Plain Diff
Added OS_Module 21 (find end of ROM module chain).
Version 4.79. Tagged as 'Kernel-4_79'
parent
d1afdd90
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
11 deletions
+41
-11
VersionASM
VersionASM
+4
-4
VersionNum
VersionNum
+7
-7
hdr/ModHand
hdr/ModHand
+2
-0
s/ModHand
s/ModHand
+28
-0
No files found.
VersionASM
View file @
d6ece89e
...
...
@@ -6,9 +6,9 @@
GBLS Module_MinorVersion
GBLS Module_Date
GBLS Module_FullVersion
Module_MajorVersion SETS "4.7
8
"
Module_Version SETA 47
8
Module_MajorVersion SETS "4.7
9
"
Module_Version SETA 47
9
Module_MinorVersion SETS ""
Module_Date SETS "0
6
May 1999"
Module_FullVersion SETS "4.7
8
"
Module_Date SETS "0
7
May 1999"
Module_FullVersion SETS "4.7
9
"
END
This diff is collapsed.
Click to expand it.
VersionNum
View file @
d6ece89e
/* (4.7
8
)
/* (4.7
9
)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 4.7
8
#define Module_MajorVersion_CMHG 4.7
9
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 0
6
May 1999
#define Module_Date_CMHG 0
7
May 1999
#define Module_MajorVersion "4.7
8
"
#define Module_Version 47
8
#define Module_MajorVersion "4.7
9
"
#define Module_Version 47
9
#define Module_MinorVersion ""
#define Module_Date "0
6
May 1999"
#define Module_Date "0
7
May 1999"
#define Module_FullVersion "4.7
8
"
#define Module_FullVersion "4.7
9
"
This diff is collapsed.
Click to expand it.
hdr/ModHand
View file @
d6ece89e
...
...
@@ -39,6 +39,7 @@ OldOpt SETA {OPT}
; 29-Jul-87 APT LookupName
; 17-Aug-87 APT EnumerateROM_Modules
; 23-Jan-91 TMD EnumerateROM_ModulesWithInfo
; 07-May-99 KJB FindEndOfROM_ModuleChain
ModHandReason_Run
*
0
ModHandReason_Load
*
1
...
...
@@ -61,6 +62,7 @@ ModHandReason_AddPoduleModule * 17
ModHandReason_LookupName
*
18
ModHandReason_EnumerateROM_Modules
*
19
ModHandReason_EnumerateROM_ModulesWithInfo
*
20
ModHandReason_FindEndOfROM_ModuleChain
*
21
; Real module offsets
...
...
This diff is collapsed.
Click to expand it.
s/ModHand
View file @
d6ece89e
...
...
@@ -547,6 +547,7 @@ ModuleHandler ROUT
ModuleDispatchEntry
LookupName
ModuleDispatchEntry
EnumerateROM_Modules
ModuleDispatchEntry
EnumerateROM_ModulesWithInfo
ModuleDispatchEntry
FindEndOfROM_ModuleChain
NaffSWI
; Set V and return
ADR
R0
,
ErrorBlock_BadModuleReason
...
...
@@ -1598,6 +1599,33 @@ Module_EnumerateROM_ModulesWithInfo ROUT
Pull
"r8, r9, lr"
; restore registers
ExitSWIHandler
; and exit
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; FindEndOfROM_ModuleChain
;
; In : R1 = -1 => ROM
; = other => reserved
;
; Out: R1 = preserved
; R2 -> first word after ROM module chain
Module_FindEndOfROM_ModuleChain
ROUT
CMP
r1
,
#-
1
; Only works for the system ROM at present
ADRNEL
r0
,
ErrorBlock_BadParameters
[
International
Push
"lr"
,
NE
BLNE
TranslateError
Pull
"lr"
,
EQ
]
BNE
SLVK_SetV
ADRL
r2
,
SysModules_Info
+
4
; Step through until the end of the module chain
10
LDR
r11
,
[
r2
,
#-
4
]
TEQ
r11
,
#
0
ADDNE
r2
,
r2
,
r11
BNE
%BT10
ExitSWIHandler
; and exit
;*************************************************************
; Support routines.
;
...
...
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