Re: [PATCH v2] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Laurent Vivier
Le 02/01/2020 à 13:01, Jason A. Donenfeld a écrit : > On Linux, calling `reboot(RB_AUTOBOOT);` will result in > arch/m68k/mac/misc.c's mac_reset function being called. That in turn > looks at the rombase (or uses 0x4080 is there's no rombase), adds > 0xa, and jumps to that address. At the momen

[PATCH v2] q800: implement mac rom reset function for BIOS-less mode

2020-01-02 Thread Jason A. Donenfeld
On Linux, calling `reboot(RB_AUTOBOOT);` will result in arch/m68k/mac/misc.c's mac_reset function being called. That in turn looks at the rombase (or uses 0x4080 is there's no rombase), adds 0xa, and jumps to that address. At the moment, there's nothing there, so the kernel just crashes when tr