mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
A couple of simple tweaks that trim BTX by 6 bytes. Since BTX is
16-byte aligned within boot2 however, this actually trims boot2 by 16 bytes.
This commit is contained in:
parent
3fa694fea6
commit
add92b34d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162737
@ -208,7 +208,7 @@ init.7: stosl # Set entry
|
||||
#ifdef PAGING
|
||||
or $0x80000001,%eax # mode and enable paging
|
||||
#else
|
||||
or $0x01,%eax # mode
|
||||
inc %ax # mode
|
||||
#endif
|
||||
mov %eax,%cr0 #
|
||||
ljmp $SEL_SCODE,$init.8 # To 32-bit code
|
||||
@ -919,8 +919,7 @@ dump.2: testb $DMP_MEM,%ch # Dump memory?
|
||||
dump.3: lodsl # Set offset
|
||||
xchgl %eax,%edx # Save
|
||||
lodsl # Get segment
|
||||
shll $0x4,%eax # * 0x10
|
||||
addl %edx,%eax # + offset
|
||||
leal (%edx,%eax,4),%eax # * 0x10 + offset
|
||||
xchgl %eax,%esi # Set pointer
|
||||
dump.4: movb $2,%dl # Num lines
|
||||
dump.4a: movb $0x10,%cl # Bytes to dump
|
||||
|
Loading…
Reference in New Issue
Block a user