Skip to content

Commit

Permalink
use byte ops to retrieve flash id for write, for P04 P08 CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
antus committed Aug 10, 2023
1 parent eb8185a commit c937df3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Kernels/Kernel.S
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ ProcessEraseSector:
clr.l %d0 | Start Clean
movea.l #FlashIDReply, %a1 | Pointer to FlashIDReply buffer

move.b 5(%a1), %d1
move.b 5(%a1), %d1 | Copy the manufacturer ID to d1
lsl.l #8, %d1
move.b 6(%a1), %d1

Expand Down Expand Up @@ -413,7 +413,9 @@ ProcessEraseSectorFinal:
|
ProcessWriteFlash:
movea.l #FlashIDReply, %a2 | Pointer to FlashIDReply buffer
move.w 7(%a2), %d1 | Move Flash Chip ID to d1
move.b 5(%a2), %d1 | Copy the manufacturer ID to d1
lsl.l #8, %d1
move.b 6(%a2), %d1

| Intel
cmp.w #INTEL_ID, %d1 | Intel manufacturer ID
Expand Down

0 comments on commit c937df3

Please sign in to comment.