mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-12-27 03:32:24 +00:00
Better padding method in GWROMDisk
This commit is contained in:
parent
58416dfc78
commit
4b4931b243
20
rdisk.c
20
rdisk.c
@ -11,12 +11,20 @@
|
||||
// This function is here just to put padding at the
|
||||
// beginning of the output file
|
||||
void GWROMDisk() {
|
||||
StripAddress(&GWROMDisk);
|
||||
StripAddress(&GWROMDisk);
|
||||
StripAddress(&GWROMDisk);
|
||||
StripAddress(&GWROMDisk);
|
||||
StripAddress(&GWROMDisk);
|
||||
StripAddress(&GWROMDisk);
|
||||
__asm__ __volatile__
|
||||
(
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t"
|
||||
".long 0x00000000\n\t":::);
|
||||
}
|
||||
|
||||
#define RDiskSize (0x00180000L)
|
||||
|
Loading…
Reference in New Issue
Block a user