From 047a9a81c26577f047ab5aaaf78b9c7b518e568d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 25 Jul 2008 15:52:00 +0000 Subject: [PATCH] force asm() to grock %% for register names. when not specifying constraints it doesn't understand it anymore. How inconsistent... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26635 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/atari_m68k/start.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/boot/platform/atari_m68k/start.c b/src/system/boot/platform/atari_m68k/start.c index cf6b345fb8..394cc0a1b1 100644 --- a/src/system/boot/platform/atari_m68k/start.c +++ b/src/system/boot/platform/atari_m68k/start.c @@ -82,11 +82,11 @@ platform_start_kernel(void) dprintf("kernel entry at %lx\n", gKernelArgs.kernel_image.elf_header.e_entry); asm volatile ( - "move.l %0, %%sp; " // move stack out of way + "move.l %0,%%sp; " // move stack out of way : : "m" (stackTop)); asm volatile ( - "ori #0x0700,%%sr; "); // disable interrupts + "or #0x0700,%%sr; " : : ); // disable interrupts asm volatile ( "move.l #0x0,-(%%sp); " // we're the BSP cpu (0) @@ -99,7 +99,7 @@ platform_start_kernel(void) // Huston, we have a problem! asm volatile ( - "andi #0xf8ff,%%sr; "); // reenable interrupts + "and #0xf8ff,%%sr; " : : ); // reenable interrupts panic("kernel returned!\n");