search for: xchgw

Displaying 12 results from an estimated 12 matches for "xchgw".

Did you mean: xchg
2012 Aug 10
1
[PATCH 4/4] Support sectors >512
...he sector size is 512. */ + /* We assume the partition table is 32K or less */ /* Note: phdr == 6(%bp) */ movw (80+6)(%bp),%cx /* NumberOfPartitionEntries */ movw (84+6)(%bp),%ax /* SizeOfPartitionEntry */ pushw %ax pushw %cx mulw %cx - shrw $9,%ax + divw -6(%bp) /* %dx == 0 here */ xchgw %ax,%cx incw %cx @@ -214,7 +230,7 @@ boot: movl (32+20)(%si),%eax movl (36+20)(%si),%edx call read_sector_phdr - cmpw $0xaa55, -2(%bx) + cmpw $0xaa55, (0x7c00+0x1fe) jne missing_os /* Not a valid boot sector */ movw %bp, %sp /* driveno == bootsec-6 */ popw %dx /* dl -> drive num...
2013 Dec 15
3
[PATCH 1/2] Match comment with code
...evealed other mismatch. Please rework your patch and submit it again to the mailinglist. Groeten Geert Stappers -- $ git diff -U5 mbr/gptmbr.S diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S index 7f450d3..327cfa1 100644 --- a/mbr/gptmbr.S +++ b/mbr/gptmbr.S @@ -191,12 +191,12 @@ found_part: xchgw %ax,%cx /* Set up %cx for rep movsb further down */ movw $dssi_out,%di pushw %di - /* 80 00 00 00 ee 00 00 00 - - bootable partition, type EFI (EE), no CHS information */ + /* 80 00 00 00 ed 00 00 00 + - bootable partition, type EFI (...
2013 Feb 08
6
[PATCH] 4k_sector: Support dynamic sectors in GPT MBR
This patches add support for dynamic sectors to GPT MBR code. First 3 patches are trick and optimizations to gain some space for the forth patch. I have a modified version of SeaBIOS, some code and some script o test it I'll send on a different mail.
2013 Dec 15
0
[PATCH 1/2] Match comment with code
...to the mailinglist. > > > > Groeten > Geert Stappers > > -- > $ git diff -U5 mbr/gptmbr.S > diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S > index 7f450d3..327cfa1 100644 > --- a/mbr/gptmbr.S > +++ b/mbr/gptmbr.S > @@ -191,12 +191,12 @@ found_part: > xchgw %ax,%cx /* Set up %cx for rep movsb further down */ > > movw $dssi_out,%di > pushw %di > > - /* 80 00 00 00 ee 00 00 00 > - - bootable partition, type EFI (EE), no CHS information */ > + /* 80 00 00 00 ed 00 00 00 > +...
2013 Dec 14
4
[PATCH 1/2] Match comment with code
The handover protocol uses ED as partition type but the comment above it still mentions EE Signed-off-by: Ruben Kerkhof <ruben at rubenkerkhof.com> --- mbr/gptmbr.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S index 7f450d3..8ab6b50 100644 --- a/mbr/gptmbr.S +++ b/mbr/gptmbr.S @@ -194,7 +194,7 @@ found_part: pushw %di /* 80 00 00 00
2007 Apr 18
1
[RFC] [PATCH] Split host arch headers for UML's benefit
...long __xchg(unsigned long x, volatile void * ptr, int size) +{ + switch (size) { + case 1: + __asm__ __volatile__("xchgb %b0,%1" + :"=q" (x) + :"m" (*__xg(ptr)), "0" (x) + :"memory"); + break; + case 2: + __asm__ __volatile__("xchgw %w0,%1" + :"=r" (x) + :"m" (*__xg(ptr)), "0" (x) + :"memory"); + break; + case 4: + __asm__ __volatile__("xchgl %0,%1" + :"=r" (x) + :"m" (*__xg(ptr)), "0" (x) + :"memory"); + bre...
2007 Apr 18
1
[RFC] [PATCH] Split host arch headers for UML's benefit
...long __xchg(unsigned long x, volatile void * ptr, int size) +{ + switch (size) { + case 1: + __asm__ __volatile__("xchgb %b0,%1" + :"=q" (x) + :"m" (*__xg(ptr)), "0" (x) + :"memory"); + break; + case 2: + __asm__ __volatile__("xchgw %w0,%1" + :"=r" (x) + :"m" (*__xg(ptr)), "0" (x) + :"memory"); + break; + case 4: + __asm__ __volatile__("xchgl %0,%1" + :"=r" (x) + :"m" (*__xg(ptr)), "0" (x) + :"memory"); + bre...
2009 Mar 30
2
[PATCH 1/1] v2 Add Diagnostic MBR for trouble-shooting
...sing? */ + jz read_common /* Use LBA extended addressing */ + +read_sector_chs: + divl (sectors_cylinder) /* LBA in DX:AX inherited from above */ + shlb $6, %ah /* quotient is the cylinder number */ + movb %ah, %cl /* cylinder high bits (7-6) */ + movb %al, %ch /* cylinder low bits (7-0) */ + xchgw %dx, %ax /* remainder is the sector-offset into the cylinder */ + divb (sectors) + movb %al, %dh /* head number */ + orb %ah, %cl /* sector offset ORed into CL since CL(7-6) already contain two high bits of cylinder number */ + incw %cx /* sector counts start at 1 not 0 */ + +read_common: +r...
2017 Mar 21
3
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
...1 /* Sector count */ pushw $16 /* Size of packet */ movw %sp, %si /* This chunk is skipped if we have ebios */ /* Do not clobber %eax before this chunk! */ /* This also relies on %bx and %edx as set up above. */ read_sector_cbios: divl (secpercyl) shlb $6, %ah movb %ah, %cl movb %al, %ch xchgw %dx, %ax divb (sectors) movb %al, %dh orb %ah, %cl incw %cx /* Sectors are 1-based */ movw $0x0201, %ax read_common: movb (driveno), %dl int $0x13 leaw 16(%si), %sp /* Drop DAPA */ popal ret disk_error: call print_string .ascii "Operating system load error.\r\n" jmp boot_fa...
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.
2009 Mar 30
0
[PATCH 1/1] Add Diagnostic MBR for trouble-shooting
...sing? */ + jz read_common /* Use LBA extended addressing */ + +read_sector_chs: + divl (sectors_cylinder) /* LBA in DX:AX inherited from above */ + shlb $6, %ah /* quotient is the cylinder number */ + movb %ah, %cl /* cylinder high bits (7-6) */ + movb %al, %ch /* cylinder low bits (7-0) */ + xchgw %dx, %ax /* remainder is the sector-offset into the cylinder */ + divb (sectors) + movb %al, %dh /* head number */ + orb %ah, %cl /* sector offset ORed into CL since CL(7-6) already contain two high bits of cylinder number */ + incw %cx /* sector counts start at 1 not 0 */ + +read_common: +r...
2009 Mar 30
2
[PATCH 1/1] v3: Add Diagnostic MBR for trouble-shooting BIOS boot-order problems.
...sing? */ + jz read_common /* Use LBA extended addressing */ + +read_sector_chs: + divl (sectors_cylinder) /* LBA in DX:AX inherited from above */ + shlb $6, %ah /* quotient is the cylinder number */ + movb %ah, %cl /* cylinder high bits (7-6) */ + movb %al, %ch /* cylinder low bits (7-0) */ + xchgw %dx, %ax /* remainder is the sector-offset into the cylinder */ + divb (sectors) + movb %al, %dh /* head number */ + orb %ah, %cl /* sector offset ORed into CL since CL(7-6) already contain two high bits of cylinder number */ + incw %cx /* sector counts start at 1 not 0 */ + +read_common: +r...