Displaying 5 results from an estimated 5 matches for "bsbytespersec".
2012 Aug 02
0
[PATCH 1/3] ALPHA: make sector size dynamic in extlinux
...rs = totalbytes / sector_size;
if (totalsectors >= 65536) {
set_16(&sbs->bsSectors, 0);
} else {
@@ -284,7 +298,7 @@ static int patch_file_and_bootblock(int fd, const char *dir, int devfd)
}
set_32(&sbs->bsHugeSectors, totalsectors);
- set_16(&sbs->bsBytesPerSec, SECTOR_SIZE);
+ set_16(&sbs->bsBytesPerSec, sector_size);
set_16(&sbs->bsSecPerTrack, geo.sectors);
set_16(&sbs->bsHeads, geo.heads);
set_32(&sbs->bsHiddenSecs, geo.start);
@@ -292,11 +306,11 @@ static int patch_file_and_bootblock(int fd, const char *d...
2002 Jul 11
1
help with porting patch from 1.62 to 1.75
...+ push bx
+ mov ax,0201h ; read disk, 1 sector
+ mov bx,trackbuf
+ mov cx,1 ; track 0, sector 1
+ xor dh,dh ; head 0
+ mov dl,81h ; second hard drive
+ int 13h
+ pop bx
+ jnc swap_read_ok
+ call crlf
+ mov si,swap_failed
+ jmp abort_load
+swap_read_ok:
+
+ mov bx,[bsBytesPerSec]
+ mov ax,[bx+trackbuf-2]
+ cmp ax,0AA55h ; Boot sector signature
+ je swap_bootsec_ok
+ jmp bad_bootsec
+swap_bootsec_ok:
+
+ call crlf
+ mov si,swap_booting
+ call cwritestr
+
+ push es
+
+ mov ax,[413h] ; Memory size in kBytes
+ dec ax ; reserve 1 kByt...
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512.
Currently it fixes extlinux, MBR for GPT and ext partitions.
Other code is unaffected.
This set of patches has been tested on a read Dell machine running a beta
firmware.
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux,
Merry Christmas! These patches will make extlinux work with umounted
ext2/3/4 filesystem, for example:
$ extlinux -i /dev/sdXN
or
$ extlinux -i file_block
Also it can work with something like:
$ extlinux /dev/sdXN --reset-adv
or
$ extlinux file_block --reset-adv
We don't use a new option (I planed to use "-d" but it is already in
use), it will check whether the
2015 Jan 02
13
[PATCH 0/9] linux/syslinux: support ext2/3/4 device
Hello,
Happy New Year!
These patches make syslinux/linux support ext2/3/4, and it doesn't
require the root privilege, I'd like to add a separate e2fs/syslinux, if
that is more appropriate, it should be easy to do that.
I put these patches on github so that you can easily get them in case
you'd like to test them. (The repo's name is sys_tmp, which avoids
confusing others, I will