Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allocate 4096 bytes for 4k alligned devices #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/libbootmsg/bootmsg_lvl.S
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ ENTRY(bootmsg_cp)
bl io_putchar // print character
mr r3, r9
bl io_printhex16 // print checkpoint ID
.rept 5
li r3,'\b'
bl io_putchar // print backspaces
.endr
mtlr r11
blr

Expand Down
6 changes: 3 additions & 3 deletions slof/fs/packages/disk-label.fs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ CONSTANT /partition-entry
: init-block ( -- )
s" block-size" ['] $call-parent CATCH IF ABORT" parent has no block-size." THEN
to block-size
d# 2048 alloc-mem
dup d# 2048 erase
d# 4096 alloc-mem
dup d# 4096 erase
to block
debug-disk-label? IF
." init-block: block-size=" block-size .d ." block=0x" block u. cr
Expand Down Expand Up @@ -506,7 +506,7 @@ CONSTANT /partition-entry

: close ( -- )
debug-disk-label? IF ." Closing disk-label: block=0x" block u. ." block-size=" block-size .d cr THEN
block d# 2048 free-mem
block d# 4096 free-mem
;


Expand Down