On Tue, 15 Aug 2006 18:12:10 +0200
"Pascal Spörri" <[EMAIL PROTECTED]> wrote:

> Ah thanks :D I was looking for that. Is there an ebuild for this
> patched grub? It would prevent grub from updating to an unpatched
> version.

see attached files



> 
> On 8/15/06, Pierre Dinh-van <[EMAIL PROTECTED]> wrote:
> >
> > Le mardi 15 août 2006 17:50, Pascal Spörri a écrit:
> > > When you want to use grub you have to patch it first. So that
> > > grub can install itself on the boot record of the partition..
> >
> > And here is an howto for gentoo :
> >
> > http://gentoo-wiki.com/HARDWARE_Apple_MacBook#Grub
> >
> > --
> > - Mélanger 3 parts d'essence pour 1 part d'acide sulfurique.  Agiter
> > le tout jusqu`à dégagement complet des gaz.
> > - Boucher la bouteille, et la mettre dans un sachet en papier.
> > - Saupoudrer fortement de chlorate de potassium.
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services,
> > security? Get stuff done quickly with pre-integrated technology to
> > make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > _______________________________________________
> > Mactel-linux-users mailing list
> > Mactel-linux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mactel-linux-users
> >
> >
> >
> >

Attachment: grub-0.97-r2.ebuild
Description: Binary data

diff -u -r grub-0.97/stage2/asm.S grub-0.97-new/stage2/asm.S
--- grub-0.97/stage2/asm.S	2004-06-19 16:55:22.000000000 +0000
+++ grub-0.97-new/stage2/asm.S	2006-05-19 10:56:12.000000000 +0000
@@ -1651,7 +1651,29 @@
 	jnz	3f
 	ret
 
-3:	/* use keyboard controller */
+3:	/*
+ 	* try to switch gateA20 using PORT92, the "Fast A20 and Init"
+ 	* register
+ 	*/
+ 	mov 	$0x92, %dx
+ 	inb 	%dx, %al
+ 	/* skip the port92 code if it's unimplemented (read returns 0xff) */
+ 	cmpb 	$0xff, %al
+ 	jz 	6f
+
+ 	/* set or clear bit1, the ALT_A20_GATE bit */
+ 	movb 	4(%esp), %ah
+ 	testb 	%ah, %ah
+ 	jz 	4f
+ 	orb 	$2, %al
+ 	jmp 	5f
+4: 	and 	$0xfd, %al
+
+ 	/* clear the INIT_NOW bit; don't accidently reset the machine */
+5: 	and 	$0xfe, %al
+ 	outb 	%al, %dx
+
+6:	/* use keyboard controller */
 	pushl	%eax
 
 	call    gloop1
@@ -1661,9 +1683,12 @@
 
 gloopint1:
 	inb	$K_STATUS
+ 	cmpb 	$0xff, %al
+ 	jz 	gloopint1_done
 	andb	$K_IBUF_FUL, %al
 	jnz	gloopint1
 
+gloopint1_done:	
 	movb	$KB_OUTPUT_MASK, %al
 	cmpb	$0, 0x8(%esp)
 	jz	gdoit
@@ -1684,6 +1709,8 @@
 
 gloop1:
 	inb	$K_STATUS
+	cmpb 	$0xff, %al
+ 	jz 	gloop2ret
 	andb	$K_IBUF_FUL, %al
 	jnz	gloop1
 
@@ -1991,6 +2018,11 @@
 ENTRY(console_getkey)
 	push	%ebp
 
+wait_for_key:
+	call	EXT_C(console_checkkey)
+	incl	%eax
+	jz	wait_for_key
+
 	call	EXT_C(prot_to_real)
 	.code16
 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mactel-linux-users mailing list
Mactel-linux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to