Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
9 crawler(s) on-line.
 160 guest(s) on-line.
 1 member(s) on-line.


 number6

You are an anonymous user.
Register Now!
 number6:  4 mins ago
 Karlos:  24 mins ago
 matthey:  37 mins ago
 Rob:  49 mins ago
 kolla:  53 mins ago
 OneTimer1:  1 hr 21 mins ago
 OlafS25:  1 hr 55 mins ago
 pixie:  2 hrs 7 mins ago
 outlawal2:  3 hrs 14 mins ago
 zipper:  4 hrs 11 mins ago

/  Forum Index
   /  Free For All
      /  Memory protection, the theoretical difference between operating systems.
Register To Post

PosterThread
NutsAboutAmiga 
Memory protection, the theoretical difference between operating systems.
Posted on 20-Mar-2015 15:02:22
#1 ]
Elite Member
Joined: 9-Jun-2004
Posts: 12818
From: Norway

@ne_one
Quote:

@NutsAboutAmiga

There are so many areas that need to be addressed that the scale clearly tips in favour of adding what is missing from the Amiga onto something else.

Like perhaps something that could be seen as the modern, spiritual successor to AmigaOS...?


As I understand it, the basic principles around Amiga is different way things works in Linux, in Linux you do a interrupt to jump into the kernel, this forces an exclusive access to kernel, you can get kernel panic; this is because while you have memory protection. Everything inside the kernel is in the same memory space, so if a driver crashes it, can bring down the kernel, because its part of it.

Similar the way programs work, when program starts it link's itself with all the .so objects, so ELF .data space is with same memory, making the memory of .so object exclusive to the program, so if the program crashes, it only brings down itself.

On Amiga on the other hand, program code is considered read only, and is available to all programs, ELF .data might be shared or not, depending on the "const" flag, everything else is shared unless specified not to be, using the MEMF_Private flag.

AmigaOS4.1 does support .SO objects in AmigaOS4, but instead of sharing code and making the .data private, everything it's linked into the .EXE file.

Is it possible, well it’s a lot of work, you need to make the kernel exclusive, or maybe move some of the stuff into .so files.

All public lists, like screens, windows etc, need to be accessed differently, so porting a program from Amiga OS to Next OS, you most do some heavy rewrite, no more obj->item or obj.item, for things that can't be shared.

Last edited by NutsAboutAmiga on 20-Mar-2015 at 03:23 PM.
Last edited by NutsAboutAmiga on 20-Mar-2015 at 03:06 PM.
Last edited by NutsAboutAmiga on 20-Mar-2015 at 03:03 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
Massi 
Re: Memory protection, the theoretical difference between operating systems.
Posted on 23-Mar-2015 14:36:11
#2 ]
Cult Member
Joined: 2-Feb-2011
Posts: 627
From: Rome, Italy

@NutsAboutAmiga

Sorry it feels like I missed something.
Is this thread supposed to analyse memory protection on the various operating systems?

_________________
SAM440EP-FLEX @ 733 Mhz, AmigaOS 4.1 Update 1

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle