Remove pbzero(), things we load zero their own bss.

Make VESA_SUPPORT default
This commit is contained in:
Poul-Henning Kamp 1997-08-31 06:11:26 +00:00
parent 188891873e
commit e6dcdf4dd1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28953
4 changed files with 6 additions and 41 deletions

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.58 1997/07/31 08:07:53 phk Exp $
# $Id: Makefile,v 1.59 1997/07/31 11:30:30 phk Exp $
#
PROG= boot
@ -13,7 +13,7 @@ CFLAGS= -O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
-DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
CFLAGS+= -DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
CFLAGS+= -DDO_BAD144
#CFLAGS+= -DVESA_SUPPORT
CFLAGS+= -DVESA_SUPPORT
CFLAGS+= -I${.CURDIR}/../../..
CFLAGS+= ${CWARNFLAGS}

View file

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, Revision 2.2 92/04/04 11:34:13 rpd
* $Id$
* $Id: asm.S,v 1.11 1997/02/22 09:30:04 peter Exp $
*/
@ -209,40 +209,6 @@ ourreturn:
/* For now there is not much we can do, just lock in a loop */
jmp ourreturn
/*
*
* pbzero( dst, cnt)
* where src is a virtual address and dst is a physical address
*/
ENTRY(pbzero)
push %ebp
mov %esp, %ebp
push %es
push %esi
push %edi
push %ecx
cld
/* set %es to point at the flat segment */
movw $0x10, %ax
mov %ax, %es
mov 0x8(%ebp), %edi /* destination */
mov 0xc(%ebp), %ecx /* count */
xorl %eax, %eax /* value 0 */
rep
stosb
pop %ecx
pop %edi
pop %esi
pop %es
pop %ebp
ret
/*
* pcpy(src, dst, cnt)
* where src is a virtual address and dst is a physical address

View file

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, [92/04/03 16:51:14 rvb]
* $Id: boot.c,v 1.67 1997/06/14 10:00:42 bde Exp $
* $Id: boot.c,v 1.68 1997/07/31 08:07:54 phk Exp $
*/
@ -269,7 +269,7 @@ loadprog(void)
* nonexistent memory. A full symbol table is unlikely to fit on 4MB
* machines.
*/
pbzero((void *)addr,head.a_bss);
/* kzip & kernel will zero their own bss */
addr += head.a_bss;
/* Pad to a page boundary. */

View file

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, Revision 2.2 92/04/04 11:35:03 rpd
* $Id: boot.h,v 1.19 1997/06/09 05:10:55 bde Exp $
* $Id: boot.h,v 1.20 1997/07/12 10:23:17 joerg Exp $
*/
#include <sys/param.h>
@ -54,7 +54,6 @@ void prot_to_real(void);
#endif
void startprog(unsigned int physaddr, int howto, int bootdev,
/* XXX struct bootinfo * */ unsigned int bootinfo);
void pbzero(void *dst, size_t count);
void pcpy(const void *src, void *dst, size_t count);
/* bios.S */