PERFORCE change 28373 for review
Peter Wemm
peter at FreeBSD.org
Sun Apr 6 16:45:23 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28373
Change 28373 by peter at peter_overcee on 2003/04/06 16:45:14
Call serial_putc correctly. doh!
We now print something from the kernel, in 64 bit mode, running at
the compiled KERNBASE instead of having to compensate for the
evil relocation stuff:
OK load /boot/kernel64
/boot/kernel64 text=0x138ac0 data=0x367f0+0x15360 syms=[0x4+0x28e00+0x4+0x1ce1]-
OK unset acpi_load
OK boot
Hello, World!
Affected files ...
.. //depot/projects/hammer/sys/x86_64/x86_64/locore.s#28 edit
Differences ...
==== //depot/projects/hammer/sys/x86_64/x86_64/locore.s#28 (text+ko) ====
@@ -113,7 +113,7 @@
fillkpt(KPTphys, prot)
#define PING(a) \
- movb $(a),%al; \
+ movb $(a),%bl; \
call serial_putc
.text
@@ -143,6 +143,13 @@
PING('l');
PING('l');
PING('o');
+ PING(',');
+ PING(' ');
+ PING('W');
+ PING('o');
+ PING('r');
+ PING('l');
+ PING('d');
PING('!');
PING('\r');
PING('\n');
@@ -382,8 +389,7 @@
testb $0x20, %al
je 1b # TX buffer not empty
- movb 8(%rsp), %al
-
+ movb %bl, %al
subl $5, %edx # TX output reg
outb %al, %dx # send this one
More information about the p4-projects
mailing list