Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bootloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
bootloader
Commits
ad6d3ee3
Commit
ad6d3ee3
authored
8 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Print error number on disk error
parent
66a17439
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x86_64/bootsector.asm
+8
-2
8 additions, 2 deletions
x86_64/bootsector.asm
with
8 additions
and
2 deletions
x86_64/bootsector.asm
+
8
−
2
View file @
ad6d3ee3
...
@@ -160,6 +160,13 @@ load:
...
@@ -160,6 +160,13 @@ load:
ret
ret
error:
error:
mov
bh
,
0
mov
bl
,
ah
call
print_num
mov
al
,
' '
call
print_char
mov
si
,
errored
mov
si
,
errored
call
print
call
print
call
print_line
call
print_line
...
@@ -183,8 +190,7 @@ DAPACK:
...
@@ -183,8 +190,7 @@ DAPACK:
.count:
dw
0
; int 13 resets this to # of blocks actually read/written
.count:
dw
0
; int 13 resets this to # of blocks actually read/written
.buf:
dw
0
; memory buffer destination address (0:7c00)
.buf:
dw
0
; memory buffer destination address (0:7c00)
.seg:
dw
0
; in memory page zero
.seg:
dw
0
; in memory page zero
.addr:
dd
0
; put the lba to read in this spot
.addr:
dq
0
; put the lba to read in this spot
dd
0
; more storage bytes only for big lba's ( > 4 bytes )
times
510
-
(
$
-
$$
)
db
0
times
510
-
(
$
-
$$
)
db
0
db
0x55
db
0x55
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment